Barcode Editor: Conversion from ASPX to HTML and TypeScript
The following tables will help you to convert the ASPX elements that are related to the barcode editor to HTML or TypeScript elements.
PXTextEdit
The following table shows the correspondence between the PXTextEdit element and the HTML or TypeScript elements. During the conversion of ASPX pages to HTML and TypeScript, you need to replace these ASPX elements with their analogs in HTML or TypeScript.
ASPX | HTML or TypeScript |
---|---|
PXTextEdit
|
Replace it with field and specify
control-type="qp-barcode-input" in the field
tag. In rare cases, you should replace it explicitly with the
qp-barcode-input control.
|
DataField
|
Use the name attribute of the field tag.
|
ID
|
Replace it with the id attribute of the qp-field tag if this tag is used as a replacement. In other cases, the ID is not necessary for a barcode editor. |
AutoCallBack in PXTextEdit
The following table shows the correspondence between the AutoCallBack element located inside the PXTextEdit tag and the HTML or TypeScript elements. During the conversion of ASPX pages to HTML and TypeScript, you need to replace these ASPX elements with their analogs in HTML or TypeScript.
ASPX | HTML or TypeScript |
---|---|
AutoCallBack >
Command
|
In the fieldConfig decorator or in the
field tag, specify the action name in the
submitCommand property of the
control.
The Scan action is defined in the barcode-driven engine, so you do not need to define it in TypeScript. |
Obsolete ASPX Controls and Properties
The following table lists the obsolete ASPX elements that are related to the barcode editor. You do not need to replace these ASPX elements with any HTML or TypeScript elements.
ASPX Control | Properties/Comments |
---|---|
PXTextEdit |
|
AutoCallBack |
|
ClientEvents | The tag is not necessary. |