The control interacts with other controls through rules. When you bind properties between different controls, you can use the data to populate properties or set values in runtime.
Use the following examples for when to use the control with other controls through rules:
- Set a control’s properties - You can configure the settable properties of the control with this action
- Data Transfer - You can transfer data from items listed in the context browser to the control
- Execute a control's method - You can configure the control's method using this action
The following events and methods are available on the control.
Rule Events:
- When [control] is Changed: This event executes when the control is set to a new value that is different from the previous value. You can execute a rule condition or action when the control is changed, for example selecting an item or transferring a value to the control.
- When [control] is Error: You can execute a rule condition or action when the control is in error such as show a message, see Configure a Custom Error Rule for an example.
- When [control] is Initialized: You can execute a rule condition or action after the control has loaded, for example set the focus to the control. See How To: Use the Focus Control Method for an example.
- When [control] is Not Supported: You can execute a rule condition or action when the control is not supported, for example hide the scan barcode button and show a text box to enter barcode manually.
- When [control] is Scanned: You can execute a rule condition or action after the control has scanned, for example showing a message to the user after they scan a barcode.
- When [control] is Scanning: You can execute a rule condition or action when the control is scanning, for example if the form is offline, get confirmation from user before they scan a barcode.
Control Method:
- Execute a [control's] Scan method: Scans the barcode of an item