on 04-21-2016 3:47 AM
Hi,
Is there a way to select the value in input controls and export the report using REST?
My report has prompts to select the user id and month that opens a report with two input controls. For a particular user id, the input controls have many values. Is there a way i can select the input control values one by one, open the report and export to PDF?
Thanks,
Arun
Hi Arun,
You can retrieve a list of input controls and their IDs using:
GET /raylight/v1/documents/<docId>/reports/<reportId>/inputcontrols
To retrieve the values of an Input control:
GET /raylight/v1/documents/<docId>/reports/<reportId>/inputcontrols/<inputControlId>/selection
you can then loop through the values in the selection and apply them individually and export using:
PUT /raylight/v1/documents/<docId>/reports/<reportId>/inputcontrols/<inputControlId>/selection
body:
<selection>
<value> a retrieved value </value>
</selection>
then Export
GET /raylight/v1/documents/<docId>/reports/<reportId>/pages
Accept: application/pdf
Dan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.