How to recreate Webi element linking in external HTML exports using N4V components

Anonymised summary of support ticket #540551 (2022-01-21)

Symptom

The native Webi element linking functionality cannot be exported directly to HTML. Users need to manually recreate inter-element navigation in external web portals.

Environment

SAP BusinessObjects Web Intelligence with N4V FOR WEBI extensions (Need4Viz). Export to HTML format. N4V components (menus, graphs) with element linking configured.

Resolution

  1. Export the Webi report to HTML (via Fiori portal or scheduled archive). The archive contains a main 'report.html' file and an '/images' folder with dynamic components.
  2. Export N4V menu components to HTML in the '/images' folder (e.g., 'menu.html') by specifying a JavaScript function name (e.g., 'parent.click_link_MENU') in the export options.
  3. Export N4V graph components for each menu item to separate HTML files in '/images' (e.g., 'graph_XXX.html') using Webi sections and scheduled publication.
  4. Modify the main 'report.html' file to include the JavaScript function that handles element linking. The function should dynamically update an iframe's source based on the selected menu item, normalizing the item name to match the exported graph filenames.
  5. Example JavaScript function for menu-to-graph linking:
  6. ```javascript
  7. function click_link_MENU(obj) {
  8. var state = obj[0];
  9. state = state.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
  10. state = state.replace(/[^a-z0-9_\-\.]/gi, '_').toLowerCase();
  11. document.getElementById('TMP*X*YY').src = 'images/graph_' + state + '.html';
  12. }
  13. ```

Other resolution

Refer to the Need4Viz knowledge base for automated export processes using Webi sections and scheduled publications.