Hi All,
I am facing issue, while running my custom app from fiori Launchpad.
Here is, my scenario
From Fiori launchpad, First time while clicking my custom tile, custom app is getting loaded successfully. Then am pressing Home Button and again am clicking the same tile and it is loading my Master Page of app. From Master page, if am selecting item it is throwing error as below,
adding element with duplicate id 'CRT_DOM--idCIN_DATE'
am calling the Detail page form Master page like below.
this.nav.to("CRT_DOM");
here CRT_DOM is View name.
FYI.,code written in App.controller.js
sap.ui.controller("sap.ui.demo.myFiori.view.App", {
to : function (pageId) {
var app = this.getView().app;
// load page on demand
var master = ("Master" === pageId);
if (app.getPage(pageId, master) === null) {
var page = sap.ui.view({
id : pageId,
viewName : "sap.ui.demo.myFiori.view." + pageId,
type : "XML"
});
page.getController().nav = this;
app.addPage(page, master);
jQuery.sap.log.info("app controller > loaded page: " + pageId);
}
// show the page
app.to(pageId);
},
back : function (pageId) {
this.getView().app.backToPage(pageId);
}
});
Any suggestion pls ....
Regards,
-Mahendran