1
所以我才意識到,我一直在使用當前的過濾器似乎只在發現第一個字符串是不正確的正常工作,應用過濾器。DXL門需要幫助使用循環
Module m = current
Object o = current
Filter f
load view "Standard view"
//column attribute Object Type
insert(column 3)
attribute(column 3, "Object Type")
width(column 3, 100)
f1 = attribute "Object Type" == "Requirement"
f2 = attribute "Object Type" == "Derived Requirement"
f3 = contains(attribute "Object Text", "(Testing) ", true)
for o in m do
{
f = (f1 || f2) && !(f3)
}
set f
filtering on
refresh current
例子:這將是我目前的表
ID| Module Information |Object Type
__|______________________________________|____________________
1 | (Teting) this is the incorrect format| Requirements
__|______________________________________|____________________
2 | (Testing) this is also correct format| Derived Requirements
| (Test) this is incorrect format |
__|______________________________________|____________________
3 | (Testing) this is the correct format | Requirements
| (Testing) this is the correct format |
__|______________________________________|____________________
4 | (Testing) this is the correct format | Requirements
| (Teting) this is incorrect format |
__|______________________________________|____________________
所以(在製作表格不很大),如果我是跑這裏來我的腳本也只是告訴我
ID| Module Information |Object Type
__|______________________________________|____________________
1 | (Teting) this is the incorrect format| Requirements
而不是我希望它會告訴我:
ID| Module Information |Object Type
__|______________________________________|____________________
1 | (Teting) this is the incorrect format| Requirements
__|______________________________________|____________________
2 | (Testing) this is also correct format| Derived Requirements
| (Test) this is incorrect format |
__|______________________________________|____________________
4 | (Testing) this is the correct format | Requirements
| (Teting) this is incorrect format |
__|______________________________________|____________________
因此,如何將我去顯示正確的看法?我認爲這件事情做循環
「對象文本中包含」過濾器,但我不確定我怎麼會去這樣做。
任何信息關於如何進行此操作將不勝感激 –