Javascript: DocumentSettings.getCreatorApplication Method
Description
Gets the application, which has created the current document.
Syntax
<void> DocumentSettings.getCreatorApplication(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| 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
);