Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
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
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by Tony Goodman, on Friday, September 10, 2004 3:06 PM

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.
 9-Sep-2004 20:27
User is offline View Users Profile Print this message


Charing Maher

Posts: 14
Joined: 5-May-2004

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
Report this to a Moderator Report this to a Moderator
 10-Sep-2004 08:41
User is offline View Users Profile Print this message


Paul Tiplady

Posts: 176
Joined: 28-Oct-2003

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
Report this to a Moderator Report this to a Moderator
 10-Sep-2004 11:47
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Answer 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.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 10-Sep-2004 15:09
User is offline View Users Profile Print this message


Charing Maher

Posts: 14
Joined: 5-May-2004

Thanks so much Tony, this is exactly what I was looking for. You're awesome!!!!!!!!!!!!!!!!



-------------------------
Charing Maher
Systems Engineer, SAIC
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.