Insert a rule to print data or reserve space for a static data item; for example: if creating a sentence, right-click inside the sentence and select Add Rule. Upon creating a rule, add values for the Public Name, GDD Name, or a Substitution Name by adding this information in the PTR Editor tab.
Note: - By default, adding a rule to an element automatically displays the PTR Editor tab. For more information on using the PTR Editor, see Product Technical Rule (PTR) Reference.
- To access the GDD Name, Public Name, and Substitution Name for a data item that you have just inserted, click outside the para and then (single click) back onto the data item. The GDD Name, Public Name, etc. will appear with a white background instead of being grayed when that data item is “active."
- If the rule comes from a content reference, then Public Name, GDD Name and Substitution Name, as well as the PTR and business logic, are read only.
The inserted data rule appears in the Outline Editor view with the Data ID that has been assigned; or if a Public Name or GDD Name has been added it will display that name.
Note: A DTA ID is required to be unique to the Public Name/GDD Name/Substitution Name assigned to it.
If copying text that contains a data field and then changing the Public Name/GDD Name/Substitution Name, the following error appears:
- This data rule exists in more than one location. Changing the PublicName will update all locations. Do you wish to continue?
If you need a new data name click No, remove the data element, and insert a new one with a new DTA ID assigned.
The Public Name/GDD Name/Substitution Name should also only appear once in the REQ file. If attempting to create a new data field with a Public Name/GDD Name/Substitution Name that already exists, the following error appears:
- The PublicName <x> already exists for rule DTA.<x> and cannot exist on multiple rules. Would you like to reuse this rule?
Click
Yes to use the same data field in multiple places.