Main Content

Specify Document Content for Embedded Web View Reports

The fillContent method fills the document pane of the report that it generates with content specified by DOM and Report API objects. See Report Generator Creation. The report generator inherits an add method from its slreportgen.webview.EmbeddedWebViewDocument base class. Use the add method in the fillContent method of your report generator. Each call to the add method adds its content after the previously added content. The fillContent method can create a document of any length and content by repeated calls to the add method.

For example, this fillContent method begins by creating a report title.

function fillContent(rpt)
    import mlreportgen.dom.*
    add(rpt, TitlePage("Title", "System Design Variable Report"));

For other tasks to create your Embedded Web View generator, see:

To generate the Embedded Web View report, see Generate Embedded Web View Reports.