GroupCondition
GroupCondition specifies what kind of change in the Group Condition Field will trigger the creation of a group.
Syntax
[form.]Report.GroupCondition(SequentialIndex%)
[= group; field; condition; sortDirection$]
For example:
CrystalReport1.GroupCondition(0) = "GROUP1;{order details.ORDER
ID};ANYCHANGE;A"
«Specifies that any change in the ordernum field in Group1 will trigger a new grouping.»
Remarks
Refer to the following tables for parameter values for this property:
| Parameter
| Description
| Values expected
|
group
| The group in which you want to set the group condition.
| The outermost group on the report is GROUP1, the next group is GROUP2, etc.
|
field
| The name of the field that triggers a grouping whenever its value changes.
| Enter the name in the following format: {table.FIELDNAME}
|
condition
| Enter the condition that triggers the grouping.
| See the tables below.
|
sortDirection
| The direction in which groups are to be sorted.
| A = Ascending, D = Descending.
|
| Condition (Date Fields)
| Condition Code
|
| Daily
| DAILY
|
| Weekly
| WEEKLY
|
| Bi-weekly
| BIWEEKLY
|
| Semi-monthly
| SEMIMONTHLY
|
| Monthly
| MONTHLY
|
| Quarterly
| QUARTERLY
|
| Semi-annually
| SEMIANNUALLY
|
| Annually
| ANNUALLY
|
| Condition (Boolean Fields)
| Condition Code
|
| To Yes
| TOYES
|
| To No
| TONO
|
| Every Yes
| EVERYYES
|
| Every No
| EVERYNO
|
| Next Is Yes
| NEXTISYES
|
| Next Is No
| NEXTISNO
|
| Condition for all other data types
|
| Any Change
| ANYCHANGE
|
Data Type
Array of strings
Availability
Runtime only
Related Report Engine Functions
PESetGroupCondition