In this blog, we will see how to pass filters values in the URL for different types of filters.
Whenever we want to pass parameters values in the URL, we need to append the filter label along with the value in the URL. This is applicable for reports created using Adhoc interface, ReportsCE interface and canned reports interface as well as for dashboards.
Examples of the URL with parameters in plain text are shown below:
https://applicationHost.com:8085/hi-ee/hi.html?dir=Travel_Dashboard&file=travel_dashboard.efw&mode=dashboard&TERRITORY=%5B“Japan”, “NA”,“Emea”%5D&STERRITORY=NA
Note: &TERRITORY is the filter label. This label is the same as the label given to the filter while creating the report.
For Adhoc report, filter label is mentioned in the highlighted area.
For ReportCE interface, filter label is mentioned as the parameter label:
For Canned Reports interface, filter label is mentioned as the parameter label:
For Dashboard, filter label is seen as
For single select filters, the values can be directly mentioned as
&filter_label=filter_value
For multi select filters, the values need to be passed as an array. Hence, the values need to be passed within square brackets [] or between %5B and %5D tags (these are the corresponding values for opening and closing square brackets) separated by comma.
Eg: &filter_label=[“filtervalue1”,”filtervalue2”,”filtervalue3”]
Or
&filter_label=%5B”filtervalue1”,”filtervalue2”,”filtervalue3”%5D