![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Find and Replace Topic Summary: Created On: 14-Sep-2004 17:32 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: The following DXL script will do what you need. Just change "My Bool" to the name of your boolean attribute. To run the DXL, in a module select the menu item Tools->Edit DXL... , paste in the code and hit the run button. Antonio. ------------- const string booleanAttrName = "My Bool" Object o for o in all current Module do { if (o.booleanAttrName "" == "False") { o.booleanAttrName = null } } | |
![]() |
|
Is there a way to do a find and replace on boolean values (True, False, or left blank)? For example, if I wanted to find all my False values and replace them with blank values. (I only want True values to appear to make it easier to read)
I've tried to use the Find and Replace utility that comes with DOORS, but it keeps telling me that the operation can be performed only on string or text attributes. I am able to manually change False to blank values. Thanks in advance, Charing ------------------------- Charing Maher Systems Engineer, SAIC |
|
![]() |
|
![]() |
|
The following DXL script will do what you need. Just change "My Bool" to the name of your boolean attribute. To run the DXL, in a module select the menu item Tools->Edit DXL... , paste in the code and hit the run button.
Antonio. ------------- const string booleanAttrName = "My Bool" Object o for o in all current Module do { if (o.booleanAttrName "" == "False") { o.booleanAttrName = null } } |
|
![]() |
|
![]() |
|
Could you not just filter so that "attribute" = True?
Just wondering... quote: Edited: 21-Sep-2004 at 20:30 by Patrick Whalen |
|
![]() |
Telelogic DOORS
» General Discussion
»
Find and Replace
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.