Understanding scripts
The Transform tab opens showing the Main file panel where Transform scripts are displayed. Each script file contains transformation instructions. To create these instructions you use the following options at the top of the Transform tab:
*New
Create a new instruction. When you choose “New” to create a new transformation instruction, the list of instructions appears, as shown in Figure 5‑4. You select an instruction from the list, and provide the appropriate parameters for the instruction.
Figure 5‑4 Transformation instructions
Depending on their purpose, the transformation instructions are grouped in three categories:
*Instructions for creating new columns
*Instructions for managing data objects
*Miscellaneous instructions
For more information on transformation instructions, see the user guide Using BIRT Analytics.
*Duplicate
Create a new instruction based on an existing one.
*Remove
Remove an instruction.
*Enable
Enable an instruction for execution.
*Disable
Mark an instruction as not executable. You can use this to include comments in the script.
*Up arrow
Move an instruction up in the script
*Down arrow
Move an instruction down in the script
*Search field
Empty field beside the arrow icons that enables a search for an instruction, as shown in Figure 5‑5.
Figure 5‑5 Searching through transforms
You can copy, paste, and delete instructions using the shortcut keys described in Table 5‑1.