Scott Schechtel
Posts: 0
Joined: Tue Jul 23, 2013 5:23 pm

barcode scanner to invoke data from database

Ah, now were getting somewhere. Where do I do that in the app builder?

barcode

OOps! I now get the product info page after tapping on the Scan UPC button but it bypasses the actual scanning feature in the phone. Basically a button that takes me to the page without scanning a barcode

Scott Schechtel
Posts: 0
Joined: Tue Jul 23, 2013 5:23 pm

barcode scanner to invoke data from database

nevermind...I got that piece working. yeehah. Now I need to get it to pull a barcode from the db!

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

barcode scanner to invoke data from database

Hi Scott,

Please save barcode in localStorage, and then add the service to read from database by the key: http://docs.appery.io/documentation/b...

Scott Schechtel
Posts: 0
Joined: Tue Jul 23, 2013 5:23 pm

barcode scanner to invoke data from database

please explain 'save barcode in localStorage.."

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

barcode scanner to invoke data from database

The value that you get from the barcode scanner -- save it in browser's local storage. When you invoke a service, you can read the value from local storage and use it as input to a service. This will also help: http://docs.appery.io/documentation/u...

Scott Schechtel
Posts: 0
Joined: Tue Jul 23, 2013 5:23 pm

barcode scanner to invoke data from database

The value I want to get from the barcode scanner would be the actual sku on the barcode (13 digit upc). I have this listed as the _id in the database but still not clear on saving in browsers local storage - please explain.

Scott Schechtel
Posts: 0
Joined: Tue Jul 23, 2013 5:23 pm

barcode scanner to invoke data from database

So the value I get from the barcode scanner will be the 13 digit barcode which will be _id in the database. Still not sure what to save into browsers local storage. Please explain again...thx

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

barcode scanner to invoke data from database

You would be saving the 13 digit value. Any value that you get from the bar code scanner you can save into local storage and then use it as input for another service or do anything else you need.

Scott Schechtel
Posts: 0
Joined: Tue Jul 23, 2013 5:23 pm

barcode scanner to invoke data from database

What if there are a thousand products each with a barcode. Do I save each one in local db? Or is that the only way to make it happen?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

barcode scanner to invoke data from database

You would create one local storage variable, for example: productId. Every scan would set it (and overwrite the previous entry).

Return to “Issues”