Customer Portal

Transformation Language for Reformat

Comments 2

  • Avatar
    mike
    0
    Comment actions Permalink
    dont worry.

    Think I found it.

    If you use Integer.parseInt instead of str2num it works.
  • Avatar
    avackova
    0
    Comment actions Permalink
    Hi,
    function str2num is part of Transformation Language, not Lite Transformation Language. The last one should be used for simple mappings only. If you write transformation using Transformation Language you need to give it into the body of transform function:
    function transform(){
    nt gender = str2num(${in.0.IDNumbersaidnumber}.substring(7,9));
    f ((gender) < 500)
    ${out.0.IDNumbergender} = "M";
    else
    ${out.0.IDNumbergender} = "F";
    }
    You can precede it by //#TL tag for faster recognizing TL Language

Please sign in to leave a comment.