This function runs an existing report, using its report_id obtained from the get_reports function.
The predefined example runtime filers are:
DATE_CREATED
- Date CreatedTIMESTAMP
- Last ModifiedPRIORITY
- PriorityThe example parameters for the call are:
user_id=xx&password=xx
&statevar=run_report
&page_length=100
&record_start=1
&username_display=LAST
&report_id=1234
&api_reverse_lookup=YES
&p_ql_search_mode=ADVANCED
&p_fset=0
&p_fieldName=DATE_CREATED
&p_operator=between
&p_value1_EVDISPLAY=09/01/2017
&p_mvalue1=09/01/2017
&p_value2=09/30/2017
&p_fset=0
&p_fieldName=TIMESTAMP
&p_operator=>
&p_value1_EVDISPLAY=09/08/2017
&p_mvalue1=09/08/2017
&p_fset=0
&p_fieldName=PRIORITY
&p_operator==
&p_value1_EVDISPLAY=P 2
&p_mvalue1=
The basic syntax of each runtime filter is a set of following six form parameters
1. p_fset
2. p_fieldName
3. p_operator
4. p_value1_EVDISPLAY
5. p_mvalue1
6. p_value2
The values of each parameter are:
1. p_fset
- p_fset
is always set to 0
, like p_fset=0
2. p_fieldName
- p_fieldName
is the Data Dictionary name, such as p_fieldName=DATE_CREATED
, p_fieldName=TIMESTAMP
, and p_fieldName=PRIORITY
3. p_operator
- p_operator
is one of the following values but depends on the display type of the field, the same as in the desktop user interface
=
>
<
<>
<=
>=
contains
not_empty
empty
between
4. p_value1_EVDISPLAY
- for POPUP
, DATE
and DAY
display type fields, you need to specify this value
For DATE
and DAY
fields, an example is p_value1_EVDISPLAY=09/08/2017
For POPUP
fields an example is p_value1_EVDISPLAY=P 2
Note: you need to have the parameter api_reverse_lookup=YES
to enable the reverse lookup of list fields using their title rather than their name or the database UDF_LIST_ID.
5. p_mvalue1
- All display types, except POPUP
need to specify the database values
For DATE
and DAY
fields, you need to specify the same value of p_value1_EVDISPLAY
, for example p_mvalue1=09/08/2017
For POPUP
fields, you don't need to specify any parameter if api_reverse_lookup=YES
For other display types, you need to specify the database values
6. p_value2
- p_value2
is only used for DATE
and DAY
fields when you using the between
operator, for example p_value2=09/30/2017
access_token
parameter allows you to use a valid OAuth2 token obtained with the get_token
command. If you provide the access_token
parameter, then the user_id
and password
parameters should not be provided. This prevents the password being sent in clear text over your network connectionsearch
API command. The search
API command has more flexibility in this case.p_output_type
parameter. You may output the report to Microsoft Excel, Microsoft Word, Adobe PDF or text.exclude_data_images
will inhibit images embedded within HTML Area fields from being output, if set to a value of yes
.