How to properly export a Web Intelligence report with N4V components to HTML

Anonymised summary of support ticket #246493 (2023-12-15)

Symptom

When exporting a Web Intelligence report containing N4V components to HTML, the graphs are not displayed correctly. Instead of interactive components, static images or raw code are shown in the HTML output.

Environment

SAP BusinessObjects Web Intelligence with N4V FOR WEBI extensions. Export to HTML format. N4V components include charts, variables, and other visual elements.

Resolution

  1. Export the Web Intelligence report to HTML once to generate the main HTML file (e.g., report.html).
  2. For each N4V component, configure the HTML export path and filename in the component settings (as per N4V documentation).
  3. Export each N4V component individually to HTML using the extended export options (e.g., graph1.html, graph2.html).
  4. In the main report.html file, locate the <img> tags corresponding to N4V components (e.g., TMP_XX_YY).
  5. Replace each <img> tag with an <iframe> tag pointing to the HTML export of the corresponding N4V component (e.g., <iframe src="graph1.html"></iframe>).
  6. If navigation or interactivity is used (e.g., input controls, linked elements), add JavaScript functions to dynamically update the iframe sources based on user interactions. Example functions may include click_link_multi or click_link_N4V_Grade.
  7. Ensure the N4V components are the only elements in the report. Avoid mixing standard Web Intelligence tables or cells with N4V components to simplify the export process.

Other resolution

For a working example, refer to the demo site provided by N4V FOR WEBI. The main HTML file acts as a 'shell' for the dashboard layout, while the iframes load the dynamic content from individual N4V HTML exports. Avoid re-exporting the report after modifying the HTML file to prevent overwriting changes.