Table Refresh not showing new items with Search Term Filter

So i am having an issue with my table updating when it refreshes if i have a searchTerm filtering the data. My workflow right now includes an optin to duplicate a line item so when i run that it adds data to the DB and then pulls it again. But then i will need to type in my search feild again to make it actually show. i will usually delete a letter and then add it back in. Am i doing something weird? I want to be able to have it refresh and show the data and have the search term update without having to retype it to make it update visiually.

Sometimes it will do this then other times it will follow the behavior of this post and one item will get changed out to a different one and to show all i then edited my search input feild and then it will show all results.Table Refresh not showing new items with Search Term Filter


Screenshot 2023-12-29 at 9.39.25 AM

+1 on this issue.
Seems like the behaviour is really inconsistent.
I have the same problem, using some filters in the query, so every time a filter is changed, a new query is made and the table is refreshed. Unfortunately the Search Term Filter just doesn't seem to apply until you change a letter as you mentioned.
In my mind it should be reapplying every time the table contents are refreshed.

Hey there,

Regarding the search term not persisting on a table refresh, consider storing the search term in a temporary state variable. When adding new data and refreshing the table, reapply the stored search term. This approach preserves the search term during updates. Here is some more information about using variables in Retool.

Regarding the inconsistent table refresh behavior, can you provide more details on the inconsistent behavior? When does this behavior happen? Is there a specific trigger or pattern?

I am having the same issue (cloud ver), and I found out that this is actually a very sinister Retool bug :slight_smile:

In edit mode, I apply a search filter, table results are not updated.
Then - Magic - I slightly resize the table widget, and voila - it updates.
Now, I clear the search filter - Nothing happens. Resize - again redraws it.

To be clear - I have tried going via a variable as you proposed - it changes nothing.
Also verified that the search field is cleared or changed to a valid value, but nothing will resolve unless refreshed (in App mode), or the resizing (in Edit mode).

This is only happening to me when the table size gets big (did not bisect, but on 100s of records no issue, on 15K+ records - this happens). Also, it happens even if I create a new table, attach it to the same query, same problem, so it's not a "table rot".

Thanks for this update, @Eshed_Gal-Or! Are you also seeing this issue in end user mode? What is the data source for the table (S3, Workflow, etc)?

Yes, this is mainly problematic in User mode (in Edit mode you can just force-refresh the table by slightly resizing it).
Datasource for me was a js manipulation of a gql json data.

It looks like we shipped a fix for the bug you reported, @Eshed_Gal-Or

Let us know if you're still seeing anything unexpected

1 Like