This topic is locked

add new inlineadd after insert a number without press any buttons

10/26/2019 2:12:43 PM
PHPRunner General questions
K
Kay author

Hi Guys,
have a new project and need some help.
It is a Scannerapplikation and i want to scan multiple codes without interrution like press a button via mouse or keyboard.

my logic now was: after i scan one Code - that maybe need via a millisecond delay, javascript press automaticly the inline add button for a new line.
So what for a code i must write down into - maybe JavaScript OnLoad event?
So that i can scan as an example 10 codes without any interruption from the pallet and after that - i scan a "save" code to save this numbers.
Thank you guys in advance.
Kay.

M
Mark Kramer 10/27/2019



Hi Guys,
have a new project and need some help.
It is a Scannerapplikation and i want to scan multiple codes without interrution like press a button via mouse or keyboard.

my logic now was: after i scan one Code - that maybe need via a millisecond delay, javascript press automaticly the inline add button for a new line.
So what for a code i must write down into - maybe JavaScript OnLoad event?
So that i can scan as an example 10 codes without any interruption from the pallet and after that - i scan a "save" code to save this numbers.
Thank you guys in advance.
Kay.


Two ways I see to achieve this are as follows: 1st .. Create a text field that you plan on saving you codes to and have you scanner set to send an "EOL" code after scann (not a CR code)

The next way is to use something like this https://xlinesoft.com/blog/2016/01/21/speed-up-data-entry/ for insperation

Sergey Kornilov admin 10/27/2019

I assume that you use a barcode scanner to input data. There are several options here.

  1. Configure your barcode scanner to send ENTER code after each code scanned. Configure your Add to save the record automatically once ENTER is pressed.
  2. Another option - use a text area on the Add page to scan multiple barcodes and then when the record is saved you can write the code that will save it as a set of separate records. This would also require barcode scanner to send the ENTER code after each code scanned.

K
Kay author 10/27/2019

First - thank you guys for your help!
I think, tht the second variant with the textfield ist the easiest way to solve this.

Textarea: scan all the Codes (how can i have an auto space after on number?)
That result a second question:

How can i make it so, that i scan a code as a save button ?

Sergey Kornilov admin 10/28/2019

Please note that this is something that you will have to write your own code for.
Most likely you will need to use Field Events for this purpose. You will have to san this text area content after every change to see if your "stop" code is there. Once stop code is found you press "Save" button programmatically.
https://xlinesoft.com/phprunner/docs/field_events.htm

https://asprunner.com/forums/topic/23089-save-record-code-in-function/