Javascript: DocumentSettings.getDocumentSubject Method
Description
Gets the subject string of the current document.
Syntax
<void> DocumentSettings.getDocumentSubject(<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.getDocumentSubject in a practical document-editing workflow. It gets the subject string of the current document.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.documentSettings.getDocumentSubject(
function(result) {
console.log("get document subject result:", result);
},
onTxError
);