Configuring New Reports

Overview

Through report service, useful data get shown for a specific module based on some given criteria like date, locality, financial year, etc.

For example, PT dump report of property tax service you have to select from date to date, financial year etc and based on the criteria we can see all the data full filling the criteria. In the response we see all the details of a property which is paid between the given from date and to date, if we selected financial year then we can see the property which is paid for that specific financial year.

Pre-requisites

Before you proceed with the configuration, make sure the following pre-requisites are met -

  • User with permissions to edit the git repository where Reports are configured and knowledge on YAML.

  • Prior Knowledge of YAML.

  • Prior Knowledge of SQL queries.

  • Prior Knowledge of the relation between the tables for which module you are going to write a report.

Key Functionalities

  • User can write queries (like SQL queries) for fetching the real-time data to display in a UI application.

  • User can apply filters like from date, to date, financial year, etc based on the report configuration.

  • User can download the result in PDF and XLS format.

  • User can select or deselect the columns user wants to see.

  • User can choose the number of records he/she wants to see on a page.

Deployment Details

  1. Once the changes have been done in the report configuration file we have to restart the report service so the report service will read the new configuration.

Configuration Details

  • To add a new report first add the file path in the reportFileLocationsv1[https://raw.githubusercontent.com/egovernments/configs/DEV/reports/reportFileLocationsv1.txt] (In this file, the path of the report configuration files get stored).

    • <Module Name>=file:///work-dir/configs/reports/config/<report file name>.yml

    • ex: pgr=file:///work-dir/configs/reports/config/pgr-reports.yml

  • Write the report configuration. Once it is done commit those changes.

  • Add the role and actions for the new report.

  • Restart the MDMS and report service.

Reference Docs

Title

Link

report config folder

Last updated

​All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.