meta data for this page
How to enable N4V components export to FTP with proper static file references
Anonymised summary of support ticket #788457 (2023-09-28)
Symptom
N4V components exported to FTP as HTML do not display correctly when accessed from outside the organization. Graphs or visualizations are missing due to broken static file references (JS, CSS) or incorrect file naming.
Environment
SAP BusinessObjects Web Intelligence with N4V FOR WEBI extension. N4V components deployed on a Tomcat server hosting the Webi portal. FTP export used to transfer HTML files externally.
Resolution
- Copy the N4V webapp (N4VCustomElements) from the Tomcat webapps directory to the external web server where FTP exports are stored. Ensure the webapp is accessible from outside the organization by testing the URL in a browser.
- Modify the N4V configuration file (Need4Viz\nodejs\node_modules\custom_element\ce_libs\config.js) to update static file references for FTP exports:
- - Set 'use_external_webapp_FTP = true' to use the external webapp URL.
- - Set 'URL_PORT_WebApp_ext_FTP' to the root URL of the external N4VCustomElements webapp.
- - Optionally, disable name normalization for FTP exports by setting 'normalize_name_FTP = false' and 'lowercase_name_FTP = false' to preserve original file names.
- Restart N4V services using 'pm2 start all' in PowerShell to apply changes.
- Re-export the N4V component via FTP from Webi and verify that static files (JS, CSS) are correctly referenced in the generated HTML file.
Other resolution
Static file references in N4V HTML exports rely on the Tomcat-hosted N4VCustomElements webapp. External access requires deploying this webapp on a reachable server and updating the N4V configuration accordingly. Ensure network and firewall rules allow access to the external webapp URL.