Page 1 of 6

post barcode scanning procedure

Posted: Mon Sep 30, 2013 8:27 pm
by Scott Schechtel6280324

Now that I have the barcode scanner working, I would like to know how to make this piece happen:

Once you get the value from the scan, you can save it in local storage and use it as input to any API to get more information about the scan. For example, if you scanned a product barcode number – you can invoke a service to get information about the product.


post barcode scanning procedure

Posted: Mon Sep 30, 2013 8:58 pm
by Maryna Brodina

Map response parameter text to localStorage variable. Use that localStorage variable for mapping to request parameters of another services. Note that you should call those services after barcode scanner service call is ended up.


post barcode scanning procedure

Posted: Mon Sep 30, 2013 9:16 pm
by Scott Schechtel6280324

So then I will have 'text' mapping to mobilelabel_2 AND Local storage variable 'sku'? See screenshot here If I map the sku to another service, is it then to query or read service in my database service? (see screenshot)


post barcode scanning procedure

Posted: Mon Sep 30, 2013 10:22 pm
by Illya Stepanov

Hi Scott. It looks correct -- you should map it to the 'read service'.


post barcode scanning procedure

Posted: Mon Sep 30, 2013 11:22 pm
by Scott Schechtel6280324

So should I create a new screen to display it?


post barcode scanning procedure

Posted: Mon Sep 30, 2013 11:34 pm
by Illya Stepanov

Yes.


post barcode scanning procedure

Posted: Mon Sep 30, 2013 11:43 pm
by Scott Schechtel6280324

Okay but when I have the new page created still nothing happens after scanning. Here is the screenshot mapping of the new page new page mapping


post barcode scanning procedure

Posted: Tue Oct 01, 2013 2:30 am
by Scott Schechtel6280324

Here are the latest screenshots for the results page. Still getting the three original text responses and not the new screen.


post barcode scanning procedure

Posted: Tue Oct 01, 2013 3:44 am
by Illya Stepanov

The Barcode Scanner will work only on device.

On page 'result' you should map from localStorage variable to request parameters, as Marina suggested you.


post barcode scanning procedure

Posted: Tue Oct 01, 2013 4:31 am
by Scott Schechtel6280324

Okay this screenshot shows the latest modification and I am still getting the same three responses.