on 07-30-2014 6:57 AM
Hi All,
I have creating a SAPUI5 Mobile Application. I have a Login View and a Details View
I am using a SplitApp control and gets data from a ODATA in the Details view. In Login view, i am having a different URL and validate the username and password and sent to detailspage. I am passing data and fetching in detailsview using Event, but it is not getting updated in the page UI as the view create content method is already called in the beginning.
Can anyone help in getting the data from view1 controller to view2 page UI.
Thanks,
Divya
Hi Divya,
You need to set the context of Master page to the details page, so that the data from view1 controller will be passed to view2.
Refer sample code below.
In my master page i am having an select even.
In master controller, i used the below code
onSelect: function (oEvt) {
var context = oEvt.getSource().getBindingContext();
this.nav.to("Details", context);
},
So when the select an list item in view one, the details will be displayed in view2.
Regards,
Madhumahesh.
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.