![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|||||
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 |
|||||
![]() |
|||||
![]() |
|||||
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.
|
|||||
![]() |
|||||
![]() |
|||||
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 |
|||||
![]() |
Telelogic DOORS
» DXL Exchange
»
Pseudo Enumerations
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.