Question

May I know if it is possible to query InfoPath 2007 web-based form via a bar code scanner.

Scenario
I have a bar code scanner and a web-based InfoPath form. The InfoPath form contain one section for query data based on a text field (let's name this text field as 'Query'). So, when the bar code scanner scan the bar code of a piece of paper, it will be enter into the 'Query' text field and the result will appear.

Was it helpful?

Solution 2

Actually, I found another work around.

I select the text field box and use the bar code scanner to scan the bar code and input the value into the text field box.

Then, I click a button label 'Query' and it will display all the data related to that bar code value.

OTHER TIPS

If the barcode scanner works just by faking keyboard entry of the numbers and then simulating a press of the enter button, then you can simply make sure that the input field has focus when the page loads.

document.getElementById('Query').focus();

Put that bit of javascript at the end of the page content and it should work as you expect.

If it doesn't simulate a press of the enter button, then you should set an event on the textbox's onchange event or something similar (maybe set a timer) and check whether input has been entered into the query field. Once there is data in the field, submit the form.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top