on 09-02-2015 3:04 PM
Hello All,
I was wondering how to show a view in the master area of the splitapp component AND a view in the detail area through routing.
I can show a view in the master or detail but not in both directly.
Regards,
Bert
Thanks all for your answers.
The problem was I got an error while loading the detail view in the detailPages area. The error was: "Control with ID mySplitApp could not be found".
I have set my targetControl : "mySplitApp" in the config of the routing.
When I delete this and set my targetControl in the first route everything works fine. Do not exactly why I can't set my targetControl in the config but it works now.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If i understood your requirement correctly, you have to load both master and detail page at initial load. If that is the case you can do this.
{
pattern: "",
name: "masterfirst",
view: "Masterview", // this is should be the name of the master view
targetAggregation: "masterPages",
subroutes: [
{
pattern: "",
name: "detailfirst",
view: "DetailView", // this should be the detail view
targetAggregation: "detailPages",
}
]
}
Sapui5 loads the view which has an empty pattern, so you can give "" pattern for both master and detail.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the onInit method of the master view's controller navigate to the detail view.
onInit : function() {
this.getOwnerComponent().getRouter().navTo("detail",{
param : paramValue;
});
},
kind regards,
RW
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.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.