meta data for this page
How to handle iFrame integration and custom buttons for N4V FOR WEBI components in SAP BusinessObjects Web Intelligence
Anonymised summary of support ticket #259080 (2026-06-22)
Symptom
When embedding N4V FOR WEBI components in an iFrame, the height of the HTML content is not exposed, causing scrollbars to appear. Additionally, there is a need to implement custom static buttons (e.g., Department/EPCI switch) to control the displayed content in the iFrame.
Environment
N4V FOR WEBI extensions for SAP BusinessObjects Web Intelligence, integrated via iFrame in a web portal or intranet. Components are responsive but may require CSS adjustments for scrollbar handling.
Resolution
- For iFrame height adjustment: Use the 'Custom CSS' field in N4V component settings to hide scrollbars if they appear (e.g., `overflow: hidden;`). Avoid exposing the HTML height via JavaScript unless absolutely necessary, as N4V components are designed to be responsive.
- For custom static buttons: Implement the buttons directly in the hosting HTML page (index.html) using HTML/CSS/JS. The JavaScript should dynamically switch the source or visibility of the iFrames based on user interaction. This approach is simpler and more maintainable than generating separate HTML exports for each state.
Other resolution
Best practice: For static controls like department/EPCI switches, externalize the logic to the hosting page rather than relying on N4V components. This reduces complexity and ensures consistency across integrations.