cancel
Showing results for 
Search instead for 
Did you mean: 

Input controls

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

daniel_paulsen
Active Contributor
0 Kudos

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

Answers (0)