![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Display enumerations with commas Topic Summary: Created On: 15-Apr-2008 18:46 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Peter, Thanks so much! I had to make one small change(see code) and then it worked wonderfully! Thanks again, Laura | |
![]() |
|
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. |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
Peter,
Thanks so much! I had to make one small change(see code) and then it worked wonderfully! Thanks again, Laura |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Display enumerations with commas
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.