Conditional function works different on .NET

Stimulsoft Reports.NET discussion
Post Reply
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Conditional function works different on .NET

Post by hugo »

Hello,

Please see the attachments.
It's a condition on a field on a group footer.

It works perfectly on Flex but works opposite on .NET
Attachments
Screenshot 2019-04-11 at 08.53.39.png
Screenshot 2019-04-11 at 08.53.39.png (77.09 KiB) Viewed 1801 times
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: Conditional function works different on .NET

Post by Lech Kulikowski »

Hello,

In Conditions, you should use Totals.Sum() functions instead Sum().

Thank you.
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Re: Conditional function works different on .NET

Post by hugo »

Hello,

I already tried that before the initial post :(
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: Conditional function works different on .NET

Post by Lech Kulikowski »

Hello,

Please send us a sample report with test data which reproduces the issue for analysis.

Thank you.
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Re: Conditional function works different on .NET

Post by hugo »

Hi found myself the solution:

This version works with Flex solution but not with .NET:
Sum(Accounting.Credit01-Accounting.Debit01) == 0

On the other hand, this version works with both solutions:
Sum(DataBand1, Accounting.Credit01-Accounting.Debit01) == 0

The only difference is that I tell the report engine where is the data band.

It works for me, so I'm happy.

Thanks.
Andrew
Posts: 4104
Joined: Fri Jun 09, 2006 3:58 am

Re: Conditional function works different on .NET

Post by Andrew »

Thank you, Hugo, for sharing your experience in solving the issue.
Post Reply