Frequently Asked Question

How to configure N4V for viewing N4V elements in Webi from outside & inside entreprise network
Dernière mise à jour il y a 3 ans

Symptom

  • N4V for Webi is successfully installed and all components can be used/viewed in Webi inside your entreprise network.
  • Your Webi platform is also available from outside your entreprise network (public internet or extranet) but N4V components cannot be viewed correctly from this external access.

Environment

  • Windows / Linux Server
  • Need4Viz : all versions

Resolution

The N4V components are generated in HTML format from N4V services and sent to Webi to be included in IFrames.

The generated HTML contains some links to N4V static libraries (.js files) called directly from the Web browser of the user.

It's mandatory that the static N4V webapp is deployed on a web application server (for instance Tomcat) that can be reached from outside and inside through the same URL link.

For instance, if the BOE instance is visible from outside entreprise network with the URL https://my_outside_URL/BOE/BI and from inside entreprise network with the URL http://my_inside_URL/BOE/BI you need to check that :

  • N4VCustomElements webapp can be reached from outside with the URL https://my_outside_URL/N4VCustomElements. To check that, try to display the https://my_outside_URL/N4VCustomElements/res/images/green_tick.png image in a browser session from outside your entreprise network : it should display correctly a green tick image.
  • N4VCustomElements webapp can be reached from inside with the same URL as for external access : https://my_outside_URL/N4VCustomElements. To check that, try to display the https://my_outside_URL/N4VCustomElements/res/images/green_tick.png image in a browser session from inside your entreprise network : it should display correctly a green tick image.

If previous tests are OK then 

  • Open the file ~Need4Viz\nodejs\node_modules\custom_element\ce_libs\config.js
  • Change the URLNodeJSServer to value 'my_outside_URL'
  • Change the PORTTomcat to value 443 (for example)
  • Open a powershell window and run "pm2 start all" to restart all N4V services with the new confguration
  • View your Webi report with N4V components from inside and outside your entreprise network

Veuillez patienter!

S'il vous plaît patienter... il faudra une seconde !