Javascript: BarcodeTypeSettings.getHasCheckValue Method
Description
Gets a value indicating whether the currently used barcode type includes a check value.
Syntax
<void> BarcodeTypeSettings.getHasCheckValue(<RequestBooleanCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives the result. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates BarcodeTypeSettings.getHasCheckValue in a practical document-editing workflow. It gets a value indicating whether the currently used barcode type includes a check value.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.barcodeTypeSettings.getHasCheckValue(
function(result) {
if (result) {
console.log("get has check value is available.");
} else {
console.warn("get has check value is not available in the current document state.");
}
},
onTxError
);