Hi. I’ve been building a kind of contact management app that allows Current Users to view information for their clients (et al), as Current Page Users. One of the things I’ve been putting together is chat functionality, which generally finds which chat to show in the chat window by doing a search on Chats and advanced filtering as ‘This Chat’s Participants includes Current User and This Chat’s Participants includes x’:first item. When I use this in a popup, actively sending a user (eg a current user’s client) to the popup as a User, it looks like this: ‘This Chat’s Participants includes Current User and This Chat’s Participants includes Parent Group’s User:first item’. Which works. But when I have the chat embedded in the page and use Current Page User instead of Parent Group’s User, it doesn’t find any Chats. I’ve checked this with the same pair of users in each method and it fails on the page-embedded version, for some reason.
Current Page User does work on the same page to show account names, profile photo and other details. But not in the filtering function. I have tried setting it up as simple constraints and that doesn’t work either.
Is there some weakness in using Current Page User in ‘search on’/filtering? Or am I doing something wrong?
There’s no reason why you can’t use Current Page User across any of the elements on the page. My guess is there is a minor bug in the way you’ve set things up that’s stopping it from working.
Perhaps post your workflows?
Josh @ Support Dept
Helping no-code founders get unstuck fast
save hours, & ship faster with an expert
on-demand
I post daily about no-code and Bubble on Twitter 
Thanks for the response Josh. Here’s a series of shots of my elements and workflows.
This is the version that is embedded on the page, and doesn’t work. First, grabbing a Chat data object via search-for, on the participants of the chat (note-I’ve tried both simple constraints and advanced filtering at this step and the result is the same):

Then filling the repeating group with chatMessages that are marked as belonging to the chosen Chat:

Then, when sending a new message to the Chat:
When I type in a test message, it shows up in the app data with the correct To and contentsText values, but with inChat empty – ie it hasn’t found an appropriate Chat. And the repeating group stays empty. As noted earlier, CurrentPageUser does fill out other things in the same group – profile pic, user’s first name.
This is a version that goes in a popup, which does work. There’s very little different except the abstraction from Current Page User to a Parent Group’s User, as far as I can tell.
First, showing the chat popup and populating it with the Current Page User
Then, searching for the right Chat to populate the elements of the popup with:

Searching for chatMessages to show in the repeating group:

And creating new chatMessages:
Obviously I have a version that works so I’m not too worried, but I think it would be useful to me to figure out why the embedded version isn’t picking up the Chat based on what seems to me like an equally valid method.
Hey, I’m so sorry I’ve been crazy busy this week. Are you still struggling with this?
Josh @ Support Dept
Helping no-code founders get unstuck fast
save hours, & ship faster with an expert
on-demand
I post daily about no-code and Bubble on Twitter 