Frequently Asked Question
How to configure the Export Server in Need4Viz solution
Last Updated a year ago
Symptom
- Configure Need4Viz services to enable HTML Export
- Configure a Need4Viz component to be exported in destination folder
Environment
- Windows Server
- Need4Viz : all versions
Resolution
To configure Need4Viz services to enable HTML Export :
- Open the file ~Need4Viz_folder_installation/nodejs/node_modules/custom_element/ce_libs/config.js (make a backup copy before any update of this file)
- Set the export_HTML parameter to true (to enable the export HTML menu in the charts settings)
- Restart the Need4Viz services
To configure a Need4Viz component to be exported as HTML in folder destination (HTML Export is configured for Need4Viz services):
- In a Webi report, configure a new Need4Viz chart
- Validate the chart
- Open the Format Custom Element window of the chart and go to the Export HTML section
- Tick the Automatically export the chart (to enable the export for this chart)
- Fill the Path destination : path of the destination folder. If the folder is set localy (For example C:/temp) it refers to the folder on the Need4Viz server (not on the user's computer). If the folder does not exist, it is created. The folder can be a shared or NAS folder (for example \\my_server\my_folder)
- Fill the Name of the generated target HTML file : name of the exported html file in the destination folder (for example : myfile.html)
- Validate the settings
- Check in the destination folder, the file is created
Possible issue
In case of file not created in the destination folder, check :
- The destination folder does not need an authentification (this is not supported)
- If the destination folder does not exist, try to export in an existing folder.
To get more informations about the issue :
- Enable Debug mode in Need4Viz config.js file (set LogDebug parameter to true)
- Restart Need4Viz services
- Test again an HTML Export of your chart
- Open the~Need4Viz_folder_installation/log
- check the n4v_xxx_out.log and n4v_xxx_err.log file (where xxx is the service that should render the charts)