property condition not working

Stimulsoft Reports.NET discussion
Post Reply
User avatar
dmasterplan
Posts: 143
Joined: Thu Mar 17, 2022 4:04 am
Location: Philippines

property condition not working

Post by dmasterplan »

Hi,

How to make property condition work when Sum (SumD) is involved?

I want the text component to turn red when Sum is less than zero. (highlighted in red)
SumD(DateDiff(dsPackages.tendercalldate,dsPackages.acttendcalldate).Days) < 0

I did it in the other text components (highlighted in blue),
(DateDiff(dsPackages.tendercalldate,dsPackages.acttendcalldate).Days) < 0
but didn't work when Sum is involved.

Please help. I badly need to solve this.
Attachments
property condition 1.png
property condition 1.png (105.01 KiB) Viewed 729 times
property condition 2 (output).png
property condition 2 (output).png (7.71 KiB) Viewed 729 times
User avatar
dmasterplan
Posts: 143
Joined: Thu Mar 17, 2022 4:04 am
Location: Philippines

Re: property condition not working

Post by dmasterplan »

Hi,

I solved it anyway, I just put the name of the datasource as the first argument in SumD
from
SumD(DateDiff(dsPackages.tenderlettingdate,dsPackages.acttendletdate).Days) < 0
making it
SumD(dsPackages,DateDiff(dsPackages.tenderlettingdate,dsPackages.acttendletdate).Days) < 0
SumD(datasourceName,DateDiff(dsPackages.tenderlettingdate,dsPackages.acttendletdate).Days) < 0

Thank you
Last edited by dmasterplan on Sat Apr 30, 2022 7:15 am, edited 1 time in total.
Max Shamanov
Posts: 991
Joined: Tue Sep 07, 2021 10:11 am

Re: property condition not working

Post by Max Shamanov »

Hello,

Ok.
Please let us know if you need any additional help.

Thank you.
User avatar
dmasterplan
Posts: 143
Joined: Thu Mar 17, 2022 4:04 am
Location: Philippines

Re: property condition not working

Post by dmasterplan »

Max Shamanov wrote: Sat Apr 30, 2022 5:59 am Hello,

Ok.
Please let us know if you need any additional help.

Thank you.
I will surely ask questions whenever I get issues and don't know how to resolve it :)

Great Thanks!
Max Shamanov
Posts: 991
Joined: Tue Sep 07, 2021 10:11 am

Re: property condition not working

Post by Max Shamanov »

Hello,

You are welcome!
Post Reply