How to open an HTML page created using table data in Creatio (Freedom UI)?

Hi Team,

I am working on Creatio (Freedom UI) and generating an HTML table dynamically using JavaScript.

After building the HTML string from the table data, I would like to open it in another tab or page.

What is the recommended approach to display the generated HTML table on the new page?

Any guidance or examples would be greatly appreciated.

Thanks!

Like 0

Like

1 comments

You can create a configuration service that returns the HTML as a viewable webpage. See https://customerfx.com/article/returning-an-html-page-from-a-creatio-configuration-service/

You'll need to either (1) save the generated HTML to a table that can be retrieved by the service, or have the service code generate the HTML to return.

Either way, you can pass parameters in the url for the service retrieved as parameters for the method in the service (so you have context of which record you're loading the HTML for).

For example: 

https://creatiourl/0/rest/UsrTestService/GetHtmlPage?recordId=SOMERECORDID

Then, in the method: 

public Stream GetHtmlPage(Guid recordId)
{
	//...
}

Ryan

Show all comments