on 05-05-2015 3:10 PM
Hi All,
I'm using SAP Fiori client 1.2.4 and I have an Custom UI5 App which is integrated with the Fiori launch pad. I have Barcode Scanner implemented on the code. Everything works fine in the Fiori client without the launch pad. After the launch pad integration, Barcode Scanner plugin and Double Tab functions stopped working on the Fiori Client.
This has been fixed by implementing Component.js file.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Santiagu,
I have the exact same problem. What do you mean you implemented the Component.js file. I am using the Kapsel template to create a custom SAPUI5 app in SAP WEB IDE with bar code scanning.After deploying it works perfectly if launched directly in the Fiori client but not using the launchpad. Please advise.
thanks
Amina
Hi Amina,
Do you have the Component.js file in your project? If no then create this file manually and write the code as below.
jQuery.sap.declare("sap.ui.myFiori.Component");
sap.ui.core.UIComponent.extend("sap.ui.myFiori.Component", {
createContent : function() {
// create root view
var oView = sap.ui.view({
id : "app",
viewName : "sap.ui.myFiori.view.Main",
type : "XML",
viewData : { component : this }
});
// set i18n model
var i18nModel = new sap.ui.model.resource.ResourceModel({
bundleUrl : "i18n/messageBundle.properties"
});
oView.setModel(i18nModel, "i18n");
// done
return oView;
}
});
Let me know if you have any questions on this.
Regards,
Santiago
Hi,
are you sure this change fixed your fault? IT seems like nothing in this component.js is assoziated to cordova?
I'm encountering the same issue - without launchpad in SAP Fiori iOS Client everything works quite smooth.
Launched from the Launchpad cordova is not instantiated.
> I tried the workaround with using windows.parent.cordova.plugins.barcodeScanner.scan(... to access cordova from a launchpad triggered app...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.