ebs.callReport
Generates a report that was set up on the FintechOS platform for a specific entity by the report ID.
HINT When calling a report, we recommend using ebs.callReportByName which is enabled for localization. The current method is provided mostly for backward compatibility.
Syntax
Copy
ebs.callReport(reportId: string, entityId: string, callback: Function, errorCallback: Function): void
| Parameter | Description |
|---|---|
reportId
|
Unique ID of the report you want to generate. |
|
|
Unique ID of the entity for which you want to generate the report. |
Response
| Parameter | Description |
|---|---|
FileName
|
Internal name of the report file. |
|
|
Indicates if the report file is downloadable. |
Message
|
Indicates the outcome of the request. |
Examples
In this example:
- The report's unique identifier is 16eb14bb-f647-4a65-bb00-b5e59fa4eebe.
Request
Copy
var form = $("body").data("ebsContainerContentformData");
var id = form.id;
var entityName = form.entityName;
$('#report').click(function() {
ebs.callReport('16eb14bb-f647-4a65-bb00-b5e59fa4eebe', id);
});