on 01-05-2015 12:52 PM
Hi Experts,
I have one doubt about how to extract the data to next page.for ex, i have two views, first view i have table like below screen shot
when i select the row it will open next page with extract the first column cell data like below screen shot
how can i do that..i have done while select the row it will move to next page through below lines
Nameselection : function(oEvent){
var oTable = sap.ui.getCore().byId("Table");
oTable.attachSelectionChange(),
app.to("idSecondview");
},
but i cant get extract the Name column field data.Please anyone explain that.
Thanks,
Palsaran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Have you read the developer guide? The application best practices section includes overview of routing and passing the context between views.
https://sapui5.hana.ondemand.com/sdk/#docs/guide/688f36bd758e4ce2b4e682eef4dc794e.html
Regards,
Jason
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Palsaran,
In your example, you need to pass the context of the selected item of the list to the other view, you don't need to pass the data as it's stored in the model.
If you look at the master and detail view examples these include the necessary code
Master view
Have a look at the onSelect and showDetail methods at the bottom of page, which gets the selected item and passes as parameter.
https://sapui5.hana.ondemand.com/sdk/#docs/guide/a425399ec2fe47a8b9ba9653ab4f6623.html
Detail View
Have a look at the onInit method which retrieves the product id and binds the new view to the context.
https://sapui5.hana.ondemand.com/sdk/#docs/guide/08887a263aa94c14838593aecddf1529.html
Many thanks,
Jason
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
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.