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: Display enumerations with commas
Topic Summary:
Created On: 15-Apr-2008 18:46
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 Laura Norton, on Tuesday, April 15, 2008 8:22 PM

Answer:
Peter,

Thanks so much! I had to make one small change(see code) and then it worked wonderfully!

Thanks again,
Laura
 15-Apr-2008 18:46
User is offline View Users Profile Print this message


Laura Norton

Posts: 17
Joined: 6-Apr-2004

Can anyone tell me how to display chosen values from an enumerated attribute in a column using commas? Right now I'm using:

string strQVM = obj."RDTV_QualVM_New"
Regexp regany = regexp".+"
if(regany strQVM){
displayRich "{\\b Qualification VM: }" strQVM
}

It displays the values in a list. We need to have them listed with commas instead. I tried something like this also, but I'm getting non-specific syntax errors:

if (atType.type==attrEnumeration) {
int i=0
for (i=0;i<atType.size;i++) {
string enumstr = "\t" atType.strings ","
print enumstr
}
}

I know this should be easy, but I'm having a hard time.

Thanks in advance.
Report this to a Moderator Report this to a Moderator
 15-Apr-2008 19:50
User is offline View Users Profile Print this message


Peter Albert

Posts: 232
Joined: 30-Dec-2005

Hi Laura,

the attached script displays the selected entries of an enumerated attribute separated by commas. The key elements are 'at.strings[]' for the list of possible entries and 'isMember' for checking if one of the possible entries is selected.

Cheers,

Peter
Report this to a Moderator Report this to a Moderator
 15-Apr-2008 20:22
User is offline View Users Profile Print this message


Laura Norton

Posts: 17
Joined: 6-Apr-2004

Answer Answer
Peter,

Thanks so much! I had to make one small change(see code) and then it worked wonderfully!

Thanks again,
Laura
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.