doodledump
Programmer
- Sep 4, 2024
- 4
So I've got a report that tracks employee currency based on position. One position uses a different method (Think tracking hours VS tracking an activity) to record their currency and I've moved the calculations for that position to a subreport. I need the subreport to return a running total of how many times an action was performed per person. This running total is working fine in the subreport, but when I pass it back to the main report it only passes the last value back.
For Example:
Person1: Action1
Person1: Action2
Person1: Action3
Running Total = 3
Person2: Action1
Running Total = 1
Only has Running Total returning 1 six times (I suspect because there are six "rows"). Any help is appreciated!
Extra Info: I'm using visual studio 2013 with Crystal Reports plugin version 13.0.13. These are my shared variable formulas:
// @MainFormula
WhilePrintingRecords;
Shared NumberVar Count;
Count
// @SubFormula
WhilePrintingRecords;
Shared NumberVar Count := {#RTotalCount}
The main reports layout is: GroupHeader(Date) - Subreport, Details - @MainFormula, GroupFooter(Date) - Main Crosstab
and the subreports layout is: ReportHeader - Column Names, Details - subreport details, GroupFooter(Person) @SubFormula
For Example:
Person1: Action1
Person1: Action2
Person1: Action3
Running Total = 3
Person2: Action1
Running Total = 1
Only has Running Total returning 1 six times (I suspect because there are six "rows"). Any help is appreciated!
Extra Info: I'm using visual studio 2013 with Crystal Reports plugin version 13.0.13. These are my shared variable formulas:
// @MainFormula
WhilePrintingRecords;
Shared NumberVar Count;
Count
// @SubFormula
WhilePrintingRecords;
Shared NumberVar Count := {#RTotalCount}
The main reports layout is: GroupHeader(Date) - Subreport, Details - @MainFormula, GroupFooter(Date) - Main Crosstab
and the subreports layout is: ReportHeader - Column Names, Details - subreport details, GroupFooter(Person) @SubFormula