Apply Apprearance Conditions to Expression in Group

Stimulsoft Reports.Silverlight discussion
Locked
ElkeFiby
Posts: 5
Joined: Mon Dec 16, 2013 7:49 am

Apply Apprearance Conditions to Expression in Group

Post by ElkeFiby »

I have created a Report with Groups. I summarize the Values of this group and show the value. This works fine. Now I want to color the value red when ist below 10. It doesn't do anything. Only when I set as Expression Avg(BussinessObject.Var) == 0 the value of the TextBox gets red (if < 10 then not).
I have tried it with the examples which are online and with them it works fine. The difference between the excamples and my solution is, that I have a WCF-Service behind which gets the data from a database and compiles the Report.
Can someone help me with this?
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Apply Apprearance Conditions to Expression in Group

Post by HighAley »

Hello.

Sorry, but we couldn't reproduce your issue.
Please, send us a sample working project which reproduces the issue for analysis.

Thank you.
ElkeFiby
Posts: 5
Joined: Mon Dec 16, 2013 7:49 am

Re: Apply Apprearance Conditions to Expression in Group

Post by ElkeFiby »

I have modified the sample project you have online to work like my project. (It is not the cleanest code, but it should do)
Please run the Designer-Projekts and klick at open to load the report. The Total-Sum should be red when lesser than 400 and green when greater than 400 and grey when 0. It always gets grey no matter which value the Total-Sum has.
Can you please have a look at it?
Attachments
WCF - Silverlight.zip
Sample Project
(7.02 MiB) Downloaded 261 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Apply Apprearance Conditions to Expression in Group

Post by Alex K. »

Hello,

Please try to use the Totals.Sum() function in Conditions:

Code: Select all

Totals.Sum(Product, Product.price*Product.unitsInStock)>400
Thank you.
ElkeFiby
Posts: 5
Joined: Mon Dec 16, 2013 7:49 am

Re: Apply Apprearance Conditions to Expression in Group

Post by ElkeFiby »

Thanks, with Totals.Sum it works fine.
Andrew
Posts: 4104
Joined: Fri Jun 09, 2006 3:58 am

Re: Apply Apprearance Conditions to Expression in Group

Post by Andrew »

Hello,

Thank you for the reply.
Locked