on 02-02-2017 2:38 PM
Hello,
I am working on a project with SAPUI5 and I am stucked with this problem. I have a table on a view and in this table we have several rows. There is a filter function for the table and if the user type in a filter which gives back only one row, then I would like to select that one row automatically. For this I need the numbers of the visible rows I guess and if it is equal 1 then select it or else don't do anything.
Can anybody helps me to solve this problem?
I know that sap.ui.table.Table has rowcounter, and I need a similar solution but with sap.m.Table.
Thank you,
Istvan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thank you this works! I don't know how I didn't find this property.
Thank you very much!
Hi Herman,
If you can check the count of rows appearing after filter operation.Like a count of array which generated after your filtering operation .you can make that particular row "selected" property to true on the condition the count is only one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
72 | |
8 | |
8 | |
7 | |
6 | |
6 | |
5 | |
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.