CrosstabDialog method (DataWindows)
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.
Controls
DataWindow type |
Method applies to |
---|---|
PowerBuilder |
DataWindow control |
Web ActiveX |
DataWindow control |
Syntax
[PowerBuilder]
1 |
integer <span>dwcontrol</span><span>.CrossTabDialog</span> ( ) |
[Web ActiveX]
1 |
number <span>dwcontrol</span><span>.CrossTabDialog</span> ( ) |
Argument |
Description |
---|---|
dwcontrol |
A reference to a DataWindow control |
Return Values
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
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:
1 |
dw_1.<span>CrosstabDialog</span>() |