Also habe ich gerade festgestellt, dass der aktuelle Filter, den ich verwendet habe, nur richtig funktioniert, wenn die erste gefundene Zeichenfolge falsch ist.DXL DOORs Brauchen Sie Hilfe beim Anwenden eines Filters mit einer Schleife
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
Beispiel: Das wäre meine aktuelle Tabelle (nicht toll, einen Tisch zu machen) sein
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 |
__|______________________________________|____________________
Also, wenn ich hier mein Skript auszuführen wäre, würde es mir nur zeigen
ID| Module Information |Object Type
__|______________________________________|____________________
1 | (Teting) this is the incorrect format| Requirements
und nicht das, was ich mir erhofft hatte:
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 |
__|______________________________________|____________________
Wie würde ich also die richtige Ansicht zeigen? Ich nehme an, es ist etwas mit Looping zu tun
"Object Text enthält" Filter, aber ich bin mir nicht sicher, wie ich das tun könnte.
Alle Informationen, wie Sie damit fortfahren würden geschätzt –