Report Summary's Value op_Div(Decimal Object) Error

Stimulsoft Ultimate discussion
Post Reply
harundemir13
Posts: 28
Joined: Thu Aug 01, 2019 1:22 pm

Report Summary's Value op_Div(Decimal Object) Error

Post by harundemir13 »

Hello,
I use GroupHeaderBand in the report. I want to get the quantity rate and I show this value in DataBand.
It possible using {colSumRunnig(DATA.quantity)} with GroupHeaderBand and it is not working true value by {Sum(DATA.Quantity)}.
After, I get an error message "There is no matching overloaded method for 'op_Div(Decimal.Object)' when I wrote this formula {IIF(DATA.quantity==0,0,DATA.quantity/colSumRunning(DATA.quantity))}.

In Summary, I want to get quantity rate values for all report quantity values and I can use GroupHeaderBand and I should be able to show rate value in DataBand. How use a formula for quantity rate?
Thank you,
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: Report Summary's Value op_Div(Decimal Object) Error

Post by Lech Kulikowski »

Hello,

Please check the following expression:
{(DATA.quantity==0 ? 0 : DATA.quantity/(decimal)colSumRunning(DATA.quantity))}

Thank you.
harundemir13
Posts: 28
Joined: Thu Aug 01, 2019 1:22 pm

Re: Report Summary's Value op_Div(Decimal Object) Error

Post by harundemir13 »

Hello,
Thank you for your response, it worked on designer. As I understand colsum function not supported in .net because it didn't work in .net app.
Thank you.
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: Report Summary's Value op_Div(Decimal Object) Error

Post by Lech Kulikowski »

Hello,

Could you explain your issue in more detail?

Thank you.
harundemir13
Posts: 28
Joined: Thu Aug 01, 2019 1:22 pm

Re: Report Summary's Value op_Div(Decimal Object) Error

Post by harundemir13 »

Hello,
Colsum function ran in the report with using this {(DATA.quantity==0 ? 0 : DATA.quantity/(decimal)colSumRunning(DATA.quantity))} but this function's use didn't print value in the report when preview .net app.
Thank you.
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: Report Summary's Value op_Div(Decimal Object) Error

Post by Lech Kulikowski »

Hello,

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

Thank you.
harundemir13
Posts: 28
Joined: Thu Aug 01, 2019 1:22 pm

Re: Report Summary's Value op_Div(Decimal Object) Error

Post by harundemir13 »

Hello,
I don't send a report but I got the same situation in demo.stimulsoft.com with attachment file
Thank you
NestedGroups.mrt
(289.24 KiB) Downloaded 203 times
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: Report Summary's Value op_Div(Decimal Object) Error

Post by Lech Kulikowski »

Hello,

Unfortunately, cSum is not implemented in the Interpretation mode. Sorry.

Thank you.
harundemir13
Posts: 28
Joined: Thu Aug 01, 2019 1:22 pm

Re: Report Summary's Value op_Div(Decimal Object) Error

Post by harundemir13 »

Hello,
Thank you for your response.
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: Report Summary's Value op_Div(Decimal Object) Error

Post by Lech Kulikowski »

Hello,

You are welcome.
Post Reply