HTML Rendering

Started by Gary C., October 13, 2021, 11:27:45 AM

Previous topic - Next topic

Gary C.

We have developed a Customer Case management system. The business now wish for us to add the ability to send email messages and capture any replies directly from this system. The system should display the emails in conversation thread fashion.

We use GDC and I'm interested to know if anyone else has tackled anything similar and if so, what approach did you use for displaying the HTML of the email bodies?

Many thanks

Reuben B.

Gary,

LABEL, TEXTEDIT with textFormat="html" are intended to display a subset of html, see the important notes here http://4js.com/online_documentation/fjs-fgl-manual-html/#fgl-topics/r_fgl_presentation_styles_label_style_attributes.html  so I suspect WEBCOMPONENT is going to be what you need to display any HTML of the email bodies.

I'm guessing you'd have

HBOX
SCROLLGRID or TABLE
{
email fields, date, from, to etc
}
END
GRID
{
web component field to display body of currently selected row on left hand side via BEFORE ROW
}
END
END
END

Reuben
Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero

Mike P.

Thanks for this solution! I also have the same case.

Gary C.

Hi Reuben
Thanks, that is the approach we have taken. Indeed, our proof of concept has ended up being a mini "Outlook" client with the ability to send, reply and forward emails with attachments whilst preserving inline content.

Mike P, I am happy to share our approach if that would help.

Thanks

Gary