Creating an alias for attributes with the same names

In a scripted filter or condition, when the left operand and right operand of a condition are from same attribute name, but belong to two different queries, the condition does not work. You have to set different aliases for the two attributes for the condition to work.

Before you begin

Edit the Document Studio preferences:
  1. Click Window > Preferences.
  2. Expand PUB and click Document design.
  3. In the Use Schema annotations for display field, select No and click OK.

Procedure

To differentiate attributes with the same name, you can use the Alias feature to eliminate ambiguities. When you are adding the condition that verifies that the module description equals the description of the DOORSObject, right-click the attribute to set the alias.

Results

Now the Query/Object/Object Text attribute is known as $1_Object Text and the condition can be processed correctly.

What to do next

Tip: To examine how the condition is applied to the data, click Test. In the Test window, click Run.