CrosstabDialog

Description

Displays the Crosstab Definition dialog box so the user can modify the definition of a crosstab DataWindow at runtime. The dialog box is the one you use in the DataWindow painter to define the crosstab.

Applies to

DataWindow type

Method applies to

PowerBuilder

DataWindow control

Web ActiveX

DataWindow control

Syntax

PowerBuilder

integer dwcontrol.CrossTabDialog ( ) 

Web ActiveX

number dwcontrol.CrossTabDialog ( )

Argument

Description

dwcontrol

A reference to a DataWindow control

Returns

Returns 1 if it succeeds and –1 if an error occurs.

If dwcontrol is null, the method returns null.

Usage

If the style of the DataWindow object in the DataWindow control is not crosstab, CrosstabDialog has no effect. You must connect to a database and set the DataWindow control’s transaction object before you call CrossTabDialog.

Examples

Example 1

This statement in the script for the CommandButton cb_define displays the Crosstab Definition dialog so the user can modify the definition of the crosstab DataWindow object in dw_1:

dw_1.CrosstabDialog()