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: 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
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.
 18-Apr-2007 20:13
User is offline View Users Profile Print this message


Brenda Cornell

Posts: 29
Joined: 7-Jul-2005

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
Report this to a Moderator Report this to a Moderator
 18-Apr-2007 21:46
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

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


Abbas Rostami

Posts: 7
Joined: 17-Aug-2007

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
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.