Quantcast
Channel: SCN: Message List - SAP Fiori
Viewing all articles
Browse latest Browse all 2526

Re: Fiori Launchpad inside the Fiori Client - use cordova/Kapsel plugins

$
0
0

Hi Ralf,

After writing to you i found the solution.

Added windows.parent before cordova to reach the launchpad level.

 

try {

  window.parent.cordova.plugins.barcodeScanner.scan(

  function(result){

 

  var itm = new sap.m.ObjectListItem({

  title : result.text,

  number : result.format,

  });

 

  view.barcodeList.addItem(itm);

 

  },

  function(error){

  alert(error);

  }

  );

 

} catch (err) {

  alert('error: ' + err.message);

}


Viewing all articles
Browse latest Browse all 2526

Trending Articles