nlaliberte
Programmer
I'm using Crystal XI on an OLE DB connection.
This is the strangest bug I've ever encountered in a Crystal Report. Here is the situation: Group 2 has 'Use a Formula as a Group Name' selected. In that formula it states;
IF {proc.group2_type_id} = 70
THEN
IF {proc.group2_value} = -1
THEN " "
ELSE {proc.group2_display}
This seems to be working correctly, however the GroupName field is returning bad values.
The first set of groupings is correct. Group2_type_id = 70, Group2_value = 2 and Group2_display = 'Linked'. As expected, 'Linked' is appearing in the GroupName field.
For all remaining groups, Group2_type_id = 70, Group2_value = -1 and Group2_display = 'AA-Unknown', so " " should be the GroupName.
In the second set of groups, the GroupName for group 2 is appearing as " " in the header, but is displaying 'Linked' in the Detail and Footer section. This makes no sense to me as there is no place for Crystal to get 'Linked' in the dataset for those records and it is not hardcoded anywhere in the report file.
This behavior continues for each set of groupings on that page, however when a new starts, the Detail and Footer sections correctly display as " ".
I'll try to illustrate what it looks like below. Note that all I'm putting next to the sections is the GroupName field.
Page 1:
GH1 Company 1
GH2 Linked
D Linked
D Linked
D Linked
GF2 Linked Totals
GF1 Company 1 Totals
GH 1 Company 2
GH2
D Linked
D Linked
D Linked
GF2 Linked Totals
GF1 Company 2 Totals
GH1 Company 3
GH2
D Linked
D Linked
PAGE 2
D
GF2
GF1 Company 3 Totals:
GH1 Company 4
GH2
D
D
D
GF2
GF1 Company 4 Totals:
And this is what it should look like...
Page 1:
GH1 Company 1
GH2
D
D
D
GF2
GF1 Company 1 Totals
GH 1 Company 2
GH2
D
D
D
GF2
GF1 Company 2 Totals
GH1 Company 3
GH2
D
D
PAGE 2
D
GF2
GF1 Company 3 Totals:
GH1 Company 4
GH2
D
D
D
GF2
GF1 Company 4 Totals:
Does anyone have any ideas? I almost want to say this is an issue within Crystal...
This is the strangest bug I've ever encountered in a Crystal Report. Here is the situation: Group 2 has 'Use a Formula as a Group Name' selected. In that formula it states;
IF {proc.group2_type_id} = 70
THEN
IF {proc.group2_value} = -1
THEN " "
ELSE {proc.group2_display}
This seems to be working correctly, however the GroupName field is returning bad values.
The first set of groupings is correct. Group2_type_id = 70, Group2_value = 2 and Group2_display = 'Linked'. As expected, 'Linked' is appearing in the GroupName field.
For all remaining groups, Group2_type_id = 70, Group2_value = -1 and Group2_display = 'AA-Unknown', so " " should be the GroupName.
In the second set of groups, the GroupName for group 2 is appearing as " " in the header, but is displaying 'Linked' in the Detail and Footer section. This makes no sense to me as there is no place for Crystal to get 'Linked' in the dataset for those records and it is not hardcoded anywhere in the report file.
This behavior continues for each set of groupings on that page, however when a new starts, the Detail and Footer sections correctly display as " ".
I'll try to illustrate what it looks like below. Note that all I'm putting next to the sections is the GroupName field.
Page 1:
GH1 Company 1
GH2 Linked
D Linked
D Linked
D Linked
GF2 Linked Totals
GF1 Company 1 Totals
GH 1 Company 2
GH2
D Linked
D Linked
D Linked
GF2 Linked Totals
GF1 Company 2 Totals
GH1 Company 3
GH2
D Linked
D Linked
PAGE 2
D
GF2
GF1 Company 3 Totals:
GH1 Company 4
GH2
D
D
D
GF2
GF1 Company 4 Totals:
And this is what it should look like...
Page 1:
GH1 Company 1
GH2
D
D
D
GF2
GF1 Company 1 Totals
GH 1 Company 2
GH2
D
D
D
GF2
GF1 Company 2 Totals
GH1 Company 3
GH2
D
D
PAGE 2
D
GF2
GF1 Company 3 Totals:
GH1 Company 4
GH2
D
D
D
GF2
GF1 Company 4 Totals:
Does anyone have any ideas? I almost want to say this is an issue within Crystal...