Customer Portal

Transformation Language

Comments 1

  • Avatar
    dpavlis
    0
    Comment actions Permalink
    Hi !

    Internal transformation language has a bit different syntax than the "script" which is converted to Java source.

    This is example of transform() function used in HashJoin:

    function transform(){
    $OrderID := $OrderID;
    $CustomerID := $CustomerID;
    $EmployeeID := num2str($EmployeeID);
    $EmployeeID2 := num2str($1.EmployeeID);
    $LastName := concat($1.LastName,":",$1.FirstName);
    }



    To use lookup, it has to be defined in graph. Then you can use it something like this:

    lookup( <id of the lookup>, <key par1>, <key par2>, ...).<field name>

    Thus the following:
    lookup(LKP,'a12','xxx').Name


    Means that from lookup table with id LKP, we get record which corresponds to key 'a12','xxx' and from such record content of Name field.

    Have a look at examples package. It should give you some more info.

Please sign in to leave a comment.