![]() |
Telelogic DOORS (steve huntington) | ![]() |
Topic Title: Selective Enumeration values based on another attribute enum. choice Topic Summary: How to pick an attribute value based on another attribute value. Created On: 18-Apr-2007 20:13 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I have a module that includes two separate attributes; Category and Sub-category, each of which are enumeration lists. Each Category will have a set number of Sub-category values unique to that Category. So if I have 10 Category enumeration values, with 10 Sub-Categories per Category, I would have 100 Sub-Category enumeration values. Once I've choosen a Category value, I only want to see those Sub-Category values I want associated to the Category I selected. In other words, I don't want to see all 100 sub-categories everytime I select a Category. This might take a DXL script or something, but was wondering if anyone has ever done something like this, or is this a relational database type of thing and since DOORS isn't a relational database app. am I just trying to do something that can't be done??
Example attached in code area!! Any help?? ------------------------- Brenda Heiss Cornell |
|
![]() |
|
![]() |
|
Yes, its not a relational database and therefore you've got a problem.
You could realistically put the Categories and the Sub-Categories in one big Enum; may look like this: Useability >>Human Factors >>Useage Monitoring. That probably doesn't help. I would do this: put all the sub-cats in a big Enum list. Write a DXL that triggers with Category Changes; informating the user of a current sub-cat mis-match and displaying just those that apply to that Category. Then have that trigger set the Sub-Category. You may also want some sort of generic script that reads all the objects making sure Cat and Sub-Cat match. Triggers are not for the feint of heart. This one I believe would be a post-attr-save trigger. - Louie |
|
![]() |
|
![]() |
|
Brenda, I have devised a solution to this, but I have had to post it on the DXL Discussion forum so that I could attach files. Post is entitled Pseudo Enumerations.
------------------------- Tony Goodman http://www.smartdxl.com Edited: 19-Apr-2007 at 12:01 by Tony Goodman |
|
![]() |
|
![]() |
|
Hi Tony,
I could not get the menu popup to work! any commnets? I am using version 8.1.
Is there a verion of this utility that allows multi-value to be selected from the "sub category"? This would be very usefull.
Also if you need to have more than two levels of category, how can you do this?
being able to read the values from an external file would be another improvement.
Regards,
AR
|
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.