on 11-13-2020 6:44 PM
Hello experts,
Could you help me?
I need set a row in a table as "selected". But I can´t do it.
I know how to get row selected and remove the selections... but how I can mark?
var oTable = this.getView().byId("TableID");
var oContext = oTable.getSelectedContexts();
oTable.removeSelections(); oTable.setSelectContexts(1);
Thank you!
Hi Celio,
Can you try one of the following options:
1) setSelectedItem
oTable.setSelectedItem(oTable.getItems()[0])
-> This would select first row (0)
2) setSelectedItemById
oTable.setSelectedItemById("__item0-__xmlview0--testTable-0");
-> This would select row with mentioned ID
Kind regards,
Garcia
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.