Hi there, would like to know how we can collect a set of barcodes using a bluetooth barcode scanner continuously. I would like the text box to display the current barcode scanned and when they scan the next it will display the next barcode
the barcode will be collected in an array [] string on the client’s session. Thank you in advance
Use the barcode input component with a prefix/suffix on your scanner.
Hi ryanjmclaughlin, thank you yes it worked.
I have a problem, everytime I try to scan a new barcode, it overwrites the first one in data, How can continuously append to the data instead of overwriting it?
The data is an array, the new scans will be appended to the end by default. I use the data in many different ways so I capture the scan and broadcast it via sendMessage, then reset the data back to []
after every scan.
Cool thank you. do you know why sometimes it overwrites the existing value and sometimes it will append to data when scanned?
Yes, I never quite figured out the rules around how the data array behaves I have seen inconsistency as well, maybe one of the IA people can chime in.
Thank you @ryanjmclaughlin for the idea of broadcasting yes I’ve lodged a ticket and am waiting for reply.