Page 1 of 1

Apply Apprearance Conditions to Expression in Group

Posted: Fri Feb 28, 2014 10:25 am
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?

Re: Apply Apprearance Conditions to Expression in Group

Posted: Mon Mar 03, 2014 8:52 am
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.

Re: Apply Apprearance Conditions to Expression in Group

Posted: Mon Mar 03, 2014 1:08 pm
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?

Re: Apply Apprearance Conditions to Expression in Group

Posted: Tue Mar 04, 2014 1:20 pm
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.

Re: Apply Apprearance Conditions to Expression in Group

Posted: Tue Mar 04, 2014 2:58 pm
by ElkeFiby
Thanks, with Totals.Sum it works fine.

Re: Apply Apprearance Conditions to Expression in Group

Posted: Wed Mar 05, 2014 11:40 am
by Andrew
Hello,

Thank you for the reply.