Hi all
As the title suggests, I'm having troubles getting table-filtering based on urlparams to work.
Here's what I have so far:
- I have a text-input
tableSearchInput
, that's configured to keep in sync withurlparams.hash.searchTerm
. This works - I have a table, that has the search term set to
{{tableSearchInput.value}}
. This filters the table if I directly change the value oftableSearchInput
Now here's the issue:
If I navigate to the app with a #searchTerm=something
, I can see that tableSearchInput
has the correct value, but the table isn't filtered. Only if I trigger a change event on the tableSearchInput
(e.g. press and delete space), does the filtering actually take place.
The data for the table is obtained via an async API call, so maybe that's the issue? Then again, it seems like this is one of the most basic things you'd want to implement with retool, so I'm kinda stumped this doesn't work out of the box.
Thus my question:
Is this the expected behaviour, or is this a bug, or am I doing something wrong here?
Or how would I achieve filtering a table with a fuzzy search term passed via urlparams?
(PS: If the table has demo data, it works btw. So maybe this really is a race condition with async API calls?)
Looking forward to your reply!