@genesislcap/foundation-reporting
TypeScript icon, indicating that this package has built-in type declarations

14.173.2 • Public • Published

Micro Frontend Reporting (Deprecated)

Warning: This package is deprecated and no longer maintained. We recommend using @genesislcap/pbc-reporting instead.

The Reporting micro front-end enables your users to create report specifications, run them, or save them for later use.

From the GUI, users can:

  • select columns from existing data sources
  • save the report with a name and retrieve it for future use
  • apply ad hoc filtering to a report
  • export the report results to .csv format

The micro front-end has a GUI that walks the user through generating a report.

Example showing creating a new report

Once the report is created it can be viewed in the GUI, and also exported to a .csv file.

Example showing the list of all generated reports

All the generated reports are stored for retrieval later. The report configuration is saved and the report updated when the user runs the report again. Example showing the list of all generated reports

Set-up

Server configuration

To enable the Report microfront-end, you need to configure the Reporting module on the server.

Front-end configuration

To enable this micro front-end in your application, follow the steps below.

  1. Add @genesislcap/foundation-reporting as a dependency in your package.json file. Whenever you change the dependencies of your project, run the $ npm run bootstrap command again. There is more information on this in the package.json basics page.
{
  ...
  "dependencies": {
    "@genesislcap/foundation-reporting": "latest"
  },
  ...
}
  1. Import the module and configure the route in your routes config.ts file.

Synchronous example

// Import
import {Reporting} from '@genesislcap/foundation-reporting';

// Routes configure
public configure() {
  ...
  this.routes.map(
    ...
    {path: 'reporting', element: Reporting, title: 'Reporting', name: 'reporting'},
    ...
  );
}

Asynchronous example

// Import
import {Reporting} from '@genesislcap/foundation-reporting';

// Routes async configure
public async configure() {
  ...
  this.routes.map(
    ...
    {path: 'reporting', element: (await import('@genesislcap/foundation-reporting')).Reporting, title: 'Reporting', name: 'reporting'},
    ...
  );
}

:::info If there are no reports in the database, you will see an error on the web page saying there are no reports to load - this is expected behaviour. :::

Installation

To enable this module in your application, follow the steps below.

  1. Add @genesislcap/foundation-reporting as a dependency in your package.json file. Whenever you change the dependencies of your project, ensure you run the $ npm run bootstrap command again. You can find more information in the package.json basics page.
{
  ...
  "dependencies": {
    ...
    "@genesislcap/foundation-reporting": "latest"
    ...
  },
  ...
}

License

Note: this project provides front-end dependencies and uses licensed components listed in the next section; thus, licenses for those components are required during development. Contact Genesis Global for more details.

Licensed components

Genesis low-code platform

Readme

Keywords

none

Package Sidebar

Install

npm i @genesislcap/foundation-reporting

Weekly Downloads

449

Version

14.173.2

License

SEE LICENSE IN license.txt

Unpacked Size

725 kB

Total Files

223

Last publish

Collaborators

  • genesisnpm