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

barcode scanner to invoke data from database

Katya said that you should save the value from the scan and then pass it to another service to get product information or anything else you need to do. That's exactly what I have been saying above.

The barcode scanner only knows how to scan. It doesn't do anything else. It's up to you to add logic to do something with the value that you get. It's like the camera in your phone -- it only takes pictures. You can then email the picture or upload the picture to Facebook, etc.

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

barcode scanner to invoke data from database

Can I do the 'save the value' action in the edit mapping then? If so, nothing happened.

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

barcode scanner to invoke data from database

You simply need to map 'text' to either a component on a page or to local storage.

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

barcode scanner to invoke data from database

currently text is mapped to 'sku' in Local storage value and nothing is happening.

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

barcode scanner to invoke data from database

currently I have text mapping to sku in the Local storage variables and nothing is happening. Also I am trying to find where or how to add the db key??

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

barcode scanner to invoke data from database

To test, map the text also to a component on a page and see what you get there.

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

barcode scanner to invoke data from database

Okay, see attached for the screenshot of what I mapped. http://worldofwinesclub.com/wp-conten... The phone just said 'found item' (it was actually from something NOT in the actual database) but the page did not come up...my phone is now stuck in scanner mode....

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

barcode scanner to invoke data from database

so I just manually added the product sku(actually a book) into the database but still nothing...wondering if and or how I call the db with the app. This is the db id: 5245ba80e4b04f1851bcb92e

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

barcode scanner to invoke data from database

Before you search the database - you are able to get the correct result from the barcode scanner?

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

barcode scanner to invoke data from database

Nope. I scan the barcode of the product and the result screen flashes very quickly but it just says 'false' then goes back to scan mode.

Return to “Issues”