on 2020 Feb 23 11:32 PM
Hello,
I have a requirement where a zapp1 is called from fiori launchpad and it should work as a dasboard or entry to other smaller apps (these smaller apps are not registered in launchpads).
Now, on clicking a specific tile in the dashbrd zapp1 , i wish to load zapp2 in an embedded view inside a container of zapp1.
I am using runasowner component to call the zapp2.
the concern is that I wish to use the zapp2 ' s manifest and routing feature inside zapp2 navigation - but i am unable to use them. it always refers to zapp1's manifest. I understand that zapp1 is the hosting app and hence we should have all the routes mentioend in zapp1.
But as a dynamic frmwrk, i wish to pass on full control to child apps (like zapp2, zapp_n) but everything should have ZApp1 as the entry point. how can i implement such a frmwrk?
Inside hosting app:
addDynamicChildView: function(){
// check for existing page and destroy
if(this.getView().byId("idDynNavPageContainer").getPage(this.getView().createId("CHILD1"))){
this.getView().byId("idDynNavPageContainer").getPage(this.getView().createId("CHILD1")).destroy();
}
var sId = this.getView().createId("CHILD1");
sViewNameInCtx = this.getOwnerComponent().runAsOwner(function() {
return new sap.ui.core.mvc.XMLView(sId, {
viewName: "child.app.views.CHILD1Main"
});
});
this.getView().byId("idDynNavPageContainer").addPage(sViewNameInCtx);
},
Thanks,
Ags
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
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.