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 permission to edit the git repository where reports are configured.
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
Users can write queries (like SQL queries) for fetching real-time data to display in a UI application.
Users can apply filters like from date, to date, financial year, etc based on the report configuration.
Users 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
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
Doc Links
Description | Link |
---|---|
report config folder |
Last updated