Question & Answer
Question
How do you display in a column the custom attributes from a linked object in other modules using IBM Rational DOORS?
Cause
The analysis wizard can be used to create a column that displays attribute information from a linked object. However when you set the scope of analysis for "all modules" the wizard only allows you to choose the standard system attributes from the module; none of the custom attributes needed are shown in the list.
Answer
There are two methods that can be used to achieve this:
- Run analysis on a specific module and select the desired attributes
This is the simplest technique, but only works for one module
- Run analysis on all modules for a standard system attribute, for example object text
then modify the layout DXL column to replace the attribute with the custom attribute
This technique can be used for more than one linked module
Here are the steps:
1. Run the Wizard from the Analysis menu to create a column that displays the desired number of attributes
2. Select as many attributes as required.
For example if two attribute are needed choose object heading and object text.
3. Choose the option: One attribute per line (on the forth step of the wizard)
4. Click Finish to insert the column into the module
5. Right click the heading of the layout dxl column just created
6. Select Properties...
7. Click Browse in the Edit column Window with the Layout DXL radio button selected
8. Click Current to load the DXL previously generated by the Analysis wizard
in the browse DXL window
9. Scroll to the bottom section where the attribute names are displayed.
There are a number of lines that contain the standard attributes that look like this:
if (depth == 1) {
s = probeRichAttr_(othero,"Object Heading", false)
if (s == "")
displayRich("\\pard " " ")
else displayRich("\\pard " s)
s = probeRichAttr_(othero,"Object Text", false)
if (s == "")
displayRich("\\pard " " ")
else
displayRich("\\pard " s)
}
10. Change the name of an attribute inside the quotes to the name of the custom attribute
11. Repeat step 10 until you have replaced each standard attribute name with the custom attribute name required
12. Click Check to validate there are no errors
13. Click OK to close the edit layout DXL window
14. Click OK to close the edit column window
15. Save the view before exiting the module
Was this topic helpful?
Document Information
Modified date:
01 May 2020
UID
swg21408085