Skip to Content

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

Only Page Title displayed when add content dynamically to the shell in FIORI

Hi All,

i am using sap.ui.unified API to Display Shell in My Application , below is the Preview of My Application.

When i click on list item Available on left side Panel i want to add content in Shell dynamically and display different view but i am getting only Page Title contents of page are not visible

Code is as Below which i used to:  add Content in Shell while clicking on list Item.

selectListBox:function(oEvent){

  var    stdlist = oEvent.getSource();

    var listId =  stdlist.getId();

  var view = sap.ui.view({

  id : "openJobView" + i,

  viewName:"zaktglerc001.OpenJob",

  type:sap.ui.core.mvc.ViewType.XML

   });

   

  var shell = this.getView().byId("refShell");

  shell.removeAllContent();

  shell.addContent(view);

  shell.rerender();

  i++;

  },

Variable i i have defined in do init method .

i have checked below thread also but there is no solution for my problem .

http://scn.sap.com/thread/3477058

Please Help.

Thanks.

Ashish

Former Member
replied

Hi Ashish,

Goto zaktglerc001.OpenJob this view. Append this.setHeight("100%") on top of create content method.


Thanks,

KA

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question