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: Filter with contents
Topic Summary:
Created On: 24-Oct-2007 16:41
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.
 24-Oct-2007 16:41
User is offline View Users Profile Print this message


Mussie Woldemicael

Posts: 95
Joined: 12-Sep-2006

Hello DXLiens,
is it possible to use the filter method

Filter contents(string text[,bool caseSensitive])

 on a specific Attribute and not on the whole object?

best regards,
Mussie
Report this to a Moderator Report this to a Moderator
 24-Oct-2007 19:16
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

'DXLiens' are the pretenders, we 'DXaLiens' are folks already assimulated; resistance is futile.

Right after 'contents' is found in the DXL manual, you'll find command 'contains' that accepts a specific attriubute for searching.

- Louie
Report this to a Moderator Report this to a Moderator
 25-Oct-2007 09:39
User is offline View Users Profile Print this message


Mussie Woldemicael

Posts: 95
Joined: 12-Sep-2006

Sorry Louie but I can't find any contains in my DXL reference manual for DOORS 7.0?
Can you describe the function?
Is it possible to find in Attribute ID value trs-xxx by searching for ID with string trs as a part from ID?

best regards,
Mussie

p.s. why DXaLiens

Report this to a Moderator Report this to a Moderator
 25-Oct-2007 12:51
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

From dxl help file.

contains
Declaration
Filter contains(attribute(string attributeName)), string text, [,bool
caseSensitive])
Operation
Filters on objects that include the string text in a specific attribute attributeName. If caseSensitive is set to true, the filter takes character case into account when searching. If caseSensitive is false, the filter ignores case. If caseSensitive is omitted, the filter accepts regular expressions.

Example
Module m = current
Filter f = contains(attribute "Object Text", "shall", false)
set f
filtering on
Report this to a Moderator Report this to a Moderator
 25-Oct-2007 14:56
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

I see 'contains' in my v7.1 DXL manual, right after 'contents'. Also in the v7.0 DXL PDF manual.

Your 3rd question: you seem to be asking: "Want to filter for objects whose 'Reference' attribute contains a string that looks like 'trx-nnn', where 'nnn' is any integer." I'm pretty hopeless with regular expressions, but that would be the way to go. Wonder if 'contains' allows regular expressions...

- Louie
Report this to a Moderator Report this to a Moderator
 25-Oct-2007 16:00
User is offline View Users Profile Print this message


Mussie Woldemicael

Posts: 95
Joined: 12-Sep-2006

yes contains works well.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 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 2 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.