Skip to Content
avatar image
Former Member

Input controls

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 21, 2016 at 10:04 PM

    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

    Add comment
    10|10000 characters needed characters exceeded