Quantcast
Channel: SCN : Unanswered Discussions - SAP Fiori
Viewing all articles
Browse latest Browse all 1879

While adding pages, not able to get controller.js recognize view.xml

$
0
0

Hi Team,

 

I am using the routing concept and my MainView.xml has :

 

<core:View

   controllerName="sap.ui.PageRoutingDemo.wt.view.MainView"

   xmlns:core="sap.ui.core"

   xmlns="sap.m"

   xmlns:mvc="sap.ui.core.mvc" >

<App xmlns="sap.m"   id="rootControl"/>

</core:View>

 

Now when i try to invoke the above view in the MainController.js as:

 

sap.ui.define([

   "sap/ui/core/mvc/Controller",

  "sap/m/Page"

], function (Controller) {

   "use strict";

   return Controller.extend("sap.ui.PageRoutingDemo.wt.view.MainView", {

onInit : function () {

}

   });

});

 

I get error not able to initialize it.

 

Can some one help me?


Viewing all articles
Browse latest Browse all 1879

Trending Articles



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