Page 1 of 1

intermec scans barcode into first field only

Posted: Tue Jun 10, 2014 11:54 pm
by mgs67
Intermec scans barcode into only the first field in ProfoundUI (PUI) display.

Barcode consists of 3 numbers (10 chars + 4 chars + 2 chars = total of 16 chars in barcode).
This reads just fine on green screen, into 3 fields.

In Rich Display file fields, only the first 10 chars field is populated and next two are blank. I have tried defining as char & decimal.
Is there something special to define in PUI, that allows the barcode to overlay into the next three fields in the row?
Thanks.

Re: intermec scans barcode into first field only

Posted: Wed Jun 11, 2014 4:30 pm
by Scott Klement
I'm not familiar with the barcode scanner you are using. Are you using something like a keyboard wedge to feed the data into your screen?

Or, is it acting like a copy/paste type scenario? (Like pasting text?)

You'll note that your Rich Display uses a web browser. The browser puts multiple fields on the screen and has it's own method of determining when to switch fields, etc. So it doesn't work exactly the same as a green-screen. If the input is coming as "keypresses", then you could potentially code JavaScript that automatically switches fields for you as each character is typed. If the data is coming from a copy/paste scenario, I'm not sure that there's much we can do, aside from using one big field and splitting it out in the RPG code.

Re: intermec scans barcode into first field only

Posted: Fri Jun 13, 2014 10:07 am
by negley
What you could do is input into a single text field and then using javascript substr the data into the three individual boxes. Text boxes have a auto advance property that could be used to bind a hidden button. Auto advance should auto submit the form when the variable is full. If you always submit 16 characters, then it would also submit. The hidden button could have the javascript that would substring the data into the other fields. You could also hide the main textbox and show the individual split boxes with the data.

Just a idea.