Hi All,
Just looking at the possibility of a Warehouse / Stock style system with WiseJ with integration to Bar Code Scanners.
Not from mobile devices, but from web browsers with no camera (ruling out the Barcode Extensions with ZXing)
The scanners are basic HID Keyboard scanners (USB).
For those not familiar the simplest way to explain it is that it just outputs the barcode data to the destination. So if you have Notepad open, you will see the data appear in Notepad. Similarly if you had a WiseJ form open with the focus on a Textbox or similar, the bar code data would appear in there.
Now the fundamental issue is that keeping the focus inside a specific Textbox is problematic based on UI design and user interaction.
What type of barcode can be implemented inside the bar code itself using some sort of identifier. So by scanning the bar code and interpreting the data, it is easy to know what it is and where to put the appropriate data on the form or perform a specific action.
So the flow would be :-
So my question would be is there a way or an event (or similar) to attach to that I can preview the data on a Form / Window / Custom User Control?
I noticed PreviewKeyDown but the event doesn’t fire on scan which I guess may be expected as a key wasn’t actually pressed.
Alternatively anyone else implemented a similar solution and has any pointers / feedback?
Thanks,
Brayden.
Hi Brayden,
Alternatively, you can also try to add a KeyDown listener in JavaScript and build a keyboard buffer on the client. When the buffer fills up you can fire a WidgetEvent for a “scan” event.
Relevant Links:
https://wisej.com/support/question/keydown-keyup-keypress-events-does-not-work
https://docs.wisej.com/api/wisej.web/general/control#initscript
https://docs.wisej.com/api/wisej.web/general/control#widgetevent
HTH,
Levie
Hi Brayden,
Using the barcode scanner in the web browser (Chrome, Edge, etc.) as a virtual keyboard will require you to have a focused textbox at all times that manages the KeyPress or TextChanged event.
If you would like a deeper integration that intercepts the values from the barcode scanner without a textbox (programmatically in C#), this can be achieved using Wisej.NET Hybrid (docs.wisej.com/Hybrid).
If you would like assistance with this, you can reach out to sales@wisej.com to order some consulting packages.
Best regards,
Levie
Please login first to submit.