YANKRAY
Technical User
- Nov 7, 2003
- 283
Using CR 10.0
I have a report (AVG DAYS) that calculates the Avg Start Day, and the Avg Flow Days for a Work card that has multiple repeats.
The report is grouped by the WORK_CARD so only the Work Card number, Avg Start Day, and Avg Flow Days is shown.
I have another report (WO PLAN) that has each Work Card in the Details section. It is grouped by AREA then by STATION and the Detail work cards follow.
I am trying to bring in the Avg Start Day and Avg Flow Day from the (AVG DAYS) report for each WORK_CARD.
I created the Shared Variable for the Avg Flow Days
WhilePrintingRecords;
Shared NumberVar AVGFLOWDAY;
AVGFLOWDAY := Average ({@Flow Days}, {AAII_WORK_ORDER_INFO.WORK_CARD_NO});
AVGFLOWDAY
When this is placed in the (AVG DAYS) report the result is correct.
When I insert the AVG DAYS report as a subreport into the WO Plan report, the Shared varaiable formula when placed in the Details line shows 0.0.
WhilePrintingRecords;
Shared NumberVar
AVGFLOWDAY := AVGFLOWDAY
I have placed the Sub-report in every location I could but still 0.0 or the sub-report runs and runs.
Any assistance would be appreciated.
Thanks,
Ray
I have a report (AVG DAYS) that calculates the Avg Start Day, and the Avg Flow Days for a Work card that has multiple repeats.
The report is grouped by the WORK_CARD so only the Work Card number, Avg Start Day, and Avg Flow Days is shown.
I have another report (WO PLAN) that has each Work Card in the Details section. It is grouped by AREA then by STATION and the Detail work cards follow.
I am trying to bring in the Avg Start Day and Avg Flow Day from the (AVG DAYS) report for each WORK_CARD.
I created the Shared Variable for the Avg Flow Days
WhilePrintingRecords;
Shared NumberVar AVGFLOWDAY;
AVGFLOWDAY := Average ({@Flow Days}, {AAII_WORK_ORDER_INFO.WORK_CARD_NO});
AVGFLOWDAY
When this is placed in the (AVG DAYS) report the result is correct.
When I insert the AVG DAYS report as a subreport into the WO Plan report, the Shared varaiable formula when placed in the Details line shows 0.0.
WhilePrintingRecords;
Shared NumberVar
AVGFLOWDAY := AVGFLOWDAY
I have placed the Sub-report in every location I could but still 0.0 or the sub-report runs and runs.
Any assistance would be appreciated.
Thanks,
Ray