'How to bold every instance of a phrase in an attribute on doors with a DXL?
I have an attribute/column called "X" in a DOORS module. I want to bold the 3 phrases "America" and "Bahamas" and "Czech Republic" whenever they appear in this attribute.
BUT I also want to be able to manually edit the attribute whenever I want. Is this possible with a DXL attribute?
What I'm doing is I go into edit-mode on the DOORS module, click Edit -> Attributes -> "X" -> Edit... -> check DXL attribute -> Browse... -> New, write the code -> Ok, close all windows, Tools -> Refresh DXL Attributes. Correct?
Here's the general setup, idk the syntax:
Object o
for o in current Module do{
if((o."X") contains "America" or "Bahamas" or "Czech Republic")
{
font bold "America" or "Bahamas" or "Czech Republic"
}
}
Also, most cells will have all 3 phrases in it.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
