on 02-17-2016 1:32 PM
Hi Experts,
I got the requirement, to display the purchase order headers list in table , select the particular cell i need to navigate the another table and display the item data in next view.For these using the cell Click method and i am getting the data in the below mentioned format how can i get the data using javascript methods.
Hi,
your cellClick function should look like this:
var oTable = new sap.ui.table.Table({
cellClick: function(oEvent) {
oController.getTaskDetail(oEvent)
}
});
In your controller:
getTaskDetail: function(oEvent) {
var context = oEvent.getParameters().rowBindingContext;
yourModel.setData(context.getObject());
yourNewPage.setModel(yourModel);
}
context.getObject() contains the data of the cell you clicked on
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could use
cellClick: function(evt){
evt.getParameters().rowBindingContext.getPath();
}
to get the row binding and then bind this to your other view.
Regards,
Jamie
SAP - Technology RIG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.