Version

    Parameters with CTL2 Expressions (Dynamic Parameters)

    A CTL2 expression can be used in parameters, but it has to return a string data type.

    Example 12. Dynamic graph parameters - usage of CTL2 as a graph parameter value
    //#CTL2
    
    function string getValue() {
        return date2str(today(), "YYYY-MM-dd HH:mm:ss");
    }

    To assign CTL2 expression to a graph parameter, use the Edit Parameter CTL2 Value dialog.

    You can access dynamic parameter’s value using getParamValue() or ${PARAMETER_NAME}. However, it is evaluated only once during the graphs initialization phase, since values are cached and constant throughout graph execution.