![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Transfer Enumerated List values into Columns Topic Summary: Created On: 9-Sep-2004 20:27 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: This looked like fun to do, so I did it for you. Run the attached inside a formal module. Enter the name of the attribute. If, and only if the attribute is a multi valued enumerated attribute, then this utlity creates columns showing DXL attributes giving you true/false indicators for each enumeration constant. Hope this is what you were looking for. | |
![]() |
|
Hi,
One of my users has decided that she would like the information that is now currently stored into an enumerated list transferred into true/false columns instead. She will create the columns herself, but she needs some kind of a script that will read the values from that enumerated list and update the columns automatically. Are there currently any scripts that exist out there that would be easily modified to fit her needs? If I weren't so terrible at coding, I would probably write the script myself. Thanks for any help in advance, Charing ![]() ------------------------- Charing Maher Systems Engineer, SAIC |
|
![]() |
|
![]() |
|
Do you actually mean into columns, or is your user creating a new set of attributes (type=boolean) based on the original attribute (type=enumerated), and creating columns based on these attributes?
If it's the column only option, you need layout DXL (I think) to read the original attribute and populate the columns. This will happen every time the module is viewed, and only be there in that view. The layout DXL will look a bit like 'display (isMember (obj.oldAttr, "attrVal"))', where "attrVal" is the string in the enumeration that is being converted to True or False for the current column. If it's the attribute version, you need to write (or acquire) a script that does something like the code below. This will be a one-off action, quicker to display than the column version. I'd recommend deleting the old attribute once you've verified that the new attributes are all present and correct. ------------------------- Paul dot Tiplady at TRW dot com TRW Automotive |
|
![]() |
|
![]() |
|
This looked like fun to do, so I did it for you.
Run the attached inside a formal module. Enter the name of the attribute. If, and only if the attribute is a multi valued enumerated attribute, then this utlity creates columns showing DXL attributes giving you true/false indicators for each enumeration constant. Hope this is what you were looking for. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
Thanks so much Tony, this is exactly what I was looking for. You're awesome!!!!!!!!!!!!!!!!
![]() ------------------------- Charing Maher Systems Engineer, SAIC |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Transfer Enumerated List values into Columns
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.