====== How to implement cross-iframe interactions in HTML exports from N4V for Webi ====== //Anonymised summary of support ticket #883254 (2024-02-06)// ===== Symptom ===== JavaScript errors when clicking on KPI band elements to update content in multiple iframes. Errors occur when HTML files are opened directly from the local filesystem. After deploying to a Tomcat webapp, errors persist due to missing JavaScript functions required for N4V HTML export interactions. ===== Environment ===== %%N4V for Webi HTML export, SAP BusinessObjects Web Intelligence, Tomcat web server, HTML/JavaScript integration%% ===== Resolution ===== - %%Deploy HTML export files to a Tomcat webapp (e.g., create a folder under /tomcat/webapps/ and place all HTML files inside). Access the main page via an HTTP(S) URL (e.g., http(s)://server/test/acc_kpi_statut_mnt.html).%% - %%In the main HTML file (e.g., index.html), declare and implement the required JavaScript functions for handling element selection/deselection. These functions must match the names defined in the N4V HTML export options and receive the clicked value as an argument.%% - %%Ensure iframes are configured with attributes like seamless, sandbox='allow-same-origin allow-scripts allow-forms' to enable cross-origin interactions.%% ===== Other resolution ===== Missing JavaScript functions in the main HTML file cause interaction failures. Refer to N4V HTML export documentation for function names and signatures.