I have a user_table reusable where I have a RG with the users of the app. I want to filter this reusable according to the values in the filter reusable filter_user.
What I do is
insert filter_user in a hidden group in user_table
set custom states for filter_user
in user_table, when DO A SEARCH FOR, filter for filter_user custom states
In the actual page I put both reusables
I expect that when I change the parameters of filter_user, its parameters are changed and thus the RG of user_table to be filtered, but this is not the case.
What am I doing wrong? I read this piece but I don’t think it answers my question
We have two reusables: filter and list. Both have the same states (user_name, in this case).
In the filter_user I have a workflow: “when the input’s value is changed” → set state of reusable.
in the user_table I filter the RG for the user_table’s own user_name state
on the page then I put a condition “do when filter’s state is not empty” → set state of user_Table, but this only affects the first instance when I change the value of the input.
Yes, but, from what I understand, the video does not explain how we can transfer custom-state data from reusable to reusable. I.e. it does not explain how to “set state of RE2 when state of RE1 changes”. It just explains how to “send state of RE1 to the main page” which I know how to do, but I do not know the next step: use that state to set the state of RE2. having one reusable inside another does not work either (see edited editor)
or it might be that I am just too confused to understand it
In your case the relevant ones are the first two. In either one of these you will need to set the state or set a url parameter. And set the search constraint to the chosen one. No need for the event trigger.
I recommend for you to watch the video and focus on how search is constrained and how states or url parameters are passed. If the video does not cover it fully then research how custom states and url parameters work (focusing on how they are passed and “seen”). Even though the video is about how filtering work using Canvas assets, it does a great job at explaining most of the above concepts.