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: Pseudo Enumerations
Topic Summary: Implementing Category and Sub-category atttributes.
Created On: 19-Apr-2007 12:00
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.
 19-Apr-2007 12:00
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

This posting is a response to this post

The problem:
Two attributes, one called "Category" and one called "Sub Category".
Each is implemented as an enumeration.
The enumerations available for "Sub category" are dependant on the value of "Category".

This solution:
Do not use enumerated attributes, but instead use ordinary string attributes and use a dialog to edit them.
The values of the "enumerations" are hard-coded into the script, but can be changed easily.

To try this out, save categoryMenu.dxl to DOORSHOME/lib/dxl/config/formalPopupFiles.
Save editCategory.dxl to DOORSHOME/lib/dxl/addins.

A menu option "Edit Category" appears on the formal module popup menu.




-------------------------
Tony Goodman
http://www.smartdxl.com

Edited: 19-Apr-2007 at 12:03 by Tony Goodman
Report this to a Moderator Report this to a Moderator
 19-Apr-2007 19:00
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

You would probably want some mechanism to 'force' folks to use the dialog rather than just trusting them to do so. You would also probably want some mechanism to detect invalid values (inserted manually) and dispose of them.
Report this to a Moderator Report this to a Moderator
 20-Apr-2007 09:14
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Landale is correct.
If there are 1000 ways you know a user can mess things up, and you write tons of defensive code to protect your schema, you can guarantee that sooner or later a user will find another way....

-------------------------
Tony Goodman
http://www.smartdxl.com
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.