====== Troubleshooting filtering issues in N4V FOR WEBI when used outside SAP BusinessObjects Web Intelligence viewer ====== //Anonymised summary of support ticket #186225 (2025-02-06)// ===== Symptom ===== %%Filtering fails in the N4V FOR WEBI elements when embedded in a custom Web Intelligence viewer (e.g., CATCH Webi Viewer), while the same report works correctly in the native SAP BusinessObjects Web Intelligence viewer. Console errors related to cross-origin resource sharing (CORS) may be observed.%% ===== Environment ===== %%SAP BusinessObjects Web Intelligence (Webi) reports using N4V FOR WEBI extensions. The issue occurs when N4V elements are embedded in an external viewer (e.g., custom portal, iframe) hosted on a different domain/server than the SAP BusinessObjects CMS. Common configurations include Tomcat or IIS as web servers, with SAP BusinessObjects Web Intelligence version 4.x.%% ===== Resolution ===== - %%Verify and configure CORS policies on the web server hosting the external viewer (e.g., Tomcat, IIS) to allow cross-origin requests from the SAP BusinessObjects domain.%% - %%Ensure the SAP BusinessObjects RESTful API is accessible from the external viewer. Modify the N4V FOR WEBI JavaScript integration file (e.g., BO_Linked_43.js) to enable bidirectional communication between the iframe (N4V element) and the parent window (external viewer) using postMessage or custom event listeners.%% - %%Replace SAP JavaScript API calls with RESTful API calls directly in the external viewer to handle input controls and filtering interactions. This may require hardcoding functions in the viewer’s HTML/JS files for proof of concept.%% - Test the solution using a simulator portal that mimics the external viewer environment, ensuring N4V elements and input controls communicate correctly via RESTful API calls. ===== Other resolution ===== %%If CORS policies cannot be resolved, consider hosting the external viewer on the same domain as SAP BusinessObjects or using a proxy server to bypass cross-origin restrictions.%%