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
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.
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.
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)
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
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
Still processing this info, but things are coming together.
Is the purpose of “toggling” to be able to use the same message pop-up for both net new messages and replies as well?
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.
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.