A few things I forgot to mention are;
To display a simple report total I create a another formula
DisplayReportTotal which is basically:
Whileprintingrecords;
Numbervar TotalReport;
TotalReport;
If you are grouping, I create a InitGroupVars formula to reset the
totals in the group header (Hidden field) like this:
Whileprintingrecords;
Numbervar TotalGroup := 0;
Hope this helps,
BB
From: Butler, Bruce
Sent: Tuesday, October 26, 2010 7:30 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Quick Shared Var question
You can create a formula to maintain a sharedvar total. There is a
trick to it. Below is an example of a formula I use. In order for this
to work correctly, the sub report needs to be in a preceding section.
In this example, I have a subreport in Group Header #4a, and the
formula in Group Header #4b. You could do the same with detail lines
if you are not using grouping (i.e. subreport in Detail a followed by
formula in Detail b).
Whileprintingrecords;
Shared NumberVar TotalPrice;
Numbervar TotalGroup;
Numbervar TotalReport;
TotalGroup := TotalGroup + TotalPrice;
TotalReport := TotalReport + TotalPrice;
TotalPrice;
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Linda Lowney
Sent: Monday, October 25, 2010 4:06 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Quick Shared Var question
Oops, forgot about that.
From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf
Of advantage@... <mailto:advantage%40wcoil.com>
Sent: Monday, October 25, 2010 4:38 PM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: Re: [Vantage] Quick Shared Var question
No you cannot use running totals on sharedvar
Thanks. That worked. Brain-faded. I Knew that!
Sent from my Verizon Wireless BlackBerry
-----Original Message-----
From: "Vic Drecchio" <vic.drecchio@...
<mailto:vic.drecchio%40timco.aero>
<mailto:vic.drecchio%40timco.aero> >
Sender: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Date: Mon, 25 Oct 2010 16:06:33
To: <vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> >
Reply-To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] Quick Shared Var question
Can you use RT's on Vars?
I didn't think so..... I cannot on my reports using shared vars.
What I do is create another var on the main report page to tally those
detail records. You must have this "tally" formula in a subsequent
detail section (Detail b). You can suppress that detail subsection and
the formula for the var tally will still fire.
Something like this:
Shared NumberVar VarTotal := New + VarTotal
Then in your report footer display the "VarTotal"
Vic
________________________________
From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ] On
Behalf
Of Linda Lowney
Sent: Monday, October 25, 2010 3:55 PM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] Quick Shared Var question
You could use a running total.
From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ] On
Behalf
Of advantage@... <mailto:advantage%40wcoil.com>
<mailto:advantage%40wcoil.com>
<mailto:advantage%40wcoil.com>
Sent: Monday, October 25, 2010 3:08 PM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: [Vantage] Quick Shared Var question
If I have a shared numbervar at Detail publishing out from a subreport
to
main report
How do I get the Report Footer to total for those shared var
i.e.
Subreport:
Shared NumberVar ExtStdMtlCost := (RequiredQty) * (PartCost.StdMtlCost);
then on the main report in the Detail
Shared NumberVar New :=ExtdStdMtlCost;
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
To display a simple report total I create a another formula
DisplayReportTotal which is basically:
Whileprintingrecords;
Numbervar TotalReport;
TotalReport;
If you are grouping, I create a InitGroupVars formula to reset the
totals in the group header (Hidden field) like this:
Whileprintingrecords;
Numbervar TotalGroup := 0;
Hope this helps,
BB
From: Butler, Bruce
Sent: Tuesday, October 26, 2010 7:30 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Quick Shared Var question
You can create a formula to maintain a sharedvar total. There is a
trick to it. Below is an example of a formula I use. In order for this
to work correctly, the sub report needs to be in a preceding section.
In this example, I have a subreport in Group Header #4a, and the
formula in Group Header #4b. You could do the same with detail lines
if you are not using grouping (i.e. subreport in Detail a followed by
formula in Detail b).
Whileprintingrecords;
Shared NumberVar TotalPrice;
Numbervar TotalGroup;
Numbervar TotalReport;
TotalGroup := TotalGroup + TotalPrice;
TotalReport := TotalReport + TotalPrice;
TotalPrice;
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Linda Lowney
Sent: Monday, October 25, 2010 4:06 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Quick Shared Var question
Oops, forgot about that.
From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf
Of advantage@... <mailto:advantage%40wcoil.com>
Sent: Monday, October 25, 2010 4:38 PM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: Re: [Vantage] Quick Shared Var question
No you cannot use running totals on sharedvar
Thanks. That worked. Brain-faded. I Knew that!
Sent from my Verizon Wireless BlackBerry
-----Original Message-----
From: "Vic Drecchio" <vic.drecchio@...
<mailto:vic.drecchio%40timco.aero>
<mailto:vic.drecchio%40timco.aero> >
Sender: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Date: Mon, 25 Oct 2010 16:06:33
To: <vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> >
Reply-To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] Quick Shared Var question
Can you use RT's on Vars?
I didn't think so..... I cannot on my reports using shared vars.
What I do is create another var on the main report page to tally those
detail records. You must have this "tally" formula in a subsequent
detail section (Detail b). You can suppress that detail subsection and
the formula for the var tally will still fire.
Something like this:
Shared NumberVar VarTotal := New + VarTotal
Then in your report footer display the "VarTotal"
Vic
________________________________
From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ] On
Behalf
Of Linda Lowney
Sent: Monday, October 25, 2010 3:55 PM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] Quick Shared Var question
You could use a running total.
From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ] On
Behalf
Of advantage@... <mailto:advantage%40wcoil.com>
<mailto:advantage%40wcoil.com>
<mailto:advantage%40wcoil.com>
Sent: Monday, October 25, 2010 3:08 PM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: [Vantage] Quick Shared Var question
If I have a shared numbervar at Detail publishing out from a subreport
to
main report
How do I get the Report Footer to total for those shared var
i.e.
Subreport:
Shared NumberVar ExtStdMtlCost := (RequiredQty) * (PartCost.StdMtlCost);
then on the main report in the Detail
Shared NumberVar New :=ExtdStdMtlCost;
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]