Barcode Scanner

This forum contains topics that were moved from Get Satisfaction
Cheryl
Posts: 0
Joined: Sun May 17, 2015 4:04 pm

Barcode Scanner

Post by Cheryl »

For barcode scanning, is it possible to return an image (which is a weblink) from the database for any matched product/ID codes. Is it possible to then use this image in the context of a different program written in appery?

Serhii Kulibaba
Posts: 147
Joined: Tue Aug 27, 2013 1:47 pm

Barcode Scanner

Post by Serhii Kulibaba »

Hello Cheryl,

Sure, you can generate QR via JS. Use special library, e.g.: http://davidshimjs.github.io/qrcodejs/

Cheryl
Posts: 0
Joined: Sun May 17, 2015 4:04 pm

Barcode Scanner

Post by Cheryl »

Sorry, I'm not sure I follow. I have a database of Product Codes and Product Descriptions. I'm looking to cross-reference all the scanned Product Codes with the Product Codes in the database and give the user a description of the item (captured under Product Descriptions in my database). Is that possible, and if so how would I go about it?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Barcode Scanner

Post by Yurii Orishchuk »

Hi Cheryl,

Sorry for misunderstand.

So here is a common plan to implement it:

1 run barcode service on the page.

2 on "success" event - store received bar code to some storage.

3 invoke "list" service for collection where you store additional information about bar code.(image url, name, description etc..)

4 in "list" service "where" request parameter you need to use following JS code:

pre

//You need to use your storage instead of "barCodeStorage".
var barCode = Apperyio.storage.barCodeStorage.get();

//Wehre "barCodeId" is column name where you store bar codes.
var whereObject = {"barCodeId": barCode};

return JSON.stringify(whereObject);

/pre

Then you can use response in accordance to your needs. For example you can use "Success" mapping to display items(img, name, description etc..).

Regards.

Post Reply