Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

GroupCalc – PB Docs 150 – PowerBuilder Library

GroupCalc – PB Docs 150

GroupCalc method (DataWindows)

Description

Recalculates the breaks in the grouping levels in a DataWindow.

Controls

DataWindow type

Method applies to

PowerBuilder

DataWindow control, DataWindowChild object, DataStore
object

Web

Server component

Web ActiveX

DataWindow control, DataWindowChild object

Syntax

[PowerBuilder]

[Web DataWindow server component]

[Web ActiveX]

Argument

Description

dwcontrol

A reference to a DataWindow control,
DataStore, or child DataWindow

Return Values

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

If dwcontrol is null, in PowerBuilder
and JavaScript the method returns null.

Usage

Use GroupCalc to force the DataWindow object
to recalculate the breaks in the grouping levels after you have
added or modified rows in a DataWindow.

GroupCalc does not sort the data before
it recalculates the breaks. Therefore, unless you populated the
DataWindow in a sorted order, call the Sort method
to sort the data before you call GroupCalc.

Examples

This code imports new rows from a file into the DataWindow
dw_emp and then recalculates the group breaks for dw_emp:

See Also


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x