Topics: |
WebFOCUS Designer filter controls are versatile and allow you to facilitate multiple filtering scenarios. Depending on the needs of your enterprise and on the specifics of the data that you are using, you can configure filter controls to fit your unique needs. Examples below show you different types of controls and how to use them.
How to: |
WebFOCUS Designer supports two event models for passing parameters to your page content:
The preview mode is activated, allowing you to interact with content and filters.
Each time you make a selection, the content refreshes to reflect it.
Note: Notice that the filter controls are chained in such a way that each selection automatically reflects the available choices in other filters. In our example, we set Category to Televisions. Now, the Product Model filter only shows models of televisions, as shown in the following image. WebFOCUS Designer chains controls automatically, if the parameters are defined in the metadata layer with the WITHIN keyword to relate them.
The Submit and Reset buttons display in the filter grid.
Note: You can delete one or both buttons by right-clicking them and clicking Delete.
The preview mode is activated, allowing you to interact with content and filters.
The content refreshes to reflect all your selections upon clicking the Submit button, as shown in the following image.
The filters return to their default values.
Note: If you deleted the Reset button in the previous step, you must select default values manually, and then click Submit to return to the default state.
How to: |
When you have required parameters in your content, WebFOCUS Designer interprets them as required filter controls. Required controls are marked in red, prompting you to make a selection for the request to be processed. The image below shows an example of a required filters control.
With a required parameter in place, your content does not refresh until you select filter values.
There are two ways to create a required filter control:
The Open dialog box opens.
opens.
To learn more about creating content in , see the WebFOCUS User's Manual.
The Create a filleting condition dialog box opens.
The drop-down dialog box opens.
In our example, we are creating a multiple select required control. An example of a complete configuration is shown in the following image.
The content item does not load. Instead, a blank container displays a message: A required parameter is missing. The Quick Filter button appears on the toolbar with the badge icon showing one available filter.
The filter bar with one filter appears above the content item. The filter control is marked in red and the Make a selection text displays inside the control field.
The preview mode opens.
The filter control is no longer red. It displays your selections. The content refreshes to reflect the filter values, as shown in the following image.
The Properties panel opens.
The filter control is marked in red and the Make a selection text displays inside the control field.
The preview mode opens. The content does not refresh.
The content refreshes to reflect your selection.
There are two types of list controls in WebFOCUS Designer:
An example of a single select list control is shown in the following image.
Once you have made a selection in a single select list, your content instantly refreshes to reflect that selection.
An example of a multiple select list control is shown in the following image.
Once you have made all your selections in the multiple select list, you must click outside of the control for the content to refresh.
You can customize your list controls with the search feature by enabling the Search setting in the Properties panel. Once enabled, it adds the search field to your list and allows you to quickly navigate to a specific value. Simply start typing any word or syllable and all values that contain it will display. When a list contains 50 or more values, the search feature is enabled automatically. You can disable it at any time by disabling the Search setting in the Properties panel.
If a list contains 200 or more values, the paging feature is added to the bottom of the control. When paging is active, 10 values display per page. An example of a long list with the paging feature enabled is shown in the following image.
You can further enhance a multiple select list by enabling the Selection controls option in the Properties panel. Once enabled, it adds the Select all and Clear buttons to the list. This feature is especially useful when you need to eliminate just a few values from your results. You can click Select All, clear the values that you need to eliminate, and click outside of the control to refresh your content.
If the Selection controls and Search features are enabled at the same time, you can use the Select all button to select all search results, as shown in the following image.
How to: |
A slider control is a horizontal track with a marker that you can slide between a minimum and maximum value. This versatile control is often used to choose a value within a fixed range. An example of a slider control is shown in following image.
The Open dialog box opens.
opens.
To learn more about creating content in , see the WebFOCUS User's Manual.
The Create a filleting condition dialog box opens.
In this example we create the minimum and maximum parameters for the MPG field in the car report. An example of the completed filtering condition is shown in the following image.
The Text Editor window opens.
An example of the modified syntax is shown in the following image.
The Quick Filter button appears on the toolbar with the badge icon showing two available filters.
The slider controls display in the filter grid, as shown in the following image.
Your controls are combined. You can edit the label to reflect your new combined control. An example of the combined slider control is shown in the following image.
Parameters that contain date ranges are recognized by WebFOCUS Designer as date range controls. An example of the date range controls on the page is shown in the following image.
The calendar feature inside a date control allows you to select a specific date value. Once you pick a specific date, it is always spelled out, so that it can be supported by all internationalized applications.
Optionally, you can combine two date control into one date range control. To do so, multi-select two date controls and then click Combine. An example of a combined date range control is shown in the following image.
How to: |
The Global Name property is a powerful tool that allows you to quickly synchronize filter control values between different pages. The Global Name property is configured on the Settings tab of the Properties panel for a filter control. Once enabled, it allows you to match your filter selections across multiple pages at run time within the same browser session.
The Properties panel opens.
Note: You can choose any text as a global name for your control. Combined controls, such as date ranges and slider controls, have a single global name property.
Note: To streamline this process, you can use the Save As option to create a new version of the existing page, leave the configured filters intact, and replace the content on the canvas. Make sure the Global Name values are identical between the filter controls on both pages.
An example of the filter control selections is shown in the following image.
The page runs with the same filter control values as the ones you have selected on the previous page, as shown in the following image.
WebFOCUS | |
Feedback |