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.
DataWindow type |
Method applies to |
---|---|
PowerBuilder |
DataWindow control |
Web ActiveX |
DataWindow control |
integer dwcontrol.CrossTabDialog ( )
number dwcontrol.CrossTabDialog ( )
Argument |
Description |
---|---|
dwcontrol |
A reference to a DataWindow control |
Returns 1 if it succeeds and –1 if an error occurs.
If dwcontrol is null, the method returns null.
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.
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()