Creating an Active Technologies Dashboard

In this section:

This topic describes the WebFOCUS syntax used to:


Top of page

x
Positioning and Sizing Components on an Active Technologies Dashboard

An active dashboard for Adobe Flash Player or for PDF uses pixels as the unit of measurement by default, while tools such as Document Composer and InfoAssist use points as the unit of measurement.

Both Document Composer and InfoAssist provide a WebFOCUS setting so that the design-time and run-time positioning and sizing of components correspond to each other. The setting is ACTIVE_UNITS=PTS, which changes the unit of measurement to points. As a result, some components on an existing active dashboard for Adobe Flash Player or for PDF may appear to overlap at design time in Document Composer, while they appear correctly positioned and sized at run time.

In the Document Composer Text Editor, you can view the WebFOCUS source code for the setting. The syntax is

ACTIVE_UNITS={PTS|PX}

where:

PTS

Sets the active unit of measurement to points. In Document Composer and InfoAssist, points are used for the positioning and sizing of components on an active dashboard for Adobe Flash Player or for PDF. With this setting, the components on an active dashboard have the same position and size at run time as they have at design time (WYSIWYG).

PX

Sets the active unit of measurement to pixels. By default, pixels are used for the positioning and sizing of components on an active dashboard for Adobe Flash Player or for PDF. With this setting, the components on an active dashboard have a different position and size at run time as they have at design time. This is the default value if no other value is set. It is provided for backward compatibility.

The following is an example of the WebFOCUS code for an active dashboard for Adobe Flash Player, with the ACTIVE_UNITS setting shown in bold.

SECTION=section1, LAYOUT=ON, METADATA='0.5^0.5^0.5^0.5^4',
MERGE=OFF, ORIENTATION=PORTRAIT, PAGESIZE=Letter, ACTIVE_UNITS=PTS, $

Top of page

x
Sizing a Grid Component With Respect to Its Container

You can use the following WebFOCUS StyleSheet setting to contain a grid component inside its container on an active dashboard. You must include this setting in the grid component (that is, in the TABLE FILE procedure for the report) inside an active dashboard that you create using COMPOUND syntax.

The StyleSheet syntax is

ARREPORTSIZE={FLOWING|DIMENSION}

where:

FLOWING
Specifies that the size of the grid component (the active report) will dynamically change as needed and will override the size settings for the grid component. This is the default value.

Note: If values for DIMENSION are set in the TABLE FILE procedure for the report, the output formats FLEX and APDF will respect the size set by these values.

DIMENSION
Specifies that the dimensions (height and width) set for the grid component in the active dashboard will be respected. The size of the grid component will not change dynamically, but the grid will be contained inside the container when used in a COMPOUND active dashboard procedure. If the report does not fit inside the container, scroll bars will be added automatically around the report.

Top of page

x
Configuring Active Technologies Form Controls With WebFOCUS Syntax

In this section:

In Document Composer and InfoAssist, you can add one or more active form controls to an active dashboard in order to create complex filter relationships among report and chart components. An active form control is available for an active dashboard in HTML and for an active dashboard for Adobe Flash Player and for PDF.

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

This topic describes the WebFOCUS code that supports the implementation of the preceding active form controls.



x
WebFOCUS Code

The syntax is

OBJECT={LIST|COMBOBOX|TEXTINPUT|CHECKBOX|RADIOBUTTON}, NAME=’object_name',
ARDATA_REPORT='name_of_source_report', ARDATA_COLUMN='column_name',
ARFILTER_TARGET=’target_report_name1,target_report_name2,...',
ARFILTER_CONDITION='{EQ|NE|LT|LE|GT|GE}', ARFILTER_SHOWALL={ON|OFF},
ARFILTER_PARENT=’name_of_parent_object', ARDATA_FILTERONLY={ON|OFF},
ARFILTER_MULTIPLE={ON|OFF}, POSITION=(left top), DIMENSION=(width height),
FONT=font_type, SIZE=font_size, COLOR=font_color, $

where:

OBJECT={LIST|COMBOBOX|TEXTINPUT|CHECKBOX|RADIOBUTTON}

Is the type of active form control. The available values are:

  • LIST adds a list box.
  • COMBOBOX adds a drop-down list.
  • TEXTINPUT adds a text input field. This field is case-sensitive. The value that is typed in the field at run time must match the exact case of the value that is stored in the database.
  • CHECKBOX adds a check box.
  • RADIOBUTTON adds a radio button.
NAME='object_name'

Is the name of the active form control.

ARDATA_REPORT='name_of_source_report'

Is the name of the source report that contains the data that populates the active form control with selection values from which you choose at run time.

This property is required for the LIST, COMBOBOX, CHECKBOX, and RADIOBUTTON controls. This property is optional for the TEXTINPUT control.

ARDATA_COLUMN='column_name'

Is the name of the specific column in the source report that populates the data selection values in the LIST, COMBOBOX, CHECKBOX, and RADIOBUTTON controls.

For the TEXTINPUT control, this property is the column to which the filter condition is applied. There is no initial data value for the TEXTINPUT control at run time. It remains blank until the user supplies a value.

This property is required. The column must exist in both the source report and target report.

The active form controls do not support the use of ACROSS sort fields in active reports or charts. You cannot use ACROSS sort fields to populate the data selection values and apply filters.

ARFILTER_TARGET=’target_report_name1,target_report_name2,...’

Is the name of the target report or target chart component that is filtered by the active form control. You can specify one or more target report or target chart components. To specify multiple target components, provide a list of report or chart component names, separating each name with a comma (,).

This property is required.

ARFILTER_CONDITION='{EQ|NE|LT|LE|GT|GE}'

Is the filter condition that is used. The available values are:

  • EQ. Equal to. This is the default value.
  • NE. Not equal to.
  • LT. Less than.
  • LE. Less than or equal to.
  • GT. Greater than.
  • GE. Greater than or equal to.
ARFILTER_SHOWALL={ON|OFF}

Specifies whether or not to show the string value "[ALL]" in the list of data selection values for the active form control. The default value is ON, which displays the string value "[ALL]" in the list of data selection values. At run time, selecting this value from the control displays all the data in the report. Set this property to OFF to suppress the string value "[ALL]" in the active form control.

This property is optional for the LIST, COMBOBOX, CHECKBOX, and RADIOBUTTON controls.

This property does not apply to the TEXTINPUT control. For the TEXTINPUT control, removing the value supplied in the text input field removes the filter and displays all the values in the target reports and charts.

ARFILTER_PARENT=’name_of_parent_object'

Is the name of the parent active form control using the NAME property to create a nested (parent/child) filter relationship between active form controls.

This is a user-specified property. There is no default value.

ARDATA_FILTERONLY={ON|OFF}

Is a property that is used internally by Developer Studio.

The default value is ON for chained active form controls. The source report for a control can also be a target report for another control that applies a filter to the report. This property allows you to decide whether to filter the data in a control populated by a report that is filtered by another control. When this property is set to OFF, all the values for the column in the report are displayed as the data selection values for the control. When this property is set to ON, only the values after a filter has been applied are available as the data selection values.

ARFILTER_MULTIPLE={ON|OFF}

Is an optional property for the LIST and CHECKBOX controls. When this property is set to ON, you can select multiple values from a LIST or CHECKBOX control at run time. With a list box, hold down the Shift key to select multiple values in sequence, or hold down the Ctrl key to select multiple values that are not in the order listed at run time. With check boxes, you can simply check or uncheck multiple check boxes at run time.

The default value is OFF.

This property does not apply to the COMBOBOX, RADIOBUTTON, or TEXTINPUT control, because those controls allow only single-value selection at run time.

POSITION=(left top)

Is the position of the active form control on the active dashboard.

  • The value left indicates the position of the control from the left edge of the active dashboard, in the units set.
  • The value top indicates the position of the control from the top edge of the active dashboard, in the units set.
DIMENSION=(width height)

Is the size of the active form control on the active dashboard.

  • The value width is the width of the active form control on the active dashboard, in the units set.
  • The value height is the height of the active form control on the active dashboard, in the units set.
FONT=font_type

Is the type of font used to display the values in the active form control, for example, ARIAL.

SIZE=font_size

Is the size of the font used to display the values in the active form control, for example, 12.

COLOR=font_color

Is the color of the font used to display the values in the active form control, for example, BLACK.



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,  $

Top of page

x
Using Text Formatting Markup Tags

Several text formatting markup tags for a text object are supported when you create an active dashboard in Document Composer or InfoAssist.

The font tag supports three attributes:

The syntax is

<font face="font" size=n color=color_name_or_code>text</font>

where:

font

Is the name of the font.

n

Is the size of the font.

color_name_or_code

Is the color of the font, specified as either the name of the color or the HTML hexadecimal value of the color.

text

Is the text that you are formatting for display on the active dashboard. The following are the supported text styles:

  • Bold. The syntax is:
    <b>text</b>
  • Italic. The syntax is:
    <i>text</i>
  • Underline. The syntax is:
    <u>text</u>


Example: Applying Text Formatting Markup Tags

The following image shows several text objects in the upper left corner of a sample dashboard. Each text object is styled with different markup tags to illustrate the options that are available.

Text formatting markup tags


Top of page

x
Controlling the Display of the Global Filter Icon and Dashboard Bar

The following WebFOCUS syntax controls the display of the Global Filter icon and dashboard bar on an active dashboard.

SHOW_GLOBALFILTER={ON|OFF}

where:

ON

Displays the Global Filter icon and dashboard bar on an active dashboard. This is the default value.

OFF

Suppresses the display of the Global Filter icon and dashboard bar on an active dashboard when both of the following apply:

  • You have not set a coordinated field (MERGE=AUTO) option.
  • The dashboard does not have multiple PAGELAYOUTs.

By default, Document Composer and InfoAssist add the following syntax for the output formats AHTML, FLEX, and APDF.

SECTION=section1, LAYOUT=ON, SHOW_GLOBALFILTER=OFF,...$

Setting the MERGE=AUTO option or having multiple PAGELAYOUTs overwrites the preceding SHOW_GLOBALFILTER=OFF setting and displays the Global Filter icon and dashboard bar.


WebFOCUS