on ‎2017 Aug 20 4:34 PM
Request clarification before answering.
Hi Sharath,
Thanks for reply.
I am not getting the selected row.
My question is- Inside smart table I am using ui.table so how I will get the selected row.
And also column can be in any order because setting functionality is there in smart table so user can hide or show the columns as needed.
Please could you tell me how to get the selected row data.
I written the below code to get the data:
---------------------------------------------------
var totalItem = oTableHUnit.getBinding("rows").getLength(); //oTablePartner.getRows()[0].getCells()[1].getText() /*for (var i = 0; i < 1; i++) { var currentRows = oTablePartner.getRows()[0]; shipfrom = { Kunnr : currentRows.getCells()[1].getText(), Company: currentRows.getCells()[2].getText(), Address1: currentRows.getCells()[3].getText(), City: currentRows.getCells()[4].getText(), State: currentRows.getCells()[5].getText(), Postalcode: currentRows.getCells()[6].getText(), Telephone : currentRows.getCells()[7].getText() }; }
-----------------------------------------------------
Thanks & Regards,
Dhiraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
First, get the internal table using <smarttable>.getTable().
It seems like sap.ui.table and for that, you can use - getSelectedIndex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 12 | |
| 9 | |
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.