on 11-06-2023 3:57 PM
Hi Experts,
I use "Control.Type.FormCell.SimpleProperty" control as an editable numeric input representing a quantity. The user can modify manually the value in the input, or the user can scan a barcode to increase the value by 1.
The issue is when the user has the focus on the input and scans with a hardware scan (for example, laser scan from a Zebra device), the scanned barcode is automatically inserted in the input - and we don't want that, because the input keeps a quantity, not a barcode. We have a listener when scanning to increase the quantity by 1 which is working, but the auto insert of the scanned barcode in the input is making troubles.
I expected a property of the control for disabling the auto-insertion of the scanned barcode, but didn't find something like this.
I tried to change the focus from the input to something else hoping that the auto-insertion will not happen, but I couldn't change the focus from the input to something else.
Here is the code snippet of the control:
{"validationProperties": { "ValidationMessage": "Validation error message", "ValidationMessageColor": "ff0000", "ValidationViewIsHidden": "<Rule>"},"Value": "<Rule>","_Type": "Control.Type.FormCell.SimpleProperty","_Name": "QuantityInput","IsVisible": true,"Separator": true,"Caption": "Quantity","OnValueChange": "<Rule>","KeyboardType": "Number","AlternateInput": "None","Enabled": true,"IsEditable": "<Rule>"}Most likely the reason is that the hardware scanner is acting as a keyboard wedge and sending the scan value to the current field as keystrokes. You may need to look into configuring the hardware scanner to trigger an event / intent instead of as a keystroke. This will require additional coding in your MDK app to capture the event and act accordingly when received.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
9 | |
8 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.