Skip to Content
author's profile photo Former Member
Former Member

Design in next page


Hi,

I am very new in this technology.

I have created a tile and when I click the tiles, it will move to the next page and in the next page I need to add smart filter with tree table.

How can I design in the page2 by adding all the required things?

I created an index.html page which is is below and I need to link with my view.xml from here. But I don't know how to link with view.xml and design on there.

<!DOCTYPE html>
<html>
<head>
<script src="https://openui5.hana.ondemand.com/resources/sap-ui-core.js" id="sap-ui-bootstrap" data-sap-ui-theme="sap_bluecrystal" data-sap-ui-libs="sap.m"></script>
<meta charset="utf-8">
</head>

<script type="text/javascript">
sap.ui.getCore().attachInit(function () {
var app = new sap.m.App("myApp", {
initialPage: "page1"
});

// create the first page
var page1 = new sap.m.Page("page1", {

showNavButton: false,
content: new sap.m.StandardTile({
title: "Display Inventory and Activity Differences",
icon : "sap-icon://product",
press: function () {
app.to("page2");
}
})
});

// create the second page with a back button
var page2 = new sap.m.Page("page2", {
title: "Hello Page 2",
showNavButton: true,
navButtonPress: function () {
app.back();
}
});
app.addPage(page1).addPage(page2);
app.placeAt("content");
});
</script>
</head>
<body class="sapUiBody" id="content">
</body>
</html>

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jan 14, 2016 at 08:59 AM

    1. Add Content aggregation for page2. ( like you did for page1)

    2. Point to xml view from content aggregation

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Abdul Waheed

      Hi I tried the same way by adding my view path over there.

      But I am getting error.

      Could you please check once more?

      var page2 = new sap.m.Page("page2", {

      title: "Hello Page 2",

      showNavButton: true,

      navButtonPress: function () {

      app.back();

      },

      content: new sap.ui.core.mvc.XMLView({

      id : "testview",

      viewName : "SAP_New.sap_new.Create", // I tried by adding only sap_new.Create but still same issue.

      })

      });

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.