on 10-16-2015 12:14 AM
I have a JSView (which is where the tile container is defined) and I have confirmed that my view works by changing "page" to "dashboard" on line 15 which results in a fully working tile container. Put that tile container in the sap.m.page and all I see is a header bar with a title. Even if change line 15 to "dashboard" again and move the "page" definition to my JSView its the same result.
In any instance mentioned here, there are no errors in the JavaScript console.
sap.ui.localResources("Views");
var oApp = new sap.m.App("myApp", {});
var dashboard = sap.ui.view({
id:"dashboard",
viewName:"Views.dashboard",
type:sap.ui.core.mvc.ViewType.JS
});
var page = new sap.m.Page("page1", {
title: "Work Item Stats Dashboard",
content: dashboard
});
oApp.addPage(page);
oApp.placeAt("content");
Can anyone help me please? Thanks in advance.
Hi James,
Hope this helps - JS Bin - Collaborative JavaScript Debugging
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi James,
add this.setHeight("100%"); in your dashboard view
this.setHeight("100%");
sap.ui.localResources("view");
var dashboard = sap.ui.view({
id:"dashboard",
viewName:"SAP_M_TileNav.view.V2",
type:sap.ui.core.mvc.ViewType.JS
});
var page = new sap.m.Page("page1", {
title: "Work Item Stats Dashboard",
content: [dashboard]
});
return page;
Thanks,
Karthik A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Add brackets to the content property of the page: content : [dashboard]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi James
you have to add this to property to the page.
enableScrolling: false
Thanks
-D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.