EPOS - devine inspiration

Questions, tips and tricks and techniques for scripting in Servoy

EPOS - devine inspiration

Postby Gordon » Mon Jul 04, 2011 4:49 pm

Hi

I have to produce a solution that will scan 2d barcodes and authenticate the results against a database. Whilst I can see this is not in its self hard to do I am having a mental block as to how to do this in a kiosk type environment ie unattended.

    The onDataChange event requires you to tab or click once the item has been entered - with limited access and lots of scans thats going to be hard
    I cant find a plugin that handles this - what is needed is a listener and I certainly dont have time/knowledge to produce one
    I am not sure that running some sort of loop/listener is a great idea, does this suck up memory ?
    In the loop/listner context what would happen if the scanner was half way through loading the string into the field when the loop triggered - an error I guess

As we have potentially 10k people about to need to use it to gain access to a FREE BAR !! it would be good to have an elegant solution, so any ideas would be very much appreciated

Cheers
Gordon McLean
Click Digital Media Ltd
SAN Developer
www.clickdigital.com
User avatar
Gordon
 
Posts: 265
Joined: Thu Mar 17, 2005 8:05 pm
Location: UK

Re: EPOS - devine inspiration

Postby ROCLASI » Mon Jul 04, 2011 5:25 pm

Hi Gordon,

What is your exact question ? You need a bean/plugin for a scanner ? (do you already have a scanner?)
Or is the question how to work with this bean/plugin ?
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: EPOS - devine inspiration

Postby Gordon » Mon Jul 04, 2011 5:48 pm

Hi

I have a scanner and it works fine reading 2d barcodes.

IF you select a Servoy field it will write the contents of the barcode into the field as a string

The question was is there a way to make this trigger a method without having a keyboard. Because as far as I can tell in order to make an onDataChange event fire you need to tab or click enter. The method would obviously reset the field ready for the next attempt

SO my thought was is there a listener plugin, which I think not because I cant find one. And if not do you think a looping script watching the field would cause problems as this seems the only solution

Cheers
Gordon McLean
Click Digital Media Ltd
SAN Developer
www.clickdigital.com
User avatar
Gordon
 
Posts: 265
Joined: Thu Mar 17, 2005 8:05 pm
Location: UK

Re: EPOS - devine inspiration

Postby ROCLASI » Mon Jul 04, 2011 6:01 pm

Hi Gordon,

So the scanner software emulates keystrokes.
Perhaps you should take a look at the keylisteners plugin from Patrick Talbot.

Hope this helps.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: EPOS - devine inspiration

Postby Gordon » Mon Jul 04, 2011 7:48 pm

ROCLASI wrote:Hi Gordon,

So the scanner software emulates keystrokes.
Perhaps you should take a look at the keylisteners plugin from Patrick Talbot.

Hope this helps.


Excellent plugin !!

I am not sure this is going to address the immediate issue, but certainly will work in the short term.

Thanks for your input
Gordon McLean
Click Digital Media Ltd
SAN Developer
www.clickdigital.com
User avatar
Gordon
 
Posts: 265
Joined: Thu Mar 17, 2005 8:05 pm
Location: UK

Re: EPOS - devine inspiration

Postby Thomas Parry » Mon Jul 04, 2011 8:27 pm

Is the issue here how to force the scanner input to a specific field?
Does the setFocus method not work?
On the scanner that I use there is a programming option to add a newline at the end of the barcode/keystrokes which is used to trigger the onDataChange.
Is there such as option for your scanner?
Tom Parry
Prospect IT
Java/C++/Servoy/Jasper Reports/Simulation/Service Applications
http://www.prospect-saas.biz
Thomas Parry
 
Posts: 498
Joined: Thu Jan 10, 2008 8:48 pm
Location: Ottawa, Canada

Re: EPOS - devine inspiration

Postby Gordon » Mon Jul 04, 2011 8:36 pm

Thomas Parry wrote:Is the issue here how to force the scanner input to a specific field?
Does the setFocus method not work?
On the scanner that I use there is a programming option to add a newline at the end of the barcode/keystrokes which is used to trigger the onDataChange.
Is there such as option for your scanner?

Hi that's exactly the problem and the fix I can throw that into the barcode if needs be - it's a basic Motorola I don't have the part number handy but certainly the new line would work

Many thanks
User avatar
Gordon
 
Posts: 265
Joined: Thu Mar 17, 2005 8:05 pm
Location: UK

Re: EPOS - devine inspiration

Postby Jan Aleman » Mon Jul 04, 2011 9:27 pm

In my pre-Servoy days I did quite a few projects involving scanners and they were without exception easy to program such that they send and enter after every scan..... Just open up that users manual!
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Re: EPOS - devine inspiration

Postby ryanparrish » Tue Jul 05, 2011 12:29 am

We do thousands of barcodes a day with our warehouse management app, all you have to do program the scanner to send a tab or enter after it scans the barcode as Jan mentioned. Just make sure you program the event to regain focus on the field when it's done.
ryanparrish
 
Posts: 162
Joined: Thu May 17, 2007 7:49 pm
Location: Miami, FL


Return to Methods

Who is online

Users browsing this forum: No registered users and 6 guests