• Sends a request to the provided application resource .vm-file underneath internal/application/resource/APPGUID/.

    Parameters

    • vtlFile: string

      Path to the application .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: UpObject | HTMLElement

      The upFuncPart or any HTMLElement of the application page.

    Returns Promise<any, any, any>

    Example

    JSON

    ajaxAppVTL("test.vm", {
    dataType: "json",
    success: function(dataJSON) {
    // e.g. dataJSON response is:
    // {"myobject":{"property1":"propertyValue1"}}
    alert(dataJSON.myobject.property1);
    }
    }, ix.util.getHtml("<GUID>"));

    Example

    Text

    ajaxAppVTL("test.vm", {
    dataType: "text",
    data: {
    fr_param1: Browser.getValue(ix.util.getHtml("<GUID_FROM_FIELD>"))
    },
    success: function(data) {
    Browser.setValue(ix.util.getHtml("<GUID_STATIC_TEXTFIELD>"), data);
    }
    }, ix.util.getHtml("<GUID_FROM_ANY_FIELD>"));