My site has a feature that users can pick dates from our upcoming schedule. I would like the list that they pick from to include only the dates they have not picked.
How do I actively filter the list to dates they have not picked?
I’ve tried to query the schedule linked by their selections and then filter the dates they have not picked but right and left join does not work??
You then need to write a custom query OR if you want to use the query builder you will need two queries.
A query, which filters the users table by the user ID (output option not needed here)
Another query, after this which filters the events table using NOT IN and the event IDs returned by the users query. So in your second query, you add your events table and then in the filters - select event id NOT IN: {{query1.join(",", "eventid").split(",")}} where eventid is the event ID returned by the first query (just change it with your column name).
From the results I selected one team (which i will later filter with getID) and the races scheduled this year. I did output them just to make sure they show
And are there actually any future events, which correspond to the query1 results? Is your first query called query1?
On your screenshot I don’t see the bottom of query builder dialog where the generated query can be seen.
Please add a set value step after the first query, enable output and use the expression which you used in the NOT IN filter - can you tell me if the setvalue step returns any values?