Javascript: TXTextControl.getIsFormulaCalculationEnabled Method
Description
Gets a value indicating whether formulas in tables are automatically calculated when the text of an input cell is changed.
Syntax
<void> TXTextControl.getIsFormulaCalculationEnabled(<RequestBooleanCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives a value indicating whether formulas in tables are automatically calculated when the text of an input cell is changed. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates TXTextControl.getIsFormulaCalculationEnabled in a practical document-editing workflow. It gets a value indicating whether formulas in tables are automatically calculated when the text of an input cell is changed.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.getIsFormulaCalculationEnabled(
function(result) {
if (result) {
console.log("get is formula calculation enabled is available.");
} else {
console.warn("get is formula calculation enabled is not available in the current document state.");
}
},
onTxError
);