cancel
Showing results for 
Search instead for 
Did you mean: 

barCodeScanner SAPUI5

0 Kudos

Hey,

i was looking around and it seems there are a lot of ways to implement the scanner and i'm not sure what's the right approach, i'm using the sap web IDE and i'm trying to build a simple mobile app to scan barcodes,

any one has a code example that uses a sap libary? if not, ANY working example will do.

thanks.

Accepted Solutions (1)

Accepted Solutions (1)

maheshpalavalli
Active Contributor
0 Kudos

Hi Lidor ziflinger,

You need to use a 3rd party js library to do the scanning part. There is one popular library which does that.

https://serratus.github.io/quaggaJS/

Luck for you there is also a blog which is based on the above js library.

https://blogs.sap.com/2017/10/19/barcode-scanning-with-device-camera-in-sapui5-applications-without-...

One more thing.. If you are planning to deploy the app as a hybrid application (Fiori Client) then you can use the below control to do that.

https://ui5.sap.com/#/api/sap.ndc.BarcodeScannerButton

(the above will only work in mobile)

BR,

Mahesh

0 Kudos

Thank you! i'll check it out.

Answers (0)