Frequently Asked Question
Symptom
- Need4Viz charts are correctly exported in HTML format in Microsoft Sharepoint library (WARNING: in online Sharepoint, the extension of N4V HTML file exported must be .aspx)
- The exported file connot be embedded in an Iframe in a Sharepoint page
Reason and Prerequisites
Environment:
- SAP BusinessObjects Business Intelligence Platform all versions
- Need4Viz : all versions
Steps To Reproduce:
- In a Webi report, configure a new Need4Viz chart
- When validated, configure the chart to export it in a Sharepoint librabry as HTML (previous MSSP configuration has already been done and works well). WARNING: in online Sharepoint, the extension of N4V HTML file exported must be .aspx
- The chart is correctly exported
- Save and close the Webi report
- Create a new page in the Sharepoint site and include an IFrame
- Source the iframe with the previously N4V html file exported
- An error is displayed (file cannot be found)
Cause:
- Custom scripts need to be activated on the site to enable the display of N4V file in an Iframe.
Solution
Open the admin console of your Sharepoint (https://your_sharepoint-admin.sharepoint.com) logged as site administrator.
Select the "Active sites"
Select the site where are exported the N4V elements and click on "Update" the Custom Scripts :
Select "Allow" :
Now you need to re-export the N4V components (previously exported HTML file will not be viewable).
New exported file are now correctly displayed in embedded Iframe (through "incorporation" object) :
Additional information: https://learn.microsoft.com/en-us/sharepoint/allow-or-prevent-custom-script