Skip to Content
Aug 15, 2019 at 02:11 PM

Use sap.ndc.BarcodeScanner in browser without Fiori client

278 Views Last edit Aug 15, 2019 at 02:15 PM 2 rev

Dear fellow Sappies,

I am unsing the sap.ndc.BarcodeScanner in my application.

In my view I have:

<Button icon="sap-icon://bar-code" press="scanBarcode"/>
<Label id="label" text="Null"/>

scanBarcode looks like this:

scanBarcode: function(oEvent) {
        var that = this;
        function (mResult) {
             if (!mResult.cancelled) {
                 var code = mResult.text;
        function (Error) {
            if (Error !== undefined) {

My problem is that I do not want to use the Fiori client to access the application.

Therefore, it should be possible to use the barcode scanner in a browser using the device's camera.

Is it possible to do that?

Thank you for your help!