Using DOORS v71173
I have the attached script which is derived from an old "filter on section" script which may have originated from the old Telelogic forums many moons ago.
This modified script should filter on a given attribute having been modified since a given date and checks across baselines.
It works exactly as I want it to, EXCEPT tha "filtering on" at the end on the main function doesn't filter the module, I have to manually reactivate the filter after the script has finished.
I can't for the life of me see why.
Dartguru - Thu May 14 05:39:51 EDT 2009 |
|
Re: Filtering On/Off Dartguru - Thu May 14 07:45:55 EDT 2009
A little bit of exploration has shown that it works correctly if the view has no other filter present (either active or dormant). If there is, then my "filtering on" just reactivates it and ignores my scripted filtering.
So, the question now becomes, how can I clear out any filters that exist on a view at the start of my script ?
|
|
Re: Filtering On/Off Ron_Lewis - Thu May 14 07:56:12 EDT 2009 Dartguru - Thu May 14 07:45:55 EDT 2009
A little bit of exploration has shown that it works correctly if the view has no other filter present (either active or dormant). If there is, then my "filtering on" just reactivates it and ignores my scripted filtering.
So, the question now becomes, how can I clear out any filters that exist on a view at the start of my script ?
The problem is that somewhere in your script you change the current module away from module doc -- solution is before filtering on statement add:
current =doc
|
|
Re: Filtering On/Off Dartguru - Thu May 14 08:09:10 EDT 2009
Thanks Ron, that worked a treat.
|
|
Re: Filtering On/Off llandale - Thu May 14 10:10:12 EDT 2009 Ron_Lewis - Thu May 14 07:56:12 EDT 2009
The problem is that somewhere in your script you change the current module away from module doc -- solution is before filtering on statement add:
current =doc
Yes, that's routine for ALL commands that presume 'the current module'.
|
|
Re: Filtering On/Off SystemAdmin - Tue May 26 12:58:08 EDT 2009
And why would IBM want to advertise by adding comments to old threads?
|
|
Re: Filtering On/Off Tony_Goodman - Wed May 27 03:13:37 EDT 2009 SystemAdmin - Tue May 26 12:58:08 EDT 2009
And why would IBM want to advertise by adding comments to old threads?
Annoying.
|
|
Re: Filtering On/Off Dartguru - Wed May 27 03:20:10 EDT 2009 Tony_Goodman - Wed May 27 03:13:37 EDT 2009
Annoying.
Especially annoying as it is the first time I've had the reply notification subscription working properly, only to find that none of the responses were relevant to the thread :-(
Ah well, at least it IS working now.
|
|