on 02-15-2019 10:16 AM
Hi,
I cound solve it. The template I was trying to modify used text-fields which are not editable.
When I use input-controls, it works fine
Regards
Mario
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.
Hi,
it's because getSelectedIndex return an Int not the selected row:
You have to get the row based on the index:
oTable.getRows()[index];
But, be careful with the sap.ui.table.Table. The getRows function return only the visible rows and if you have more rows in your model, this solution does not work.
I think a better solution is to bind the editable property with a value in the model and then use the getContextByIndex funtion
(https://sapui5.hana.ondemand.com/1.52.26/#/api/sap.ui.table.Table/methods/getContextByIndex) to retrieve the context in order to change, in the model, the value binded with the editable property .
Regards,
Fabrice
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.