The first disclaimer, just so you understand better. I am not building anything specific (any app). I have a task that I have to figure out. And it is mandatory to use the elements I am using and use advanced constraint. And I will be thankful for any advice.
Summarization of video:
I have a database called products.
I then have to filter this database in a Multiselect element and a Reusable element .
So that already selected items are not available for selection anymore.
I was able to figure out that I am supposed to store the value I have selected in the state. And filter that value through this path:
data source → search for X filtered → new constraint: advanced?
I really think doing it with reusable elements makes it impossible without plugins or javascript. If there weren’t reusable elements involved, state could handle it. Unfortunately I don’t have more time to look. I do recall that initially there was a project requirement that ended up needing clarification. Maybe it’s worth clarifying the reusable elements.
You can use URL parameters, or can use states on the reusable element itself (not any of it’s child elements)…if you want to use states on the child elements of the reusable then you need to setup custom workflows in the reusable to set those states and from the page trigger a custom event from a reusable workflow action.