This is a migrated thread and some comments may be shown as answers.

Report expression

1 Answer 97 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mac
Top achievements
Rank 2
Mac asked on 23 Apr 2008, 10:28 AM
Hi, 

struggling to get a textbox expression to work, can anyone point me in the right direction?

Getting: #ERROR# Unable to cast object of type 'BinaryFunc' to type 'UnaryFunc'.

From expression = ((Fields.Total - Fields.Included) / Fields.Total) * 100

Thanks
Mac

1 Answer, 1 is accepted

Sort by
0
Accepted
Svetoslav
Telerik team
answered on 24 Apr 2008, 09:52 AM
Hello Mac,

To my greatest regret it seems that we have introduced this problem with the Q1 2008 release. It is already logged in our bug tracking system and will be fixed in the upcoming service pack due in a couple of weeks.

Fortunately there is an easy way to workaround this problem in your specific case. This expression should produce the same result:

=100 - Fields.Included * 100/Fields.Total 

In case the things are more complicated you still can use an user defined function to perform the calculations.

Please accept our apologies for the temporary inconvenience. I have updated your account with some Telerik points.
 

Best wishes,
Svetoslav
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Mac
Top achievements
Rank 2
Answers by
Svetoslav
Telerik team
Share this question
or