Standard Reporting: Mongo Script Configuration

Summary

Currently the only way to configure what is displayed in a report is to create or edit a script. Each script instance will represent a new dropdown on the umbraco configuration, as long as the name is prefixed as "REPORTING_" - Standard Reporting: Umbraco Configuration

You can get the latest version of the report from the Core Insureflow system.

This is what the versioning looks like on the script. Be sure that you are using the latest version.

Report properties

The reportProperties field is where you'll set the data output for the report. This is a string array, and can only be set to specific values outlined in the technical specification: Standard Reporting: Technical Specification

In this example, the report would export 3 columns: the Policyholder Name, the Product Name and the Risk Id.

Adding new report properties

You can add any new report properties to the switch statement within the reportProperties loop.

This is the block of code where the switch cases start.
Here is an example that is currently used in the script. It gets the broker name.

Don't forget to make sure that you update the following:

Updating your script

If you need to update the script to a newer version, make sure to check the following:

  • The version number "z" is 0. If not you will need to copy any custom code over to the new script.

  • The report properties are saved and copied over to the new script.

Last updated