Skip to Content
avatar image
Former Member

UI5 application having capability of scanning bar-code

Hi Sir/Madam,

I am completely Know about understanding of Web app and Hybrid application, still i want to ask one more question, Is it possible to run UI5 application having capability of scanning bar-code, through standard fiori client.

My requirement is :

1. I do not want to do any changes in Fiori client,

2 want to develop UI5 application with capability of bar-code scan,

3. UI5 application should be accessible through Fiori client.

Regards,

Rajendra Sharma

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Sep 07, 2017 at 09:03 AM

    Hi,

    there is a barcode scanner button in library sap.ndc, which you can use:

    https://sapui5.hana.ondemand.com/#/api/sap.ndc.BarcodeScannerButton

    Code can be like this:

    var oScanButton = new sap.ndc.BarcodeScannerButton({

    provideFallback: true,

    visible: true,

    scanSuccess: function(oEvent) {

    console.log("scanSuccess");

    console.log(oEvent);

    oController.onScanSuccess(oEvent); }

    });

    var oHeaderToolBar = new sap.m.Toolbar({ content: [oSearchField,oScanButton] })

    Best Regards

    Andy

    Add comment
    10|10000 characters needed characters exceeded