Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how to set view Id ???

Hello everyone,

I am working on a project in which I am using component.js and routing for navigating between views my project consist of no of views which I have defined in one view App.view.js below is the code of app.view.js

createContent: function (oController) {

  // to avoid scroll bars on desktop the root view must be set to block display


  // create app = new sap.m.App("App");


  var launchpad = sap.ui.xmlview("launchpad", "sap.ui.KOL.view.launchpad");

  launchpad.getController().nav = this.getController();;


  var allKOL = sap.ui.xmlview("allKOL", "sap.ui.KOL.view.allKOL");

  allKOL.getController().nav = this.getController();;

as you can see I have given ids to the view launchpad and all kol but when I am running the application the ids are getting initialized automatically as __xmlview00 and is not taking as what I have assigned in the app.view.js .

So can anyone please help me with assigning the ids to the view.

Thanks in advance

Anshul Dharmadhikari

Former Member
Not what you were looking for? View more on this topic or Ask a question