Skip to Content
0

UI5 application having capability of scanning bar-code

Sep 07, 2017 at 08:41 AM

48

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Andy Glänzel Sep 07, 2017 at 09:03 AM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded

This Function fullfills your listed requirements, it works in Fiori-Client, no changes needed ;-)

0