Configuring a Data Calculator JavaScript Component

Add and configure a Data Calculator JavaScript component.

  1. Drag the Data Calculator JavaScript component onto the Design window.
  2. If necessary, link the input port of Data Calculator to the output port of the component that provides the inbound data.
  3. If the Data Calculator component window is open, click Save to close the window.
  4. In the Design window, right-click the output port of Data Calculator, select Assign Structure and select one of these options:

    Option

    Action

    IN

    Create an output port structure that matches the input port structure of the Data Calculator.

    Copy Structure

    Open a window that allows you to apply an existing port structure to the output port.

  5. In the Design window, double-click Data Calculator JavaScript, or, in the Properties window, click the Rule icon.
  6. Select one of these options:

    Options

    Action

    Yes

    Create a set of transformation rules that maps each attribute in the IN-port to a corresponding attribute in the output port.

    No

    Manually map attributes in the input port to a corresponding attribute in the output port.

Related tasks
Mapping Port Attributes