Hi,
following the document for SAP restful services i am able to fetch the drill filters on the report but the when i try to get the values in the filter by getting into the details of a filter i am only getting the ID not the values.
When i using the reports without any prompts i am able to get the filter values within the filter only. the code i am using to get the filter is below.
//get
String url = baseURL + "/raylight/v1/documents/"+ documentId+"/reports/"+reportId+"/filters";
HttpGet post = new HttpGet(url);
post.setHeader("Content-Type", "application/xml");
post.setHeader("Accept", "application/xml");
post.setHeader("X-SAP-LogonToken", logonToken);
HttpResponse response = client.execute(post);
Header headers[] = response.getAllHeaders();
for (int i = 0; i < headers.length; i++) {
Header header = headers[i];
System.out.println(header.getName() + "=" + header.getValue());
}
BufferedReader rd = new BufferedReader(new InputStreamReader(response
.getEntity().getContent()));
String line = "";
while ((line = rd.readLine()) != null) {
writer.println(line);
//System.out.println(line);
}
writer.close();
}
I am unable to understand the behavior to get the filters with and without prompts. please give some suggestion on it.
Thanks and Regrds
Gaurav