1->many relationship between ‘Users’ and ‘Intentions’
many->many relationship between ‘Groups’ and ‘Users’
many->many relationship between ‘Groups’ and ‘Intentions’
I’m trying to create a list based on ‘Intentions’ that shows All ‘Intentions’ for the ‘Logged in User’ where the ‘Intention’ is related to at least one of the groups the ‘User’ is related to and where the Logged in User is NOT the owner/user associated with the ‘Intention’.
I can’t seem to find a way to accomplish this. Any thoughts on a way to tackle?
dlo@test is a member of group 7, group 87, and group 17.
Intentions 1577, test 65, Alysa, and 1578 are all active intentions related to these groups and, of these 4 intentions, the only one where dlo@test.com IS NOT the User (Owner/creator) is 1578.
DB Structure
Table ‘Users’, Table ‘Intentions’, and Table ‘Prayer Groups’
With
1->many relationship between ‘Users’ and ‘Intentions’
many->many relationship between ‘Groups’ and ‘Users’
many->many relationship between ‘Groups’ and ‘Intentions’
I’m trying to create a list of ‘Intentions’ that shows
All ‘Intentions’ for the ‘Logged in User’
where the ‘Intention’ is related to at least one of the groups the ‘User’ is related to
Where the ‘Intention’ is Active
AND where the Logged in User is NOT the owner/user associated with the ‘Intention’.
I’ve tried creating a list using Intentions and tried applying filter logic to accomplish this BUT can’t seem to find a way to get there. The closes I’ve been able to come is to use filters
All Intentions
AND Current Intentions Prayer Groups contains …
AND Current Intentions User’s Email IS NOT the Logged in Users Email
AND Current Intention is Active
#2 is where I get stuck. What I want to put there is Logged In Users Prayer Groups Concat BUT that doesn’t seem to be an option.
I found a way to partially solve it. IF i add a select field above the list I can pass that value into the list gen to gather Intentions for a single group.
However, I tried getting the multi-select field from the marketplace and adding that in place of the single select. When I do so, the values selected in the multi-select field are not passed to the list filter. Anyone face this or know of a way to solve?