Using an accordion/dropdown on a menu to display the last entry of a chat message
Application Type
Traditional Web

Hello! So I want to use an accordion or a dropdown on a website's menu so it works as a means to receive a notification from a chat message and seeing the last message a user sent me. Right now the only thing I manage to do is clicking the accordion and seeing all chat history with that person, yet I only want to see the last message that person sent me. Can someone help me?

Solution

When you are getting the data, can you put sorted by date, and put on the max records, "one" value?

If you can share the oml exported, i can have a look :)

Regards,

Márcio C.

That solved it!! Thank you! I thought I needed some complicated query to do that

Nice!! Well done :)

Regards,

Márcio C.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.