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

  1. Update the 'code' field in the GeoJSON map file (e.g., located in Tomcat/webapps/N4VCustomElements/res/js/highcharts/maps_custom/[map_name].js).
  2. 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.
  3. 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.
  4. Restart N4V services (e.g., run 'pm2 start all' in an administrator PowerShell window).