Page 7 of 8

barcode scanner to invoke data from database

Posted: Mon Sep 30, 2013 5:25 am
by Kateryna Grynko

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...


barcode scanner to invoke data from database

Posted: Mon Sep 30, 2013 5:47 am
by Scott Schechtel6280324

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??


barcode scanner to invoke data from database

Posted: Mon Sep 30, 2013 1:35 pm
by Kateryna Grynko

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.


barcode scanner to invoke data from database

Posted: Mon Sep 30, 2013 2:02 pm
by Scott Schechtel6280324

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


barcode scanner to invoke data from database

Posted: Mon Sep 30, 2013 2:42 pm
by Maryna Brodina

Hello! Please try and let us know result.


barcode scanner to invoke data from database

Posted: Mon Sep 30, 2013 4:42 pm
by Scott Schechtel6280324

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


barcode scanner to invoke data from database

Posted: Mon Sep 30, 2013 5:36 pm
by Scott Schechtel6280324

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


barcode scanner to invoke data from database

Posted: Mon Sep 30, 2013 6:11 pm
by Maryna Brodina

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


barcode scanner to invoke data from database

Posted: Mon Sep 30, 2013 6:15 pm
by Scott Schechtel6280324

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


barcode scanner to invoke data from database

Posted: Mon Sep 30, 2013 6:32 pm
by Maryna Brodina

Ok, thank you, I'll update here https://getsatisfaction.com/apperyio/...