TX Text Control .NET Server

Javascript: DocumentSettings.getCreatorApplication Method

Method|Introduced in 29.0

Description

Gets the application, which has created the current document.

Syntax

<void> DocumentSettings.getCreatorApplication(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives the property value.

errorCallback

Optional. Is called when the operation failed with an error.

Examples

The following example demonstrates DocumentSettings.getCreatorApplication in a practical document-editing workflow. It gets the application, which has created the current document.

function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

TXTextControl.documentSettings.getCreatorApplication(
    function(result) {
        console.log("get creator application result:", result);
    },
    onTxError
);