Check if table is filtered by a user
I would like to do some calculation in
getTableContentFooter()
if filters are applied. Is there a way to check if a table is filtered by a user?12 Replies
the $records should be pre-filtered
maybe you can try
$this->tableFilters['filter_name']
to check the data of a filterI just tried something like this, im still into it but I think that could work:
Thank you for the hint!
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
isFiltered() should be on the list page, not the resource
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Hi! What are you trying to do?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Would you like to get the filters in the create page?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
you could do in the create action in the list page:
Regards the parameters, you could use $this->getTableFilters() or $this->getTableFiltersForm() to get the table filters and send it to the create page, I think
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Can you clarify please. What you are explaining here seems different from what you originally asked about. You had asked about doing a calculation in the footer. But now you’re mentioning creating a new record. Was your first problem solved?