a75c50f8851335387366ce1921b2ba56a623ee7a
[portal/sdk.git] /
1 import { Injectable } from '@angular/core';
2 import { HttpClient, HttpHeaders } from '@angular/common/http';
3 import { Observable } from 'rxjs';
4 import { environment } from '../../../../../../environments/environment';
5
6 @Injectable({
7   providedIn: 'root'
8 })
9 export class RunService {
10   finalArr : any;
11   finalResponseArr : any;
12
13   constructor(private _http : HttpClient) { 
14     
15     
16   }
17
18   getReportData(reportId : string) : Observable<any>
19   {
20     this.finalArr = new Array();
21     this.finalResponseArr = new Array();
22     this.finalArr = [{"id":"141","name":"USID"},{"id":"140","name":"USEID"},{"id":"81","name":"MARKET"},{"id":"83","name":"MARKETCLUSTER"},{"id":"112","name":"REGION"}];
23     
24       return this._http.get(environment.baseUrl + "raptor.htm?action=report.run.container&c_master="+reportId+"&refresh=Y");
25       
26   }
27 }