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: Change Attribute Type
Topic Summary: Can I use a script to change the Type of an attribute based on some condition?
Created On: 13-Feb-2008 22:31
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.
 13-Feb-2008 22:31
User is offline View Users Profile Print this message


Nancy Smith

Posts: 11
Joined: 19-Jul-2006

To be specific:

I have an attribute (called M1) whose Type is Object Status. Object Status has the enumerations FALSE, TRUE, DEFERRED, and NA. I received a request to have different enumerations in the M1 attribute (ENABLED, DISABLED, and PURCHASABLE) for just the Configurable Options section of the module. The user does not want these new enumerations to be available for the M1 attribute on any other objects in the module.

So I created a new Type (called LO) with enumerations ENABLED, DISABLED, and PURCHASABLE. I also have a Yes_No attribute with values YES and NO. If I set only the objects in the Configurable Options section to YES for the Yes_No attribute, can I write a script that will change the Type of the M1 attribute to LO if the Yes_No attribute = YES?

Thanks for any help,
Nancy
Report this to a Moderator Report this to a Moderator
 13-Feb-2008 23:50
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

No, an attribute can have only one type. If you rename the enumerations of an enumerated type, btw, the apparent values displayed may match the OLD values until you update them manually.

What you can do, however, is have an Attr-DXL called 'M1' that displays whatever you want, and it certainly can be sensitive to whether the object is in the Configurable Options sections.

Rename M1 to perhaps M1-Base. Create new attribute 'M1' of type 'string' that's an attr DXL. That Attr DXL will look something like the attached.

- Louie
Report this to a Moderator Report this to a Moderator
 14-Feb-2008 00:36
User is offline View Users Profile Print this message


Nancy Smith

Posts: 11
Joined: 19-Jul-2006

Thanks for your quick response, Louie. This looks good; I will play around with it tomorrow.
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.