Active Technologies Form Controls

In this section:

Active Technologies form controls enable you to create complex filter relationships among the report and chart components on an active dashboard. This topic describes the capabilities that are available to you when you incorporate active form controls into the design of your active dashboards.

Active Technologies form controls are available for an active dashboard in HTML and for an active dashboard for Adobe Flash Player and for PDF.

For the procedures used in Document Composer to add active form controls to an active dashboard, see the Creating Compound Reports With Document Composer manual. For the procedures used in InfoAssist, see the WebFOCUS InfoAssist User's Manual.

For more information on managing active form controls and configuring them with WebFOCUS syntax, see the Active Technologies User's Guide.


Top of page

x
Types of Active Technologies Form Controls

The following are the types of active form controls that you can use to apply filters to an active dashboard.


Top of page

x
Adding Active Technologies Form Controls and Establishing Relationships

The following general guidelines apply to active form controls.


Top of page

x
Specifying the Source Report and Target Report

A source report (ARDATA_REPORT='name_of_source_report') contains the data that populates an active form control with selection values from which you choose at run time. A target report or target chart (ARFILTER_TARGET='target_report_name1,target_report_name2,...') is the report or chart component that is filtered by the control.

The following features apply to the source report and target report.


Top of page

x
Specifying the Report Column

A report column (ARDATA_COLUMN='column_name') in a source report populates the data selection values in a list, drop-down list, check box, or radio button. For a text input field, the report column is the column to which the filter condition is applied.

The following features apply to the report column.


Top of page

x
Using Independent Active Technologies Form Controls

If you do not set chained or nested relationships among active form controls, the controls will be independent of each other. At run time, only one filter condition will be in effect. The filter condition from the control that is selected will overwrite the filter condition from another, unselected control, providing an OR condition between the two controls.

For example, if the first control is for the YEAR column, and the second control is for the REGION column, when you select the value 2001 from the YEAR control, the target reports and charts will be filtered based on the condition YEAR = 2001. When you select the value Northeast from the REGION control, the target reports and charts will be filtered based on the condition REGION = Northeast for any YEAR value, as those controls are not related to each other. In the target reports and charts, you can display the result of either YEAR = value or REGION = value, but not both.

Using another example, you can change the data displayed in the following active report by using independent active form controls that provide data for REGION = West or CATEGORY= Gifts. In the following image, CATEGORY = Gifts in the right-most active form control overwrites REGION = West in the left-most active form control.


Top of page

x
Nesting Active Technologies Form Controls

You can set a second active form control to be the child of a prior active form control, to create a nested filter relationship. In the second active form control, specify the name of the prior active form control as the parent. By specifying a filter component name in the ARFILTER_PARENT property (ARFILTER_PARENT='name_of_parent_object'), you can chain the active form controls to provide a nested filter with a parent/child relationship between the controls.

At run time, when you select a value from the first control, the values in the second control are filtered, based on the value selected in the first control.

In the following example, all three drop-down lists are chained, with the precedent filter component name set as the parent. When you select a value from the first drop-down list, which is populated with values for REGION, the values in the other active form controls will change, based on the value selected in the first drop-down list.

For example, when you select the value West from the first drop-down list, the report is filtered by REGION = West. The second drop-down list, which is populated with values for STATE, dynamically changes to display only the STATE values, CA and WA, for the West REGION. You can now select a STATE value, such as CA, and the report is filtered to display data for STATE = CA within REGION = West.

You can also nest the third drop-down list, which is populated with values for PRODUCT, to display the data for PRODUCT = Gifts in STATE = CA within REGION = West in the report, as shown in the following image.


Top of page

x
Example: Adding a Sample Drop-Down List

The following image shows a partial active dashboard with a single tabular active report and a drop-down list (COMBOBOX). The drop-down list is positioned to the right of the active report. The drop-down list allows you to filter data in the tabular report on the value of the STATE column in the procedure. The data selection value All is provided in the drop-down list. When selected, All displays all the data in the report.

The WebFOCUS code for the drop-down list is as follows.

OBJECT=COMBOBOX, NAME='combobox1',
POSITION=(6.010 2.167), DIMENSION=(1.667 0.208),
ARDATA_REPORT='report1', ARDATA_COLUMN='STATE',
ARFILTER_TARGET='report1', ARFILTER_CONDITION='EQ',
ARFILTER_SHOWALL=ON,  $

WebFOCUS