ebs.callReportByName
Generates a report that was set up on the FintechOS platform for a specific entity by the report name.
Syntax
Copy
ebs.callReportByName(reportName: string, entityId: string, callback: Function, errorCallback: Function): void
| Parameter | Description |
|---|---|
reportName
|
The name 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 name of the report we want to generate is ContractReport.
Request
Copy
var form = $("body").data("ebsContainerContentformData");
var id = form.id;
var entityName = form.entityName;
$('#report').click(function() {
ebs.callReportByName('ContractReport', id);
});