Hi there,
In my app there is an input box and we use scanner to scan a barcode,
when we use OnChange event, every character written will trigger that event, and in the handler we raise exception...
My question is:
Is there a trick to just auto scan only when the entire barcode is written? - Assumed, no fix barcode length and no enter character in the barcode-?
best regard
Hi Indra,
I guess onChange event is working fine here. But challenge is how to figure out that bar code is entered completely. So for you should have some validation on length at least. But if its not possible then in this case only possiblity seems to me is that when raise exception don't log any error and also don't abort the flow. So if its failed it will not raise any exception.
Apart from that you can also try with onKeyUp event.
regards
Thank you, Sir
It is tricky, when raise exception, caught it and put in widget like text, but do not raise it as the user see it as an error. So it is error, but finally correct when all the barcode characters are read.