Transformation Designer - defining new functions

To define new JavaScript functions, you must use the Define Function dialog.

To display the Define Function dialog, click the Define Functions button in the TML Details section of the transformation details to the right of the list of transformations.

Alternatively, where a source data element is associated with a function operation:

  1. Click the browse button for the source data element. The Select Function dialog is displayed.
  2. Name the function to be defined and click the Define button. The Define Function dialog is displayed.
    All fields on the Define Function dialog are disabled until you click Add.
  3. Click the Add button and enter the following information:
    Function Name
    This field contains names of functions that are already added. To add a new one, go to the Name field.
    Name
    Enter a unique name.
    Description
    Enter a description for this function.
    Parameters
    Enter the parameters you want to use for this function. Separate parameter names with a comma.
    Body
    Enter the JavaScript code, including surrounding brackets '< >', for the function body. The line and position number are displayed.
    Uwaga: Resize the Define Function dialog, so that you can see the function code more clearly.
  4. Click OK to close the Define Function dialog.
  5. The new function is now saved and can be selected for future use within this transformation.
    Uwaga: Any messages are displayed in English, irrespective of the language being used. This is because the JavaScript language itself is English, like most programming languages.