Customer Portal

REFORMAT - Closing single quote missing

Comments 4

  • Avatar
    avackova
    0
    Comment actions Permalink
    Hi, you mix CTL and CTLLite. You transformation should be:
    function transform(){
    .
    .
    $0.FILE_NAME:=$0.FILE_NAME;
    $0.PERIOD:=str2date('20070101', 'yyyyMMdd');
    }
  • Avatar
    schabluk
    0
    Comment actions Permalink

    Hi, you mix CTL and CTLLite. You transformation should be:

    function transform(){
    .
    .
    $0.FILE_NAME:=$0.FILE_NAME;
    $0.PERIOD:=str2date('20070101', 'yyyyMMdd');
    }
    "avackova"


    It's working now. So you saying I can not use functions like str2date in easy transformation mapping?
    How about parameters? How can I write it down, construction like this doesn't work:


    function transform(){
    ...
    $0.FILE_NAME:=$0.FILE_NAME;
    $0.PERIOD:=str2date($par.PERIOD, 'yyyyMMdd');
    }

  • Avatar
    avackova
    0
    Comment actions Permalink
    Parameters can be used in standard form: ${param_name} - they are replaced by theirs values during graph instantiation. So in your transformation:
    function transform(){
    ...
    $0.FILE_NAME:=$0.FILE_NAME;
    $0.PERIOD:=str2date("${PERIOD}", 'yyyyMMdd');
    }
  • Avatar
    schabluk
    0
    Comment actions Permalink
    It works :D Thank you!

Please sign in to leave a comment.