![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Multi-Value Attribute Values Topic Summary: Created On: 15-Jun-2008 19:30 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Another option. The following function returns the enum values in a skip list. You can call this for every target object,, passing the same skip list each time. | |
![]() |
|
Hi All
I've seen alot of information and help for finding out what the options are for a particular multi-value attribute, but nothing that can help me to find out what the selected values are for a particular object (i.e. current). I can return the values which are concatenated with a space, but can you separate them, so you can put in a skiplist? What I need to do is follow a link to a target object, grab the selected multi-values and put the unique ones in skplist, so that I can populate the current module, current object. If an object has two links and they return the same values selected, I wish to only add them to the list once. Does anyone have any sample code on grabbing selected multi-valued attribute values please? Many thanks |
|
![]() |
|
![]() |
|
I think what you might be looking for is the isMember (attribute reference, string enumeration). This returns true if the enumeration is selected and false if not. You would use it something like this:
Object o = current if (isMember (o."Requirement Type", "Hardware")) { print "Hardware is selected.\n" } else { print "Hardware is not selected.\n" } ------------------------- Scott Boisvert Engineering Tools Administrator L-3 Communications - Avionics Systems scott.boisvert@l-3com.com |
|
![]() |
|
![]() |
|
Thank you for your help Scott, I will try this out.
|
|
![]() |
|
![]() |
|
For an enumerated attribute, this is how you get the values.
Also here is a function to tokenize the space separated values (there can be no spaces in each actual value then). ------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com Edited: 16-Jun-2008 at 13:10 by David Pechacek |
|
![]() |
|
![]() |
|
Another option.
The following function returns the enum values in a skip list. You can call this for every target object,, passing the same skip list each time. ------------------------- Tony Goodman Smart DXL limited www.smartdxl.com |
|
![]() |
|
![]() |
|
Thanks very much for the code David.
How would I apply this to the target object of a Link, to find out the values please? |
|
![]() |
|
![]() |
|
Hi Tony
Thanks very much for the code, and help. Thanks everyone for your suggestions. Much appreciated I will try them out. Edited: 16-Jun-2008 at 13:41 by Lisa Carver |
|
![]() |
|
![]() |
|
Hi Tony
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Multi-Value Attribute Values
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.