Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

...

  1. 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:

    1. Method: ProcessBeforeGenerateReport- This method gives flexibility to process and format the data that is retrieved from a given data source as per needs.

    2. Method: generateReport - Write the logic for this method to create a report file that gets stored on the file system.

      1. Parameter: reportRequest - This object contains configuration information for reports, such as columns and other attributes.

      2. 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);

...

  1. 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:

  1. Log-on to the eMACH-Sigma Application.

  2. Select the configured report in the Application, e.g. Transaction Report.

...