Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3363

how to access dynamically changing view id in fiori app controller?

$
0
0

Hi,

I developed a custom fiori app using webide.I am using xml views.I need to access master view in detail controller.

I used sap.ui.getCore().byId("xmlview1--list");  and it was working fine.But i put the app in fiori launchpad problem started.What my problem is first time app works.When i navigate back to launchpad and again clicking on app tile the id ''xmlview1'' changes to xmlview2 and so on.

I tried to store the viewname in mastercontroller like

viewid = this.getView().getId();(variable was initialised in app controller)


and used

sap.ui.getCore().byId('"'viewid+'--list"'') ;but this returns undefined.Plz help.

 

Regards


Viewing all articles
Browse latest Browse all 3363

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>