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: Louie's TidBit #4: Manual Filters
Topic Summary:
Created On: 7-Oct-2003 17:24
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.
 7-Oct-2003 17:24
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

There are two basic ways to write filter scripts

[1] define a filter using the various commands in the Filter chapter, ending in the "set(filter)" command. E.G. You can define such a filter to display all Object Text containing "shall". This sort of filter IS saveable in a view.

[2] You can decide on a criteria and evaluate it for each object:
... filtering off
... for obj in entire mCurr do
... { if (this object matches my desired criteria)
....... accept(obj)
.......else reject (obj)
... }
... current = mCurr
... filtering on
... refresh(mCurr)

This sort of filter is NOT saveable in a view. However, you can generally do much more complicated filters this way, such as if an object is "Allocated" to a subordinate module, is there at least one incoming link from that subordinate module.

Some natural adjustments to the above are [a] supress the first "filtering off". Thus, the script works on the current display set (e.g. it restricts the current display set) count the number of accepts/rejects, and ack them to the user when done.

I like this method when it works on the current display set. I have several such "simple" filters in the menu, and can easily mix and match them to get where I want.

- Louie

Edited: 7-Oct-2003 at 18:45 by Louie Landale
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.