![]() |
|
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. You can specify a maximum of six filters for a report or dashboard. NOTE: The columns that you specify in the filters must be included in the report, and the filter on the columns must be set to "is prompted". Otherwise, the filter that you specify in the Web applet, Web tab, or Web link will not be applied when the report is run. P0 ParameterIn the P0 parameter, at the start of the parameter string, you specify the number of filters that you want to set up. The valid values for the P0 parameter are 1 through 6. The P0 parameter can be used only once in the parameter string. Filter ParametersEach filter uses three parameters: operator, column, and value, and the parameters must be specified in that order. You specify the first filter in parameters P1-P3, and 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. SyntaxFor a single filter, the syntax is as follows: P0=1&P1=operator&P2=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=column&P3=value&P4=operator&P5=column&P6=value The following sections describe the operator, column, and value parameters that make up a filter. OperatorThe operator is specified in the first of the three parameters for a filter. The following table lists the operators that you can use.
ColumnThe column that is to be filtered is specified in the second of the three parameters for a filter. When specifying the column, note the following points:
ValueThe value is specified in the third of the three parameters for a filter. You can specify a value directly, or you can specify a field as a parameter, as follows:
For example, if you select the Row Id field from the record type Fields list, then %%%Row_Id%%% is inserted. At run time, %%%Row_Id%%% is replaced with the row ID of the current record. 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 report 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. |
Published 7/3/2018 | Copyright © 2005, 2018, Oracle. All rights reserved. Legal Notices. |