- Using Tabs and Configurations

Using Tabs

When using tabs in WOW, before the tab layout is displayed there must be a single tab parent row.

What this means is that, if the tab parent operation is run and results in multiple rows, the tab layout

is not displayed until the user has narrowed the results down to a single row. This can be done either

by altering the search criteria so that a single row is returned, or by clicking on the detail view of one

of the result rows.

Tab Configuration

The Tabs property group allows you to configure tabs in several ways:

Default Tabs

Once a single tab parent row has been selected, WOW will display all the tabs associated with that

tab parent; however it will not automatically select a tab for the user. If you want WOW to

automatically select one of the tabs by default, you can specify this in the Tabs properties group:

Tabs {

defaultTab: C_HISTORY;

}

The above property group instructs WOW to initially display the C_HISTORY tab. In our example, this

is the tab labeled "History." C_HISTORY is the internal name of the derived field associated with the

operation for retrieving the customer's history. The defaultTab property is specified in the tabbed

operation (not any of the tab data operations).

Tab Fields

By default, any fields in the details of the tabbed operation which have associated operations are rendered

as tabs. However, in some cases you may have fields with associated operations which are not tabs. You

can use the tabFieldsExclude and tabFields properties to control which fields are displayed as tabs:

Tabs {

defaultTab: C_HISTORY;

tabFields: FIELD1, FIELD2;

}

In the above property group, fields FIELD1 and FIELD2 will be the only fields rendered as tabs, no matter

how many other fields have association operations.

Tabs {

defaultTab: C_HISTORY;

tabFieldsExclude: FIELD_A, FIELD_B;

}

In the above property group, fields FIELD_A and FIELD_B will not be displayed as tabs, even if the have

associated operations. The tabFieldsExclude and tabFields properties are always specified in the tabbed

operation (not the tab data operations).

Tabs Per Line

If an operation has a large number of tabs, WOW may need to use multiple lines on the screen to display

all of the tabs:

By default, WOW will display a maximum of 10 tabs on the same line. You can change the maximum number of

tabs on a single line with the maxTabsPerLine property:

Tabs {

maxTabsPerLine: 7;

}

The maxTabsPerLine property is specified in the tabbed operation, not the tab data operations.

TAGS: layout