Customer Portal

Comments 1

  • Avatar
    admin
    0
    Comment actions Permalink
    Hi,

    Yes, exactly, for retrieving the graph name in a Transformation we are using parameter JOB_FILE or GRAPH_FILE (both mean the same in a graph). You can work with each of them the same way as you would with any other parameter without explicitly defining it.

    In means that you don't need to worry about the Java code at all and in order to get the graph name you can use the following in you CTL transformation (e.g. in Reformat component):

    $out.0.graphName = "${GRAPH_FILE}";


    It will get a path to the graph location within the current project (something like "graph/getnamegraph.grf") and store it into the "graphName" field.

    In addition, you can also apply following functions to the parameter:

    $out.0.graphname = getFileName("${GRAPH_FILE}"); // the result from the example above would then be "getnamegraph.grf" or

    $out.0.graphname = getFileNameWithoutExtension("${GRAPH_FILE}"); //result "getnamegraph"


    Please let me know if this meets your requirements or if further assistance is needed.

    Thanks. Best Regards.

    Eva

Please sign in to leave a comment.