I’m working on a messaging system for my app. I know there have been several posts about chat approaches in the past and I have a lot of the requirements down already. However, I’m getting stuck when trying to apply the thread from one repeating group to the new message being created in another repeating group. See details below. I’m sure there might be an easier way to get the thread assigned to the new message. Any help would be much appreciated!
- When you click on a message on the left side, it will show the message history for the given thread on the right side. I used a Display List workflow to make that happen.
- Where I’m stuck is that I want to add a new message on the right, and when doing so, make sure the message is associated with the thread that was previously clicked on the left. My database structure is similar to a “Not Real Twitter” structure, where I have threads that list the users and link to a list of messages. I started with the AirDev “Stretch to Fit” messenger template on the right side, and have my own repeating group to list the threads on the left.
- When I click the current cell on the left, a workflow sets the data source for the repeating group on the right side.
- However, I can’t seem to find anything that will let me pull the thread ID from the left side repeating group when I’m pressing the button to send a new message. Because of this, a message gets created but is not associated with the thread, so it doesn’t show up in the chat history.
Some images attached.