Using filtered result in aggregate function
I'm using
ListRecords
function getTableContentFooter
to show the average time between two datetime fields. Like so:
If the user applies some filters to the overview, they are not reflected in my average. How can I apply the user applied filters to my average query?
Note: I don't want to apply pagination (average should be of complete filtered result, not only current page).2 Replies
I haven't tested it but there's a protected method
getFilteredTableQuery()
, you may be able to use that instead of getTableQuery()
Ah, perfect. Thanks!