Displaying contents of one group in another

What am I doing wrong?

Here’s what I’m trying to accomplish:

  1. User clicks on message thread in the left group, the details of the message thread is displayed in the right group
  2. List of messages that make up thread then appears in group XXXXX
  3. User clicks on “reply” icon and then right group expands to allow them to respond to latest message in thread
  4. The thread subject line and list of users included in the message threads

(upload://eJ4zsNxA5tp3gGQiGQ4CWOluhkB.png)

I think you should be using a repeating group to show your data on the right, so that way when you select the thread on the left, you can display the data of parent group to the repeating group on the right (which would be the selected cell on the left) your repeating group would be set with the same info you have in your group currently. The issue may come with how you have you DB set up and if the replies are added to a list within the thread data and not set as there own data. Ie thread has data type-replies-> list of replies. Your repeating group will list all of them in one cell. Now if you had thread as data type and it had data type - list of replies which referenced another data type of replies

Thanks for your response! Here is how I’ve set up my data. I am still wrapping my head around this piece, so perhaps I got this wrong.

The order of operations is that the user gets to the page, composes a new message, and then when they hit “send”, that message starts a new thread on the lefthand side.

Then when that thread is selected, the replies show up in the right side group, basically how bubble has this setup right now.

Got it. I am going to give it a shot in the evening and I’ll let you know how it turns out. Thanks so much for taking the time to respond.

I’ll build up what you have shown in screenshots and see what I can get done

1 Like

I have built this out and have it working to what i think your trying to get to, ill see if i can add you as a viewer to the app and you can take a look.

Here are the steps I did for setup.

Starting with DB.


Moving to RG and Group Creation
Create your Thread RG and either constrain your search or filter based off of “Send To contains Current user”


Once the Thread subject is clicked it populates the right side Group by sending data to the group from current cell (left RG)

The RG in right group is then set with a constraint for the Main Thread Id(incase someone use the same subject the Thread Id is how the search gets the right replies)

How the Text info in right group looks
image

Now for the WorkFlows
Button Compose just toggles the Popup “new thread”
in the popup you have send to-which I used the bubble multidropdown element and set its type to users and source was a search for users minus item Current user (that way I wont show up in the list).
Now when the Send button hit pressed


Step 1 We create a new message thread

Step 2 We make a change to a message thread (result of step 1) and add the Thread Id to match the Unique id

then reset the inputs and toggle the popup.

For the Reply button… We toggle the replay popup

when the Send button for Reply is pressed we are going to
Step 1 Create a new message - Important— make sure to set the main thread id of the reply to the parent groups thread Id -either by how I have it shown or by Thread id

Reset your inputs and toggle the popup.

anything thing else you want to show just depends on the data associated with the info

Thanks! I am going to try this over the next few hrs and tell you how it turns out. I am slower since this is new to me :smiley:

1 Like

Still processing this info, but things are coming together.

  1. Is the purpose of “toggling” to be able to use the same message pop-up for both net new messages and replies as well?
  2. The “send to” including the current user is b/c those are presumably the “incoming” messages, so this ensures messages that could be read are pertinent to the current user? Just trying to grasp the logic.

Thanks!

You can toggle a pop-up for new and a separate pop-up for reply if you want, or you can can do it with one pop up and create a group for new and group for reply, and those would be toggled with the popup when appropriate button is hit.

Send to includes current user so you can see the messages that you sent in the message feed.

1 Like

Thanks so much! This helped me figure things out!

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.