1. Initializing the Embedded Experience
To initialize the Tight Embedded experience in your project, follow the instructions on Embedding Tight’s white-labelled UI.2. Rendering an interactive Cash Flow Statement report
To render a Trial Balance report for a specific user, you will need to provide theelementId parameter, which is the HTML id of the main <div> where you would like the report to render. When your user clicks on the report element, you simply need to invoke the following line of javascript:
3. Populate the desired parameters
You can also pass in some optional parameters to specify the grouping and date range of the report.| Parameter | Description | Format |
|---|---|---|
| grouping | The time period grouping of the report (e.g. for creating a month-over-month report). | Must be one of the following enumerations: NONE, MONTHLY, QUARTERLY, YEARLY |
| dateRange | The date range type of the report. | Must be one of the following enumerations: THIS_YEAR, LAST_YEAR, CUSTOM |
| beginDate | The beginning date of the report. Should be used withcurrentDate set to CUSTOM. | YYYY-MM-DD |
| endDate | The ending date of the report. Should be used withcurrentDate set to CUSTOM. | YYYY-MM-DD |
renderReport call as follows: