![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Enumeration attribute plus possibilty to type any string Topic Summary: Created On: 9-Jul-2007 19:18 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Let's see if I am able to explain what I need...
I would like to have an attribute whose values can belong to a predifined enumeration list or can can be typed manually. This "imaginary" attribute would be middle way between a string type and and enumeration type.
I am wondering if it is possible to write some DXL code to control this hybrid behaviour. Has anybody ever tried to do that?
Andrea
|
|
![]() |
|
![]() |
|
Is this a reasonable interpretation: you want to create attribute 'Importance' that provides a selectable list of common adjectives None, Benign, Severe, Critical but also lets the user specify custom levels such as 'SortOfSevere'.
You won't be able to do that with enumerations. One could write a pre-save-attribute trigger that checks the value, and if its perhaps a '?' then the trigger provides a dialog offering the list of common values. - Louie |
|
![]() |
|
![]() |
|
Thanks for you advice, Louie.
I will try to write down something... Andrea |
|
![]() |
|
![]() |
|
Louie, I believe you when you say that an enumeration would not work. |
|
![]() |
|
![]() |
|
Andrea, this thread might be of help. Pseudo Enumerations.
------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
Be advised that the attr-save triggers only fire when the user edits the attribute in a displayed column (double clicks on it). They do NOT fire when set by DXL nor when set inside the edit-object-properties box.
|
|
![]() |
|
![]() |
|
quote: Thanks Tony, it seems a good starting point. I tried to use it but it seems I am missing something... I cannot see any result. |
|
![]() |
|
![]() |
|
quote: Thanks for this further advice! Andrea |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.