Hi Experts,
I created Full Screen application in SAP Web IDE. By default, this is the application which has table with some data (from my own service) on the first screen (Master.view.xml). What's important this is navigation table, so if you click on the item, will be shown next screen (Full Screen) with details of this item (Details.view.xml).
Now, I want to add the button on first screen (Master.view.xml), which will go to the next screen - in my example new view called DayView.view.xml.
When I'm trying modify my routing in Component.js like below:
routing : { // The default values for routes config : { "viewType" : "XML", "viewPath" : "Rbs1.view", "targetControl" : "fioriContent", // This is the control in which new views are placed "targetAggregation" : "pages", // This is the aggregation in which the new views will be placed "clearTarget" : false }, routes : [ { pattern : "", name : "main", view : "Master" }, { name : "details", view : "Details", pattern : "{entity}" }, { name : "DayView", view : "DayView", pattern : "InDayView" } ] } },
After pressing the "Go to DayView" navigate me to a page that looks like Details.view.xml
In turn when I'm trying modify my routing in Component.js like below:
routing : { // The default values for routes config : { "viewType" : "XML", "viewPath" : "Rbs1.view", "targetControl" : "fioriContent", // This is the control in which new views are placed "targetAggregation" : "pages", // This is the aggregation in which the new views will be placed "clearTarget" : false }, routes : [ { pattern : "", name : "main", view : "Master" , subroutes : [ { pattern: "DayView", view: "DayView", name: "DayView" } ] }, { name : "details", view : "Details", pattern : "{entity}" } ] } },
the screen does not change and in console I have error like this:
Control with ID fioriContent could not be found - EventProvider sap.ui.core.routing.Target
I read many blogs and articles like:
1) Use case: Navigating to the custom view from Use Cases for Extending the UI of SAP Fiori Apps
2) https://sapui5.netweaver.ondemand.com/sdk/#docs/guide/688f36bd758e4ce2b4e682eef4dc794e.html
but they relate to navigate by selecting LineItem from Navigation Table.
I attached my project files.
https://dl.dropboxusercontent.com/u/54036986/%21NYPE/Rbs1.zip
Can You help me with my problem?