Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

barcode scanner to invoke data from database

Hi Scott,

Are there any errors when scanning code? Please check the values in service response, when creating mapping and when saving a value to variable. http://docs.appery.io/documentation/d...

Scott Schechtel6280324
Posts: 0
Joined: Sun Sep 29, 2013 12:03 am

barcode scanner to invoke data from database

No errors when scanning. I just can't get the app to display anything. My phone is just stuck on scan mode. However before I mapped data to both SKU in local variable AND the label component, I was at least getting the SKU in the first field. But what good is a database if mapping to a local variable doesn't read it? How do I know the app is connecting to the dBASE with the SKU and other product info??

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

barcode scanner to invoke data from database

Hi Scott,

You can use service "Error" event that fires if a service error occurs. There you can write your code to handle this situation.

Scott Schechtel6280324
Posts: 0
Joined: Sun Sep 29, 2013 12:03 am

barcode scanner to invoke data from database

Okay I'll try that. I add the code in the JavaScript function section? Does my mapping look correct from the last screenshot?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

barcode scanner to invoke data from database

Hello! Please try and let us know result.

Scott Schechtel6280324
Posts: 0
Joined: Sun Sep 29, 2013 12:03 am

barcode scanner to invoke data from database

Still getting the scanner function without going to another screen. Any ideas?

Scott Schechtel6280324
Posts: 0
Joined: Sun Sep 29, 2013 12:03 am

barcode scanner to invoke data from database

Now I'm getting the barcode again but the screen goes white - app crashes. Is that an appery.io issue?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

barcode scanner to invoke data from database

Hello! Could you clarify when exactly it crashes? After you scan barcode?

Scott Schechtel6280324
Posts: 0
Joined: Sun Sep 29, 2013 12:03 am

barcode scanner to invoke data from database

Here is a new post on barcode scanner not working

I built a new test app and added the barcode scanner. It scans a barcode and below the scanner box, it only shows 'product found' but when I scan another item, it will quickly display the three text responses - text, format, cancelled and flash back to scan mode. Then the screen goes white and I have to exit out of app completely. With my first test app I had the app listing the three text responses - text, format, cancelled, without having to close it out..Sounds like a bug in the appery scanner service maybe??

Thanks for input

Return to “Issues”