Apart from the default report formats offered by eMACH-Sigma, users can also generate reports in the file format necessary to meet their specific business needs. By creating a custom report engine adaptor, users can accomplish this functionality.
...
Create a Java class file implementing the interface IReportEngineAdaptor in the Java class file.
This interface is a part of the reporting library of sigma eMACH-Sigma applications containing various methods enabling the provision to write their own logic to create the report file with the data.
Note: The interface IReportEngineAdaptor is available in the CTReportingFW.jar file and the same can be accessed from the CT-eMACH-Sigma team.
The following methods are available in the IReportEngineAdaptor interface:Method: ProcessBeforeGenerateReport- This method gives flexibility to process and format the data that is retrieved from a given data source as per needs.
Method: generateReport - Write the logic for this method to create a report file that gets stored on the file system.
Parameter: reportRequest - This object contains configuration information for reports, such as columns and other attributes.
Parameter: dataItems - This object list contains the data that is retrieved from the data builder or data source.
Note: To read the data from the list, use the code snippet mentioned below.Code Block List data = dataItems.get() of (List);
...
Create a report with a required name, id and necessary datasource to fetch data for the report. To create reports refer Configuring a Simple Report.
...
Note: To display the customized report format (DBF) in the report format list of Studio and eMACH-Sigma, provide the following entries in the report_format _master table in the target schema.
...
The configured report with the custom format can be generated in the eMACH-Sigma Application by the following steps:
Log-on to the eMACH-Sigma Application.
Select the configured report in the Application, e.g. Transaction Report.
...