Bar Code

Discussions about creating CAPI applications to run on Android devices
Forum rules
New release: CSPro 8.0
Post Reply
ABOUBALLACK
Posts: 14
Joined: September 22nd, 2016, 9:24 am

Bar Code

Post by ABOUBALLACK »

Hello,
I would like to know if it is possible to scan the barcode of a card and retrieve all information at the same time behind. If yes, how?
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Bar Code

Post by josh »

We don't have direct support for barcode scanning in CSPro.

On Windows, many handheld barcode scanners work as if they are keyboards. They connect to the PC via USB and when you scan a barcode they simulate typing the barcode. These kinds of scanners will work well with CSPro.

On Android there are many barcode scanning apps you can find for free on Google Play however they do not integrate directly with CSPro so you would have to switch to the barcode app, scan the barcode, copy the result, switch back to CSPro and then paste the scanned barcode.
htuser
Posts: 631
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

Re: Bar Code

Post by htuser »

Thank You Josh for your complete explanation.
Since there's lot of open source program for barcode scanning/reading (https://www.quora.com/What-are-the-best ... -libraries), we'll be very happy to see embedded barcode scanner in Cspro in the future.
Now, also, some barcode scanner store reading results in sqlite database on Android/Windows. So, Cspro's sqlquery can be used to read them, exept, in his actual fashion, sqlquery can't open sqlite database using credentials... However, to open external sqlite databse from other application, this is required. Hopefully this can be in the future according to my discussions with Greg.

Best Regards,
G.VOLNY, a CSProuser from Haiti, since 2004
ABOUBALLACK
Posts: 14
Joined: September 22nd, 2016, 9:24 am

Re: Bar Code

Post by ABOUBALLACK »

Thank you
It will be a good project because more information will be retrieved at once and in no time as some data collection applications do.

Last question about forms

how can I avoid entering the questionnaire number? I would like this to be done automatically once set Protected
aaronw
Posts: 561
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: Bar Code

Post by aaronw »

I believe you're asking how to pre-fill the id item.

If you have a single interviewer you could simply tick the id item's properties auto increment and protected. If you have multiple interviewers you'll need to maintain the uniqueness of the case id by adding an interview id (for example). However, this puts you back where you started.

To move past this you need to save the operator id, so they don't need to enter it every time. Here's a couple ways to approach this.

Quick and dirty approach:
If each interviewer has their own tablet set the device name and then use that as the pre-fill. Alternatively, you could include a text document with the operator id. Then use fileread to read it and prefill it.

Menu application:
This would require more work. You'd create a separate application that asks the interviewer for their operator id. Savesetting and loadsetting would then be used to make it persistent, so the interviewer doesn't have to enter it each time. The menu application then launches your data entry application and pre-fills the operator id.
Post Reply