You can find or replace text
in a JET template with a JET tag that references a value in the input
model.
Before you begin
You must have at least one input schema element
or JET file action defined in the transformation input schema,
and at least one JET template must have been generated as a result
of running the Update Project command.
About this task
To find text in a JET template, or replace text with a JET
tag:
Procedure
- In the Project Explorer view, double-click
a JET template. JET templates have .jet as a file name extension.
- Select the text that you want to find or replace, right-click
it; then click Find/Replace with JET Model Reference.
- In the Find/Replace with Model References dialog box, complete
one of the following steps:
- To find the next occurrence of the text in the Find field,
click Find.
- To replace instances of the text in the Find field,
select an input schema element from the hierarchy. The JET tag that
corresponds to the selected input schema element is displayed in the Replace
with field.
- To create a derived attribute to replace text in the current
JET file, click New and complete the fields
in the Create New Derived Attribute window.
Tip: You can select or clear the Whole
word and Case sensitive check boxes
to refine your search.
- Click Close.
- Click .
Results
If you replace text, a JET Replace message appears in the
Problems view
for each instance of the text to be replaced, and an icon appears
in the left margin of the line that contains the text to be replaced.
When you resolve the JET Replace markers, these messages are removed
from the
Problems view and the JET file. Information
about the JET Replace markers is stored in the transform.tma file
in the current project.
Note: You can resolve JET Replace markers by
clicking the JET Replace message in the JET file or in the Properties view;
then click , and select a resolution. The proposed
resolutions show replacement values for all the markers that contain
the current selection. The proposed resolution for the longest string
appears first.