File

src/ui/report-viewer/services/smart-report.service.ts

Index

Methods

Methods

Public getReport
getReport(templateUrl: string, dataUrl: string, record?: any, dataRequestMethod: "get" | "post", dataRequestPayloadFields?: string)

Get the report from the server. First get the template and data, then merge them into a single report.

Parameters :
Name Type Optional Default value Description
templateUrl string No
  • The URL of the report template
dataUrl string No
  • The URL of the report data
record any Yes
  • The record to use for the report
dataRequestMethod "get" | "post" No 'get'
  • The method to use for the data request
dataRequestPayloadFields string Yes
  • The fields to use for the data request payload
Returns : Observable<any>

The report

Public getReportData
getReportData(dataUrl: string, payload?: any)

Get the report data from the server

Parameters :
Name Type Optional Description
dataUrl string No
  • The URL of the report data
payload any Yes
Returns : Observable<any>

The report data

Public getReportTemplate
getReportTemplate(templateUrl: string)

Get the report template from the server

Parameters :
Name Type Optional Description
templateUrl string No
  • The URL of the report template
Returns : Observable<any>

The report template

results matching ""

    No results matching ""