meta data for this page
How to update a geographic zone code in N4V for Webi
Anonymised summary of support ticket #669695 (2023-10-03)
Symptom
Modifications to a geographic zone code in a map are not applied after updating the corresponding .js file.
Environment
N4V for Webi (Need4Viz extensions), SAP BusinessObjects Web Intelligence, Tomcat, Node.js, Highcharts maps.
Resolution
- Update the 'code' field in the GeoJSON map file (e.g., located in Tomcat/webapps/N4VCustomElements/res/js/highcharts/maps_custom/[map_name].js).
- Update the code in the list_maps_codes.js file (located in Need4Viz/nodejs/node_modules/custom_element/ce_libs/resources/) for the corresponding map (e.g., exports.[map_identifier]). This list validates zone values sent to the N4V engine.
- Update the version_files_id parameter in the config.js file (e.g., append '1' to the existing value, such as 202320 -> 2023201) to force browser cache refresh.
- Restart N4V services (e.g., run 'pm2 start all' in an administrator PowerShell window).