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