Global Search Utility
All too often the need arises to search through several, if not hundreds of, modules searching for attribute values or their existence.
This utility reports the specified attribute(s) from all selected modules in the current project, folder and/or sub-folders which satisfy the specified search criteria.
It's been developed and enhanced over several years as requests to add features have been received. An old version of this utility was issued on the Telelogic forum many years ago and proved very popular.
I hope you find it to be an invaluable tool.
https://www.ibm.com/developerworks/wikis/display/dxl/Global+Search+Utility
Martin_Hunter - Fri Aug 28 08:56:56 EDT 2009 |
|
Re: Global Search Utility moonray - Fri Aug 28 10:36:32 EDT 2009
Well-crafted and very nice, Martin!
Thanks you for sharing it with us.
Question: would you please clarify for me how the Attribute Output(s) field is designed to be used?
|
|
Re: Global Search Utility Martin_Hunter - Fri Aug 28 13:01:14 EDT 2009 moonray - Fri Aug 28 10:36:32 EDT 2009
Well-crafted and very nice, Martin!
Thanks you for sharing it with us.
Question: would you please clarify for me how the Attribute Output(s) field is designed to be used?
The Attribute Output enables the results of other attributes to be reported based on the search criteria in the search attribute. For example a user can search the "Object Text" attribute for the word "shall" in all specified modules and find the value of the "Paragraph Style" attribute associated with that object which should be "Requirement".
A recent update to the script now enables multiple output attributes to be reported since users wanted to know the value of several attributes and although they could have repeated the run, I revised the script to use an "&" delimiter to report mutiple attributes, eg "Paragraph Style&Last Modified By".
|
|
Re: Global Search Utility karringordon - Thu Sep 03 10:20:14 EDT 2009 Martin_Hunter - Fri Aug 28 13:01:14 EDT 2009
The Attribute Output enables the results of other attributes to be reported based on the search criteria in the search attribute. For example a user can search the "Object Text" attribute for the word "shall" in all specified modules and find the value of the "Paragraph Style" attribute associated with that object which should be "Requirement".
A recent update to the script now enables multiple output attributes to be reported since users wanted to know the value of several attributes and although they could have repeated the run, I revised the script to use an "&" delimiter to report mutiple attributes, eg "Paragraph Style&Last Modified By".
Very useful indeed, thanks so much for sharing!!
Karrin
|
|
Re: Global Search Utility Rich_Mason_ITT - Mon Jan 30 08:08:46 EST 2012
I've used this utility for years with great success. Thanks so much for providing it. I've been asked to search the entire database for a string "ECP" looking only in attributes of type text. These would be user generated attributes with non uniform names, searching just in "Object Text" wouldn't work. Doesn't seem like the utility is set up to search by attribute type. In looking at the code, I'm not a good enough coder to know how to modify the utility.
Does anyone have an idea how this may be accomplished?
Thanks
|
|
Re: Global Search Utility doors36677 - Mon Jan 30 09:40:33 EST 2012 Rich_Mason_ITT - Mon Jan 30 08:08:46 EST 2012
I've used this utility for years with great success. Thanks so much for providing it. I've been asked to search the entire database for a string "ECP" looking only in attributes of type text. These would be user generated attributes with non uniform names, searching just in "Object Text" wouldn't work. Doesn't seem like the utility is set up to search by attribute type. In looking at the code, I'm not a good enough coder to know how to modify the utility.
Does anyone have an idea how this may be accomplished?
Thanks
If I recall the Global Search Utility was encrypted so nothing can be done. Currently the scripts aren't available for download.
So you would have to go to original author to try and get a revision.
|
|
Re: Global Search Utility Rich_Mason_ITT - Mon Jan 30 10:16:47 EST 2012 doors36677 - Mon Jan 30 09:40:33 EST 2012
If I recall the Global Search Utility was encrypted so nothing can be done. Currently the scripts aren't available for download.
So you would have to go to original author to try and get a revision.
I have a version I can modify. Don't know about the encryption issue.
Would also be nice to be able to use reg exps in the Attribute Name field. If I had the time to figure out the code, that would be nice. Would like to be able to search on Attribute names that contain "Comments" and then find "ECP" text within those attribute names.
|
|
Re: Global Search Utility rain_bow - Mon Jan 30 10:52:50 EST 2012 Rich_Mason_ITT - Mon Jan 30 10:16:47 EST 2012
I have a version I can modify. Don't know about the encryption issue.
Would also be nice to be able to use reg exps in the Attribute Name field. If I had the time to figure out the code, that would be nice. Would like to be able to search on Attribute names that contain "Comments" and then find "ECP" text within those attribute names.
Why won't the utility Tools->Find from the DOORS Database GUI meet your needs.
|
|
Re: Global Search Utility Rich_Mason_ITT - Mon Jan 30 11:01:25 EST 2012 rain_bow - Mon Jan 30 10:52:50 EST 2012
Why won't the utility Tools->Find from the DOORS Database GUI meet your needs.
Find function from the database explorer will only search Object Heading and Object Text as I understand it; and I don't want to go into each module individually. I need to find a string "ECP" across multiple modules inside of non uniformly named attributes starting with "Comments" as part of the attribute name.
attribute name contains "Comments"
search string "ECP" within "Comments"
|
|