![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Filter with contents Topic Summary: Created On: 24-Oct-2007 16:41 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
'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 |
|
![]() |
|
![]() |
|
Sorry Louie but I can't find any contains in my DXL reference manual for DOORS 7.0? |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
yes contains works well.
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Filter with contents
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.