How to: |
When a page includes content with dynamic parameter filters, you can pass parameter values to it from external content to set the filter values when the page initially loads. For example, you can create a chart or report with drill-down links that points to the page, and configure the drilldowns in such a way that the value the user clicks in the chart or report is used as a filter value in the page. This allows users to navigate between content items and determine the scope of the information that they want to see.
If the page is the target of a link tile in another page, parameter values in the source page are passed to the target page automatically if the Attach all parameters option is enabled and the same parameter filters are present. This allows users to see the same set of values in the target page without having to set filter values again.
Parameter values can also be passed to a page using parameter name-value pairs in the run-time URL. The run-time URL uses the following format:
http[s]://hostname:port/context_root/run/path_to_item[?&variable_name1=variable_value1&variable_name2=variable_value2]
where:
Is the name of the system where WebFOCUS is installed.
Is the port number used by WebFOCUS.
Is the context root used for your WebFOCUS application. For example, ibi_apps.
Is the IBFS path of a page in your WebFOCUS repository. You can find the path of a page by right-clicking it on the WebFOCUS Hub or WebFOCUS Home Page and clicking Properties. The file path is listed as the Path property.
Slashes (/) between folder names should be retained literally instead of encoded in the URL, and the colon (:) should be removed after IBFS. For example:
http://localhost:8080/ibi_apps/run/IBFS/WFC/Repository/My_Workspace/~user/example_page
Are one or more parameter name-value pairs. To pass multiple values to a multiselect parameter in the page, separately list the same parameter name multiple times with each distinct value. For example, the URL,
http://localhost:8080/ibi_apps/run/IBFS/WFC/Repository/My_Workspace/~user/example_page?&TIME_YEAR=2018&TIME_YEAR=2019
passes 2018 and 2019 to the &TIME_YEAR parameter.
Note: If multiple filters in a page use the same amper variable name, for example, if they come from different data sources, the value or values defined in the URL are passed to each of these filters.
You can drill down from a chart or report procedure to a page created in WebFOCUS Designer. Drill-down parameters can be passed to the page to apply their values to any page filters.
The filters in this page will be populated with values passed from a drill-down report.
For information on creating a page, see Creating Pages.
On the Hub or Home Page, in the Workspaces view, click the +Content button, point toInfoAssist, and click Report or Chart.
InfoAssist opens and you are prompted to select a data source.
The report or chart canvas appears.
If you are passing multiple parameter values through the drilldown, selecting a section of the chart or report that represents multiple sort values may help clarify to the user which values will be passed.
For example, in the report shown in the following image, the Sale Year field is the secondary sort field while Customer Business Region is the primary sort field, so each row in the Sale Year column represents a sale year and a business region.
In this case, adding the drill-down links to the Sale Year column would allow you to choose from all of the available Customer Business Region and Sale Year values, whereas adding the links to the Customer Business Region column would only allow you to pass parameter values for the first sale year in each business region group. As an alternative to creating drilldowns on the lower level sort field, you could ensure that all parameter values are passed from a report by using repeating sort values. On the Format tab, in the Features group, click Repeat Sort Value.
The Drill Down dialog box opens.
The URL format should resemble the following:
http[s]://hostname:port/context_root/run/path_to_page
You can get the path to the page by right-clicking it on the Hub or Home Page and clicking Properties. It displays as the Path property. When you add it to the run-time URL for the drilldown, remember to remove the colon (:) after IBFS.
In a report, drill-down links are added for each value of the field where the drilldown was created. In a chart, you can access drill-down links in a tooltip at run-time.