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

Navigate to next page

$
0
0

Hi,

I am getting error while adding the path of xmlview.

Can anyone please help me?

I am a beginner in this new technology.

This is my index.html.

My project name is SAP_New and view name is sap_new and Create.view.xml is my view in xml.

 

 

  <script type="text/javascript">

  sap.ui.getCore().attachInit(function () {

  // create a mobile app and display page1 initially

  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 () {

  // navigate to page2

  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();

  },

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

                                                                                                 id : "testview",

                                                                                                  viewName : "com.Create.View", //path to your view

                                                                                            })

                                                                         */

  });

 

 

  // add both pages to the app

  app.addPage(page1).addPage(page2);

  // place the app into the HTML document

  app.placeAt("content");

  });

  </script>


Viewing all articles
Browse latest Browse all 3523

Trending Articles



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