Get report parameters
post
/services/rest/v1/reports/{reportPath}/parameters
Gets an array of report parameters and their default values. With the list of parameters, you can set parameter values before running or scheduling a report.
Request
Path Parameters
-
reportPath(required): string
URL encoded report path. For example, if your report path is "/Sample Lite/Published Reporting/Reports/Balance Letter" then your encoded report path will be "%2FSample%20Lite%2FPublished%20Reporting%2FReports%2FBalance%20Letter". Use double encoded forward slash when you send a REST request to BI Publisher through a load balancer that isn't configured to pass encoded slashes. For example, if your report path is "/Sample Lite/Published Reporting/Reports/Balance Letter" then your encoded report path will be Sample%20Lite%252FPublished%20Reporting%252FReports%252FBalance%20Letter
Report request
Root Schema : ReportRequest
Type:
Show Source
object
-
attributeCalendar:
string
The formatting calendar to use for the report request. Valid values are: "Gregorian", "Arabic Hijrah", "English Hijrah", "Japanese Imperial", "Thai Buddha", and "ROC Official".
-
attributeFormat:
string
The output format of the requested report.
-
attributeLocale:
string
The locale selection for the report. Example: fr-FR
-
attributeTemplate:
string
The template to apply to the report. For example, Employeelisting.rtf.
-
attributeTimezone:
string
Specifies the time zone to use for the request, using a supported Java time zone ID. For example, "America/Los_Angeles".
-
attributeUILocale:
string
The locale selection for the report. Example: fr-FR
-
byPassCache:
boolean
Default Value:
false
True indicates to bypass document cache. -
dynamicDataSource:
object BIPDataSource
-
flattenXML:
boolean
Default Value:
false
True indicates that the XML is to be flattened. This flag is used for the Analyzer for Microsoft Excel because Excel requires XML data type to be flattened. -
parameterNameValues:
object ParamNameValues
-
xdopropertyList:
object MetaDataList
Nested Schema : ParamNameValues
Type:
Show Source
object
-
listOfParamNameValues:
array listOfParamNameValues
An array of ParamNameValue
Nested Schema : MetaDataList
Type:
Show Source
object
-
metaDataName:
string
The name of the metadata.
-
metaDataValue:
string
The metadata content.
Nested Schema : FileDataSource
Type:
Show Source
object
-
dynamicDataSourcePath:
string
To specify a path to a data source that resides on an available server, specify the full path to the data source and set temporaryDataSource to "false". For example: "D:\BI\OracleBI\xmlp\XMLP\DemoFiles\Balance.xml")" If the file is located in the system temporary directory, set temporaryDataSource to true, and specify the file name here. For example: "Balance.xml".
-
temporaryDataSource:
boolean
Default Value:
false
Set to "true" when the file data source is in the system temporary directory. Set to "false" when dynamicDataSourcePath specifies the full path.
Nested Schema : JDBCDataSource
Type:
Show Source
object
-
dataSourceName:
string
The Data Source Name assigned to the data source in the Oracle BI Publisher data source definition page (for example, Oracle).
-
jdbcdriverClass:
string
The JDBC driver class for the data source (for example, oracle.jdbc.OracleDriver).
-
jdbcdriverType:
string
The driver type as defined in the Oracle BI Publisher data source definition page (for example, Oracle10g/11g/12c).
-
jdbcpassword:
string
The password for the data source as defined in the Oracle BI Publisher data source definition page.
-
jdbcurl:
string
The connection string for the data source (for example, jdbc:oracle:thin:@mydatabase.foobar.com.example:1521: orcl).
-
jdbcuserName:
string
The user name for the data source as defined in the Oracle BI Publisher data source definition page.
-
postProcessFunc:
string
Enter a PL/SQL function to execute when a connection is closed (Post Process).
-
preProcessFunc:
string
Enter a PL/SQL function to execute when a connection is created (Pre Process).
-
useProxyAuth:
boolean
Default Value:
false
Enable Proxy Authentication.
Nested Schema : ParamNameValue
Type:
Show Source
object
-
dataType:
string
Valid values include: Boolean Date Float Integer String
-
dateFormatString:
string
If UIType is "Date", this specifies the Date Format String. The date format string must be a Java date format (for example, MM-DD-YYYY).
-
dateFrom:
string
If UIType is "Date", this specifies the begin value of the date.
-
dateTo:
string
If UIType is "Date", this specifies the end value of the date.
-
defaultValue:
string
Specifies the default value of the parameter.
-
fieldSize:
string
For parameter types "Text" and "Date", specifies the text field size for the parameter.
-
label:
string
For all parameter types except "Hidden", specifies the display label for the parameter.
-
lovLabels:
array lovLabels
If the parameter type is "Menu", specifies the values displayed in the list of values to the user.
-
multiValuesAllowed:
boolean
True indicates that a parameter may contain multiple values.
-
name:
string
The parameter name.
-
refreshParamOnChange:
boolean
For parameter types "Text" and "Menu", a value of true for this parameter indicates that other defined parameters should be refreshed when a selection is made for this parameter.
-
selectAll:
boolean
For parameter type "Menu", a value of true indicates that all values can be selected for the LOV.
-
templateParam:
boolean
A value of true indicates the parameter is defined in the RTF template.
-
UIType:
string
The type of parameter as defined in the Oracle BI Publisher data model user interface. Valid values include: Date Hidden Menu Search Text
-
useNullForAll:
boolean
For parameter type "Menu", a value of true indicates that a null will be passed if all values are selected for the parameter.
-
values:
array values
Parameter values.
Nested Schema : lovLabels
Type:
array
If the parameter type is "Menu", specifies the values displayed in the list of values to the user.
Show Source
Response
Supported Media Types
- application/json
200 Response
Returns report parameters.
Root Schema : ParamNameValues
Type:
Show Source
object
-
listOfParamNameValues:
array listOfParamNameValues
An array of ParamNameValue
Nested Schema : ParamNameValue
Type:
Show Source
object
-
dataType:
string
Valid values include: Boolean Date Float Integer String
-
dateFormatString:
string
If UIType is "Date", this specifies the Date Format String. The date format string must be a Java date format (for example, MM-DD-YYYY).
-
dateFrom:
string
If UIType is "Date", this specifies the begin value of the date.
-
dateTo:
string
If UIType is "Date", this specifies the end value of the date.
-
defaultValue:
string
Specifies the default value of the parameter.
-
fieldSize:
string
For parameter types "Text" and "Date", specifies the text field size for the parameter.
-
label:
string
For all parameter types except "Hidden", specifies the display label for the parameter.
-
lovLabels:
array lovLabels
If the parameter type is "Menu", specifies the values displayed in the list of values to the user.
-
multiValuesAllowed:
boolean
True indicates that a parameter may contain multiple values.
-
name:
string
The parameter name.
-
refreshParamOnChange:
boolean
For parameter types "Text" and "Menu", a value of true for this parameter indicates that other defined parameters should be refreshed when a selection is made for this parameter.
-
selectAll:
boolean
For parameter type "Menu", a value of true indicates that all values can be selected for the LOV.
-
templateParam:
boolean
A value of true indicates the parameter is defined in the RTF template.
-
UIType:
string
The type of parameter as defined in the Oracle BI Publisher data model user interface. Valid values include: Date Hidden Menu Search Text
-
useNullForAll:
boolean
For parameter type "Menu", a value of true indicates that a null will be passed if all values are selected for the parameter.
-
values:
array values
Parameter values.
Nested Schema : lovLabels
Type:
array
If the parameter type is "Menu", specifies the values displayed in the list of values to the user.
Show Source
Examples
The following example shows how to get the parameters of a report and the default values of the parameters by submitting a POST request on the REST resource using cURL.
curl -i \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--request POST -d '{}' 'https://hostname/xmlpserver/services/rest/v1/reports/Sample%20Lite%252FPublished%20Reporting%252FReports%252FSales%20Performance+Report/parameters'
Example of the Response Body
The following example shows the contents of the response body in JSON format.
* Connection #0 to host hostname left intact
{"listOfParamNameValues":{"item":[{"UIType":"Menu","dataType":"xsd:string","defaultValue":"2009","label":"Calendar Year","lovLabels":{"item":["2009.00","2010.00","2008.00"]},"multiValuesAllowed":"false","name":"P_YEAR","refreshParamOnChange":"false","selectAll":"false","templateParam":"false","useNullForAll":"true","values":{"item":["2009.00","2010.00","2008.00"]}},{"UIType":"Menu","dataType":"xsd:string","defaultValue":"Stockplus Inc.","label":"Company Name","lovLabels":{"item":["Stockplus Inc.","Genmind Corp","Tescare Ltd."]},"multiValuesAllowed":"false","name":"P_COMPANY","refreshParamOnChange":"true","selectAll":"false","templateParam":"false","useNullForAll":"false","values":{"item":["Stockplus Inc.","Genmind Corp","Tescare Ltd."]}},{"UIType":"Menu","dataType":"xsd:string","defaultValue":"Inbound Org.","label":"Organization Name","lovLabels":{"item":["Inbound Org.","International Org."]},"multiValuesAllowed":"false","name":"P_ORG","refreshParamOnChange":"false","selectAll":"false","templateParam":"false","useNullForAll":"true","values":{"item":["Inbound Org.","International Org."]}}]}}