Posts: 210
Threads: 52
Joined: Mar 2018
Reputation:
3
Location: Bryan, TX
Howdy All!
I am in the process of trying to add a version of my barcode scanner routine (keyboard handler) into my IW app.
What I need to do is keep reading the keyboard (OnChar) and look for a start delimiter and an ending delimiter (or ESC to abort the keyboard read).
In my VCL app, I just put up a modal dialog with a label and a Cancel button and I implement the aforementioned routine trapping the form's OnChar event.
I would like to do something similar in an IW javascript routine.
I really am ignorant when it comes to programming in javascript and I have Googled for hours and can't find anything more than a simple OnKeyDown routine example.
Has anyone an example of how to implement this?
All the best and thanks in advance,
Shane
Posts: 210
Threads: 52
Joined: Mar 2018
Reputation:
3
Location: Bryan, TX
Does anyone have a good library / component that they can reference that can be used for mask edits?
I am trying to solve my aforementioned problem in a different way.
I can't believe how difficult the most simplest things are once one starts to try to get it to work in a browser.
All the best,
Shane
Posts: 210
Threads: 52
Joined: Mar 2018
Reputation:
3
Location: Bryan, TX
I am open to the scanner as long as it is a 2D imager (no more laser / CCS scanners).
I am just looking for a simple way to extend a barcode scanning IW app I wrote that uses the camera. Most of my users don't understand simple physics / optics and try to use an IPAD to scan QR codes off a phone in bright sun shine (i.e. they think I am a smartass if I tell them to get a big black umbrella).
Any how, I am trying to find a simple mask edit control that works with IW.
All the best,
Shane
Posts: 114
Threads: 32
Joined: Dec 2019
Reputation:
1
Location: Россия
09-23-2020, 03:38 AM
(This post was last modified: 09-23-2020, 03:44 AM by Сергей Александрович.)
I have a Windows client and Metrologic scanners or similar. I have been using this option for a long time: I Place the cursor on the TEdit field and read the barcode into it with the scanner. The scanner is configured to add "carriage return" characters at the end of the barcode. For tDbEdit, in the OnPressKey event, we write processing the entered barcode or switching to the desired procedure. In any case, after that, the entire barcode is in TEdit and you can do anything with it.
It's the same with QR codes !
But it doesn't work under Android right now I'm dealing with this problem.
Did I understand correctly that you work with Android and recognize the barcode image from the device's camera?
How do you get the scan result? In a text string?
Posts: 114
Threads: 32
Joined: Dec 2019
Reputation:
1
Location: Россия
I don't understand what masks have to do with it. Barcodes or QR codes have different structure, length, and composition. In my understanding, you first need to read the barcode into a string variable and then pass this value for processing. That's what I always do.
Posts: 114
Threads: 32
Joined: Dec 2019
Reputation:
1
Location: Россия
Beautiful! And how to do it?