About Specifying Filters for Embedded Reports and DashboardsYou can embed reports and dashboards in custom Web applet and Web tabs. You can also configure Web link fields to open reports and dashboards. When you create a custom Web applet, Web tab, or Web link of the Report or Dashboard type, you can specify filters that will be applied at run time. For a dashboard, the filters that you specify apply to all of the reports in the dashboard. Each of the columns that you specify in the filters must also have a filter configured for it in the report that you want to embed, and if you are embedding a dashboard, then the column must have a filter configured for it in each of the reports in the dashboard. The filter in the report can be set to "is prompted" or configured with an operator and a value. If a filter is not configured for a column in the report, then any filter that you specify for that column in the Web applet, Web tab, or Web link will not be applied when the report is run. For information about adding filters to columns in reports, see Adding Filters to Columns in Analytics. NOTE: When you create a custom Web applet, Web tab, or Web link of the Report type, you can optionally specify that any prompts that are defined for the embedded report are to be displayed at run time, by selecting the Display Report Prompts check box. Displaying prompts at run time allows users to filter the report. However, the setting in the Display Report Prompts check box takes precedence over any filters that are defined in the Parameters field for the embedded report or dashboard. Therefore, if you select the Display Report Prompts check box for a custom Web applet, Web tab, or Web link, then any filters that are defined in the Parameters field as described in this topic are ignored, even if no prompts are defined for the embedded report. Syntax for Specifying FiltersYou can specify the parameters for filters in either of the following ways:
You cannot use a mixture of the two types of syntax. Using the Pn syntax, you can specify a maximum of six filters. In the P0 parameter, you specify the number of filters that you want to set up. The valid values for the P0 parameter are integers 1 through 6. The P0 parameter can be used only once in the parameter string. Each filter uses three parameters to contain the operator, the column, and the value. You specify the first filter in parameters P1-P3. P1 must specify the operator, P2 must specify the column, and P3 must specify the value. You specify the subsequent filters in sets of three parameters, namely P4-P6, P7-P9, P10-P12, P13-P15, and P16-P18. You must use an ampersand (&) to separate the parameters. Each parameter can be used only once in the parameter string. For a single filter, the syntax is as follows, although the parameters can be placed in any order in the parameter string: P0=1&P1=operator&P2=table.column&P3=value To specify additional filters, you add parameters P4-P6, P7-P9, and so on, and increase the value of the P0 parameter to match the number of filters that you add. So, for two filters, the syntax is as follows: P0=2&P1=operator&P2=table.column&P3=value&P4=operator&P5=table.column&P6=value Using the opn syntax, there is no limit to the number of filters that you can specify. Each filter uses a group of three parameters: the opn parameter specifies the operator, the coln parameter specifies the column, and the valn parameter specifies the value. You must use an ampersand (&) to separate the parameters. You must number each of the parameters in a filter group with the same number, which must be an integer greater than 0 (zero), and you must number the groups of parameters sequentially. For a single filter, the syntax is as follows, although the parameters can be placed in any order in the parameter string: op1=operator&col1=table.column&val1=value Similarly, for two filters, the syntax is as follows: op1=operator&col1=table.column&val1=value&op2=operator&col2=table.column&val2=value NOTE: In the column parameter, if a table name or a column name contains a space, then you must enclose that name in double quotation marks. If a table name or a column name does not contain a space, then you do not need to enclose the name in double quotation marks, but you can do so if you wish. This is true for both types of syntax. Page ParameterWhen you embed a dashboard, you can also optionally use the Page parameter to specify which page of the dashboard opens when the dashboard is rendered. The syntax for the Page parameter is: Page=page name where page name is the name of the page as it appears in the dashboard. Do not enclose the page name in double quotation marks, even if the name contains one or more spaces. You can specify the Page parameter on its own or with other parameters. You can place the Page parameter in any location in the parameter string, but you must use an ampersand (&) to separate the Page parameter from any parameter that precedes it or follows it. The Page parameter is not validated when you save the parameters. If you do not include the Page parameter, or if you include it but leave the parameter value blank, then the first page of the dashboard opens when the dashboard is rendered. If you specify a value that is anything other than the valid name of a page in the selected dashboard, then an error is displayed at run time. About Special Characters in ParametersIf a table name, column name, value, or dashboard page name that you specify in a parameter includes any of the following characters, then the character must be encoded, as follows:
If these characters are not encoded, then an error might be returned when you try to save the parameters, or the results might not be correct at run time. Parameter ValidationWith the exception of the Page parameter, the parameters that you specify are validated when you try to save your changes. If any errors are detected, then you must fix those errors before you can save your changes. NOTE: In releases earlier than Release 40, the filter parameters were not validated before they were saved. Therefore, a filter parameter that was specified for an embedded report or dashboard in a release earlier than Release 40 might contain an error. If any errors are detected in the syntax of a filter when an embedded report or dashboard is rendered, then an error message is displayed. Also, if you edit an existing Web applet, Web tab, or Web link field of the Report or Dashboard type, and if you make a change to any field, then when you attempt to save your changes, all of the fields including the Parameters field are validated. If any errors are detected, then you must fix those errors. The following sections describe the parameters that make up a filter. OperatorThe following table lists the operators that you can use in a filter.
ColumnWhen specifying the column, note the following points:
ValueWhen specifying the value for a filter, note the following points:
NOTE: The URL for a report or dashboard is generated at run time. The length of the URL for the report or dashboard varies, depending on the values that are passed to the URL for the filters at run time. Each browser has a maximum URL length. If the URL for a report or dashboard exceeds this length, then users might see indeterminate behavior on the browser when they attempt to view that report or dashboard. NOTE: You can specify parameters for a report, a dashboard, or a dashboard page in a Send Email action on a scheduled event for Analytics in the same way that you specify the parameters for an embedded report or dashboard in a Web applet, tab, or link. However, you cannot select fields to specify as parameter values in a Send Email action. For information about setting up scheduled events for Analytics, see Creating Scheduled Events for Analytics. |
Published 6/21/2021 | Copyright © 2005, 2021, Oracle and/or its affiliates. Legal Notices. |