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: |
Creating a page filter in WebFOCUS Designer is a quick and intuitive process. Whenever you add parameterized content item to the canvas, such as a report with parameters or chart with parameters, Designer recognizes the parameters and creates filters for them automatically. The tool then notifies you of any available filters with a notification, and a badge count is overlaid on the Quick Filter button, as shown in the following image.
After you add filters to a page, you can edit filter parameters, customize your filter grid, and change the types of your filter controls.
There are three ways to add filters to a page in WebFOCUS Designer:
The Quick Filter button appears on the toolbar with the badge icon showing the number of unbound filters.
Note: The quickest way to create parameterized content featuring the same set of parameters is to start by creating a Reporting Object with desired parameters, and then using the Reporting Object to create content. To do so, right-click your Reporting Object, point to New, and then click Chart or Report.
The filter bar with all available filters appears above your content.
Note: If all available filters display on the page, the Add Filter Controls setting is inactive.
Note: Another way to edit a control label is to double-click the field, type the new text, and press Enter.
The Combine option only applies to dates and sliders.
The Filter button appears on the toolbar, with the badge icon showing the number of available filters.
The Page Filter Configuration dialog box opens.
Note: If you prefer a floating modal window instead of a filter bar, click Create empty filter modal window.
The Add Filter Controls dialog box opens, and lists all available controls selected by default, as shown in the following image.
Note: When working with button sets, keep in mind that they look best when positioned in a single line.
The controls are added to the filter bar.
The Filter button appears on the toolbar, with the badge icon showing the number of available filters.
The Add Filter Controls dialog box opens, and lists all available controls selected by default.
The controls are added to the grid container.
Note: You can also drag a control from the filter bar to a grid container directly, if the filter bar is open and populated with controls.
An example of a simple layout featuring a grid container with filter controls is shown in the following image.
You can configure the properties of the filter grid using the Properties panel, which is context-sensitive. For example, when you click a filter cell, the cell style properties open in the Properties panel. When you click a filter control, the general and style properties for this control open in the Properties panel.
The Properties panel for a cell is shown in the following image. When you configure these properties, you modify the alignment of content within a cell or change the style layout of the filter grid.
The properties for a grid cell are:
The Properties panel for a filter control is comprised of two tabs: general and style properties. The Settings tab is displayed in the following image. Using these properties, you can view the type of filter control that shows on the page, add a tooltip or placeholder text, and set the default value.
The Settings tab contains the following properties:
Note: The Placeholder text property is only used for required controls. The placeholder text appears before a selection has been made. To change the default text for an optional control, enable the Show All option property and type a value for the Display text property. The display text option in the control represents all values.
Note: If the select list contains 50 or more values the Search option is enabled automatically.
Note: The Selection controls and Show All options cannot be selected at the same time.
Note: Choosing this option results in the parameter receiving a _FOC_NULL value. If this parameter is used in a WHERE condition, it results in the WHERE condition being removed from the request and all data values for this field displaying the page.
Note: The Display text property is available when Show All option is selected. The display text option in the control represents all values. To supply a placeholder value for required controls that appears before a selection is made, use the Placeholder text property.
The style tab is displayed in the following image. Similar to the properties of a cell, you can modify the positions of labels in a control, define the alignment, and set the object width.
The style properties are:
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. If your page content contains default values, page filters and page content run in parallel, which results in a faster loading time.
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.
InfoAssist opens.
To learn more about creating content in InfoAssist, see the WebFOCUS InfoAssist User's Manual.
The Create a filtering 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 numeric value within a fixed range. An example of a slider control is shown in following image.
WebFOCUS Designer opens in Chart mode.
WebFOCUS Designer opens in chart mode.
A control appears, allowing you to select default values for the filter parameter, as shown in the following image.
When a parameter using one of these options is added to a page in WebFOCUS Designer, the control is a slider with a fixed start or end point.
WebFOCUS Designer opens in page mode.
The Quick Filter button appears on the toolbar with the badge icon indicating that filters are available. If the parameter used the range option, the Quick Filter button indicates that two parameters are available, resulting in a slider where you can adjust both heads. If the parameter used the Greater than or Less than option, the Quick Filter indicates that one parameter is available, resulting in a slider where you can adjust either the minimum or maximum slider head.
The slider control displays in the filter grid, as shown in the following image.
The Open dialog box opens.
InfoAssist opens.
To learn more about creating content in InfoAssist, see the WebFOCUS InfoAssist 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 dates are recognized by WebFOCUS Designer as date controls. An example of the date controls on the page is shown in the following image.
In this example, each of the controls is associated with a distinct parameter. One parameter uses the Greater Than WHERE condition, the other parameter uses the Less Then WHERE condition.
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 controls 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.
The user can select a custom range of dates, as shown in the image, or use any of the presents to select a more general date period.
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.
Note: If your page was created prior to the WebFOCUS Release 8205 and it uses the Global Name feature and contains default content, you must save it again using WebFOCUS Designer to ensure optimal performance.
How to: |
You can personalize default values for filters in a page based on users or conditions. This feature uses the amper (&&) global variable to specify the default option for a filter control. For example, you can set the Region value for a user, using the && global variable, and link it to the filter control to show their region as the selected value.
The New Text Resource dialog box opens
- &&DEFREGION -SET &&DEFREGION= IF &FOCSECUSER EQ user1 THEN 'North America' ELSE -IF &FOCSECUSER EQ user2 THEN 'EMEA' ELSE 'South America'
To map the FOCEXEC you just created in the Administration console, add the focexec path to the Paths to be executed on user Sign-in field in the Other section under Application Settings. The focexec path name can be copied from the Properties panel in the Home page.
Note: If you are setting the focexec to be executed on sign in, make sure that the WebFOCUS user credentials are passed to the server. One way to do that is to set the server connection to Trusted and select the Pass WebFOCUS User ID and other Groups radio button. For more information on how to use Administration Console, see the WebFOCUS Security and Administration technical content.
The following image shows an example of the Default value property populated with the variable.
The default value for the Region filter control is North America, as shown in the following image.
The following image shows an example of the user with the username user1 running the page. The default Region value now is EMEA.
|
WebFOCUS |