Page 1 of 1

Restarting running total

Posted: Tue Feb 19, 2019 9:19 pm
by FrenkR
Hello,
is there any setting to "reset" running total value inside report when "Reset page number" is used inside "group band"?

using 2019.2, .net core (latest)

Rgds,
Frenk

Re: Restarting running total

Posted: Wed Feb 20, 2019 6:52 pm
by Lech Kulikowski
Hello,

Unfortunately, no.
As a way, you can use your own variable for running total calculation and set it to 0 as you needed.

Thank you.

Re: Restarting running total

Posted: Wed Feb 20, 2019 8:49 pm
by FrenkR
but this is .net core, so scripting is not working?

Re: Restarting running total

Posted: Thu Feb 21, 2019 5:18 am
by HighAley
Hello, Frenk.

It's possible to use any expression in the Compilation mode.
There is no classic compilation in .Net Core. At all.
So it's possible to use our Interpreter.

You could use the Reset Page Number property of any band.

Thank you.

Re: Restarting running total

Posted: Thu Feb 21, 2019 7:17 am
by FrenkR
Can you prepare a simple example to show how to do that, please?

Re: Restarting running total

Posted: Thu Feb 21, 2019 12:23 pm
by Lech Kulikowski
Hello,

The sample report in the attachment.

Thank you.

Re: Restarting running total

Posted: Fri Feb 14, 2020 6:54 pm
by JHenn
In that sample report, the {SumRun += Products.UnitPrice} statement shows a "Syntax Error" message on Check, but it does execute.

Re: Restarting running total

Posted: Wed Feb 19, 2020 8:52 pm
by Lech Kulikowski
Hello,

Please try to change on:
{SumRun = SumRun + Products.UnitPrice}

Thank you.