cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Table Sort Complete Event

Former Member
0 Likes
550

I have a process that interrogates the visible entries in a table and carries out certain alerts and functions.  The SORT event of the table triggers when the SORT is clicked and not after the Sort is complete.  I need to a way to determine when the sort is complete so I can interrogate the visible entries in the table.  I can't seem to find an event SORT COMPLETE on the table.

Does anyone have any ideas?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

I'm using the (undocumented) event "_rowsUpdated" on the table.

-- Micha

Former Member
0 Likes

How does one find these undocumented events?  I looked through the table js file and didn't see that.

Former Member
0 Likes

It is there, better visible in the debug-variant (using ?sap-ui-debug=true in the URL):

$ fgrep _rowsUpdated *

Table-dbg.js:                this.fireEvent("_rowsUpdated");

NB this is sap.ui.table.Table, not sap.m.Table.

-- Micha

Former Member
0 Likes

Perfect but I don't like the comment SAP has about this event ...

//Helper event for testing

Hopefully they won't get rid of it as there should be a rowsUpdated event.


Answers (2)

Answers (2)

Former Member
0 Likes

If you grep for fireEvent in the sources, there is a lot of them. Perhaps SAP is going to document all of them? Then we might find out if there is one that could serve the purpose, too 🙂

-- Micha

former_member189945
Contributor
0 Likes

Hi Thomas,

Does it work if you add following on sort event handler


SetTimeout(function(){interrogateTable()},0);

Of course, it would work only in case sort worked synchronously.

Another option would be to extend Table method responsible for sorting and dispatchinh sort complete yourself.

Regards,

Kimmo