Create a Transformation wizard
- Right click on any screen capture in the Screen Captures folder and select New HATS > Transformation.
- Click the Create HATS Transformation icon on the HATS toolbar.
- Select HATS > New > Transformation (or File > New > HATS Transformation) on the HATS menu bar.
- Any place you can create a screen customization, you can create a transformation. For more information, refer to Working with screen events.
The Create a Transformation wizard appears and enables you to select the target project, name the transformation, override the package name (for HATS rich client projects), give it a description, and see where the transformation definition is saved. Click Next when you have specified these items.
On the Select Screen panel you have the option of selecting the host screen on which the transformation will be based. From the Select a screen section, you can select Use the host terminal screen or Use a previously captured screen from the pull-down menu. You can highlight certain fields on your host screen by selecting the different options beside Highlight fields. If you want to see where the input fields are defined on the screen, select the Input check box. If you want to see what fields are protected, select the Protected check box. If you want to highlight any hidden fields, select the Hidden check box. To modify the colors of the input, protected or hidden fields highlighting, see Using HATS preferences. When your selections have been made, click Next.
There are four rendering patterns from which you can select, Blank, Default Rendering, Prepopulated using Default Rendering, and Prepopulated using Fields.
- Blank
- Creates a new blank transformation. You can later add individual components using the Insert Default Rendering or Insert Host Components wizards.
- Default Rendering
- Creates a new transformation that displays with default rendering
at runtime. Use this pattern if you want to use a
rendering set different from the default, change the region of the
screen to be rendered, or add additional components using the
Insert Host Components wizard. Click Options to configure the
following setting on the Rendering Options panel:
- Use the default rendering set
- Select this box to use the default rendering set of the application when the transformation is rendered at runtime. Clear this box to select a specific rendering set to always use.
- Prepopulated using Default Rendering
- Creates a new transformation prefilled with component tags, generated using default rendering, which can
be customized using the Edit Host Component wizard. Click Options to configure the
following settings on the Rendering Options panel:
- Use the default rendering set
- Select this box to use the default rendering set of the application when the transformation is rendered at runtime. Clear this box to select a specific rendering set to always use.
- Include empty, protected fields
- Select this box to generate tags (for Web transformations) or
component rendering composites (for RCP transformations) for empty,
protected fields. In most cases, the default (not generating tags
or composites for these fields) is sufficient, and provides more flexibility
for moving other controls around the transformation.
Note:In general, when creating a prefilled transformation, you should capture a screen that has as much information displayed as possible. For example, if you are creating a transformation for a screen containing a table, you should capture a screen that has the entire table of data filled in. This will cause tags (for Web transformations) and composites (for RCP transformations) to be generated for all fields in the table.
- Prepopulated using Fields
- Creates a new transformation prefilled with labels and input
fields which can be customized using the Edit
Host Component wizard.Click Options to configure the
following setting on the Rendering Options panel:
- Include empty, protected fields
- Select this box to generate tags (for Web transformations) or
component rendering composites (for RCP transformations) for empty,
protected fields. In most cases, the default (not generating tags
or composites for these fields) is sufficient, and provides more flexibility
for moving other controls around the transformation.
Note:In general, when creating a prefilled transformation, you should capture a screen that has as much information displayed as possible. For example, if you are creating a transformation for a screen containing a table, you should capture a screen that has the entire table of data filled in. This will cause tags (for Web transformations) and composites (for RCP transformations) to be generated for all fields in the table.
Use the Preview button to display the transformation using the selected pattern.
After the patterns are laid out you can arrange the components inside your transformation. If you want to launch the screen customization wizard, select the Start the Create Screen Customization wizard when done check box, then click Finish. For more information, see: Default rendering.