RG viewing different datatype

Hello everyone,

I want to make an email app like Gmail. Inbox entries are stored in their own table and Reply and Forward entries are also stored in their own tables. How can I display all Inbox, Reply and Forward entries related to the same user in a RepeatingGroup in the Inbox view?

May you help me please?

Thanks

You can use a robust combination of Repeating groups and groups, each with different areas focused,
Groups in Rg and out, Rg’s in group and out. overall, it will be amazing to see, how its built :grinning:

Can you show me with an example please?

Hi there,

Why not have 1 datatype (“email”) with a field for “Reply”, “Forward”, etc and a field of email relating it to the main email of the thread.

1 Like

Cuz have unlimited reply and forward with details.

Could you share some more info on your use-case? Ultimately a reply, forward, sent, and received email are inherently the same thing, only varied based on sender, recipient, and the type of email itself. I’d caution against creating different datatypes for each individual email type as you’ll end up with redundant fields, or even complicatong the page you’ll build to display each email.

1 Like

Yes true
For example for each reply or forward have to save SEEN, BOOKMARK or EMAIL REFERENCE NUMBER

In that case I’d still suggest the single “email” datatype, with fields for ‘Seen’ (of type list of Users), Reference Number (this could just point back to the original email, if that’s what you’re looking to do), etc. Depending on how you approach the ‘Bookmark’, this may be better as a list of ‘Emails’ on the User datatype (or a related satellite datatype, which when scaling / increasing the number of emails bookmarked, would be better for performance).

2 Likes

Thanks for your suggestion

So in RG how to call INBOX, REPLY and FORWARD emails in repeating row? For example I have 3 field as CONTENT for INBOX. REPLY and FORWARD. I want to show each email as row style in repeating group. How to do that?

I’d suggest you have one data type, Message.

When a Message is forwarded, you’re actually just Copying a message and sending that message to another user.

For a reply, on the Message that is the reply, have a field ‘Replying To’. That will be the message that is being replied to.

1 Like

I got, but how to show INBOX, REPLY and FORWARD info as a row cuz I wanna show all in a single RG row.

By example, I’m calling Message table data in a RG. I have 3 Text box to show Message Content is same in all these 3 data(Inbox, Reply, Forward). How to display and make separate each one to show in Row style in RG? This is my question

A reply isn’t a Reply. A reply is an Message that is attached to another Message.

Similarly, a forward isn’t a Forward. It’s a copy of a Message that is sent to different people.

You should only have one data type.

Thanks a lot
I’ll try and update here

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