Customer Portal

Retrieve Graphname

Comments 4

  • Avatar
    Lukas Cholasta
    0
    Comment actions Permalink
    Hi Thomas

    The functions you mentioned are Java methods. If you want to get the graph name by a CTL2 function, please use this expression:
    $out.0.field1 = "${JOB_FILE}"

    That will return path with file name. In order to get only the file name you can use:
    $out.0.field1 = getFileName("${JOB_FILE}")


    Hope this helps.
  • Avatar
    u02160
    0
    Comment actions Permalink
    Thank you very much Lukas!

    The Job_File parameter worked fine. I received the same Function not declared on the getFileName, however, with a little lastIndexOf and substring, I was able to parse out the graphname from the path.

    Should I concern myself with the Function not declared error at this time?

    Thanks again,
  • Avatar
    Lukas Cholasta
    0
    Comment actions Permalink
    Hi Thomas

    I believe, there is no need to be concerned about the missing function. I assume you are using Designer version 4.0.x or former. That function was added in version 4.1.0, thus it is not available in earlier versions. If you are using version 4.1.0 or higher, please let me know.

    Best regards
  • Avatar
    u02160
    0
    Comment actions Permalink
    That is is. I am on 4.0...

    Thank you very much!

Please sign in to leave a comment.