passing a collection parameter with REST API

0

Need help how to construct the REST call to pass an integer to a report.

- I would like the report to summerize information for all fields that are in a lint of integers

- the parmeter is defined as a collection of long

- could not figure out from searching and the API documentation how to transfer the list of long numbers to the report.

- if I don't try anything with the parameter name , than the report is for the default value expression -->  java.util.Arrays.asList(999002,999003)

- the paramerter name is sensor_list, anything I try results an internal server error or getting the report with the default collection

yaroniva's picture
Joined: Dec 15 2011 - 6:38am
Last seen: 3 days 2 hours ago

1 Answer:

0

here is a work around - use parantesis with a list of values and use as a string parmeter

url?list=(100,1000,101,54)

use the following query:

select ......... from

where list in $P!{list}

yaroniva's picture
Joined: Dec 15 2011 - 6:38am
Last seen: 3 days 2 hours ago
Feedback