• Sends a request to the provided .vm-file.

    Parameters

    • vtlFile: string

      Path to the .vm-file - .vmi are not reachable.

    • settingsAjax: IxAjaxSettings

      Ajax settings e.g. {dataType: 'json'}, http://api.jquery.com/jQuery.ajax/, additional intrexx properties: urlParameters

    • appContext: IxControl | HTMLElement

      The upFuncPart or any HTMLElement of the application page.

    Returns Promise<any, any, any>

    Example

    JSON

    ajaxVTL("internal/system/vm/custom/test.vm", {
    dataType: "json",
    urlParameters: {
    "rq_Name1": "value1",
    "rq_Name2": "value2"
    },
    success: function(dataJSON){
    // e.g. dataJSON response is:
    // {"myobject":{"property1":"propertyValue1"}}
    alert(dataJSON.myobject.property1);
    }
    });