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: Multi-Value Attribute Values
Topic Summary:
Created On: 15-Jun-2008 19:30
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 Monday, June 16, 2008 1:48 PM

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.
 15-Jun-2008 19:30
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

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
Report this to a Moderator Report this to a Moderator
 16-Jun-2008 00:29
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

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
Report this to a Moderator Report this to a Moderator
 16-Jun-2008 11:07
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

Thank you for your help Scott, I will try this out.
Report this to a Moderator Report this to a Moderator
 16-Jun-2008 13:07
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

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
Report this to a Moderator Report this to a Moderator
 16-Jun-2008 13:20
User is offline View Users Profile Print this message


Tony Goodman

Posts: 97
Joined: 6-May-2008

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

-------------------------
Tony Goodman
Smart DXL limited
www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 16-Jun-2008 13:37
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

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?
Report this to a Moderator Report this to a Moderator
 16-Jun-2008 13:40
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

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
Report this to a Moderator Report this to a Moderator
 16-Jun-2008 13:40
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

Hi Tony
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.