Page 6 of 8
barcode scanner to invoke data from database
Posted: Sun Sep 29, 2013 10:54 pm
by maxkatz
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.
barcode scanner to invoke data from database
Posted: Sun Sep 29, 2013 11:10 pm
by Scott Schechtel6280324
Can I do the 'save the value' action in the edit mapping then? If so, nothing happened.
barcode scanner to invoke data from database
Posted: Sun Sep 29, 2013 11:29 pm
by maxkatz
You simply need to map 'text' to either a component on a page or to local storage.
barcode scanner to invoke data from database
Posted: Sun Sep 29, 2013 11:38 pm
by Scott Schechtel6280324
currently text is mapped to 'sku' in Local storage value and nothing is happening.
barcode scanner to invoke data from database
Posted: Sun Sep 29, 2013 11:40 pm
by Scott Schechtel6280324
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??
barcode scanner to invoke data from database
Posted: Mon Sep 30, 2013 12:15 am
by maxkatz
To test, map the text also to a component on a page and see what you get there.
barcode scanner to invoke data from database
Posted: Mon Sep 30, 2013 1:06 am
by Scott Schechtel6280324
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....
barcode scanner to invoke data from database
Posted: Mon Sep 30, 2013 2:04 am
by Scott Schechtel6280324
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
barcode scanner to invoke data from database
Posted: Mon Sep 30, 2013 4:35 am
by maxkatz
Before you search the database - you are able to get the correct result from the barcode scanner?
barcode scanner to invoke data from database
Posted: Mon Sep 30, 2013 4:59 am
by Scott Schechtel6280324
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.