You can configure the barcode reader to send an 'Enter' keystroke when it reads the barcode.
The browse form must contain a column with all the barcodes.
When a browse form is opened the cursor is located on the serach field. Therefore when the barcode reader scans a barcode, the text of the barcode is entered on the search field, and when the 'Enter' keystroke is sent by the barcoode reader, the browse form will find the record corresponding to the scanned barcode.
I am not sure how to program the JS to open the record when it is found, but I noticed the following:
The 'words' that match with the searh field in the browse form rows have this code:
Code: Select all
<span class="nuBrowseSearch" onclick="this.offsetParent.onclick()">WORD THAT MATCHES THE SEARCH FIELD</span>
So, you might want consider creating a JavaScript function that is executed when the browse form is opened.
This function needs to search for 'span' elements containing the 'nuBrowseSearch' class. If only one element is found then simulate a click on it and the edit form will be opened.
If two or more elements are found, it means that there are more than one record with the corresponding barcode, and the edit form should not be opened in order for the user to notice that.
Fike