1b046334eaa841b0336bb3583b894cc834edc6e0
[portal/sdk.git] /
1 import { Injectable } from '@angular/core';
2 import { HttpClient } from '@angular/common/http';
3 import { Observable } from 'rxjs';
4 import { environment } from 'src/environments/environment';
5
6 @Injectable({
7   providedIn: 'root'
8 })
9 export class DashboardReportService {
10
11   constructor(private _http : HttpClient) { }
12
13   
14   getReportData(reportId : string) : Observable<any>
15   {
16     return this._http.get(environment.baseUrl + "raptor.htm?action=report.run.container&c_master="+reportId+"&refresh=Y");      
17   }
18
19   getReportDataWithFormFields(queryString : string, reportId : string) : Observable<any>
20   {
21     return this._http.get(environment.baseUrl + "raptor.htm?action=report.run.container&c_master="+reportId+queryString+"&refresh=Y&display_content=Y&r_page=0");
22   }
23 }