I’m having trouble configuring the messages page on my platform and I could really use some help.
The page was imported from another template. I’ve successfully managed to:
Adapt the page to display the correct user
Send messages correctly
See the messages stored properly in App Data
However, I’m facing a major issue:
As soon as I refresh the page, or leave the page and come back, all the messages disappear from the interface.
Important detail:
The messages are still visible in the App Data, so they are being saved correctly. The issue seems to be with displaying them after reload.
For context, the page is structured into two main groups (similar to WhatsApp):
Left group: A repeating group (RG) showing all existing conversations of the user
Right group: The current conversation with the selected user
I’m attaching screenshots of:
The repeating group that should display the messages
The “Send message” workflow
If anyone has an idea of what might be causing the messages to disappear after refresh, I’d really appreciate your help.
Let me know if you need more details about my database structure, workflows, or conditions.
Your messages disappear because the conversation context is not persisted after refresh. You must either pass the conversation ID in the URL or rebuild the page’s data source on load
Once the page knows which conversation to display, the messages will show correctly even after a refresh.
If you share how your page type is configured, I can give you the exact expression to use.
Yes, the right side group is of type Conv_message.
Could you explain how I should implement what you mentioned about persisting the conversation after refresh? I’m not completely sure what the best way is to pass the conversation context.
I’m attaching screenshots of:
my page configuration
the right group and its workflow(which contains the repeating group with the messages)
If you need any additional screenshots or information, just let me know.