I am working with 2 different databases (identical for sites) using shared variables to pass data from one to the other. This is on Crystal Report 10 connecting to Sybase 12 databases.
The problem is not making the shared variables, but rather passing them along to the main report. the main report is grouped on the timestamp. I split the group header in 2 sections.
The first group header contains my subreport. It has the same selection as the main report and is also grouped by timestamp. It contains a formula which says :
whileprintingrecords;
shared numbervar calls := Sum({iApplicationStat.CallsAnswered})
The second group header contains the formula which calls the shared report, it goes :
whileprintingrecords;
shared numbervar calls
I linked the subreport based on timestamp and tried leaving/removing the checkmark for 'Select data for Subreport based on field' but it will not work.
My issue is that I either get 0's across the board or it prints the grand total in every line instead of the result for each month. I placed a formula in group header C to reset the shared variable but it still occurs.
whileprintingrecords;
shared numbervar calls := 0
Would someone be able to tell me how to get it working properly?
Thanks in advance,
Phil
The problem is not making the shared variables, but rather passing them along to the main report. the main report is grouped on the timestamp. I split the group header in 2 sections.
The first group header contains my subreport. It has the same selection as the main report and is also grouped by timestamp. It contains a formula which says :
whileprintingrecords;
shared numbervar calls := Sum({iApplicationStat.CallsAnswered})
The second group header contains the formula which calls the shared report, it goes :
whileprintingrecords;
shared numbervar calls
I linked the subreport based on timestamp and tried leaving/removing the checkmark for 'Select data for Subreport based on field' but it will not work.
My issue is that I either get 0's across the board or it prints the grand total in every line instead of the result for each month. I placed a formula in group header C to reset the shared variable but it still occurs.
whileprintingrecords;
shared numbervar calls := 0
Would someone be able to tell me how to get it working properly?
Thanks in advance,
Phil