BetterReportGenerator
Overview
BetterReportGenerator assembles full HTML reports from BRGComponent features that you create with other BRG transformers (e.g. BRGText, BRGTable, BRGImage). It is designed as a drop‑in replacement for FME’s built‑in HTMLReportGenerator, adding modern themes, explicit ordering, and optional grouping support.
Typical Use Cases
Produce polished HTML dashboards directly in a workspace without external scripting.
Generate one report per feature class, year, or any attribute using Group By.
Input Ports
Accepts BRGComponent features.
Parameters
Parameter
Purpose
Page Name
Sets the <title> element and appears in the browser tab and the title of the page.
Theme
Options: Light, Dark, Cream, Deep Purple.
Output Ports
Emits one feature per generated report.
Attribute
Type
Description
html_content
String
Fully‑formed HTML document including consolidated <head> and <body>. Ready for an HTML Writer or to be written to disk.
Usage Notes
Ordering: Use the BRGOrder attribute in each component transformer to position elements precisely.
Responsive Layout: Provide responsive HTML within each component; the transformer does not alter supplied markup.
Images & Assets: Reference external images with absolute URLs or embed them as base64 to keep the report self‑contained.
Security: Scripts run client‑side when the report is opened. Validate any dynamic content to avoid XSS risks.
Example Workflow
BRGText – Create a styled heading (BRGOrder = 10).
BRGTable – Insert a summary table (BRGOrder = 20).
BRGChart – Add a chart component (BRGOrder = 30).
BetterReportGenerator – Page Name = "Annual Sales 2025", Theme = "Dark".
HTMLWriter – Write html_content to sales_report_2025.html.
BRG Transformers
BRGText – Insert headings and paragraphs.
BRGTable – Render attribute data as HTML tables.
BRGImage – Insert image.
BRGButton – Insert button.
BRGMap – Insert Map.
BRGKeyValuesIndicator – Insert cards with important values in display.
BRGChartLine – Insert a line chart.
BRGChartBar – Insert a line chart.
BRGChartRadar – Insert a Radar chart.
BRGGroup – Group BRGComoponent together.
BRGGroup – Display BRGComponents in tabs.
Would you like to know more? Click here to find out more details!