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: 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
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.
 9-Jul-2007 19:18
User is offline View Users Profile Print this message


Andrea Varriale

Posts: 17
Joined: 22-Mar-2007

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
Report this to a Moderator Report this to a Moderator
 9-Jul-2007 23:25
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 10-Jul-2007 11:00
User is offline View Users Profile Print this message


Andrea Varriale

Posts: 17
Joined: 22-Mar-2007

Thanks for you advice, Louie.

I will try to write down something...

Andrea
Report this to a Moderator Report this to a Moderator
 16-Jul-2007 18:28
User is offline View Users Profile Print this message


Andrea Varriale

Posts: 17
Joined: 22-Mar-2007

Louie, I believe you when you say that an enumeration would not work.
But I think it is really a pity not being able to use it...

I would have liked to have a drop-down list of predefined values like this:
- value 1
- value 2
- value 3
- other...

And when selecting "other..." I would have liked a pop-up asking for a string to type.
That would have been much more intuitive for a user.

Ok ok, I stop dreaming.
I would try to devise a solution using a trigger.

Andrea

Report this to a Moderator Report this to a Moderator
 17-Jul-2007 15:59
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Andrea, this thread might be of help. Pseudo Enumerations.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 18-Jul-2007 00:40
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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.
Report this to a Moderator Report this to a Moderator
 20-Jul-2007 16:46
User is offline View Users Profile Print this message


Andrea Varriale

Posts: 17
Joined: 22-Mar-2007

quote:

Originally posted by: Tony Goodman
Andrea, this thread might be of help. Pseudo Enumerations.


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. 
Report this to a Moderator Report this to a Moderator
 20-Jul-2007 16:59
User is offline View Users Profile Print this message


Andrea Varriale

Posts: 17
Joined: 22-Mar-2007

quote:

Originally posted by: Louie Landale
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.


Thanks for this further advice!

Andrea
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 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 2 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.