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

How Can i get sum of ( =PageExec("textBox1",Sum(Fields.pt_id)) ) per Page ?

4 Answers 468 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ahmed Amin
Top achievements
Rank 1
Ahmed Amin asked on 24 Mar 2013, 12:32 AM
Hi all,
 I'm new with Telerik Reporting and now i get the sum of my fields " pt_id " per page with expression

=PageExec("textBox1",Sum(Fields.pt_id))

it works so good but now i want to add sum every page to the sum of next page like that

page 1:
total of " =PageExec("textBox1",Sum(Fields.pt_id)) " in page one = 100
page 2:
total of " =PageExec("textBox1",Sum(Fields.pt_id)) " in page two = 100

i want to total of page 2 will be = 200 ( 100 of page one and 100 of page two ...... ect ) not 100

i try to use

= RunningValue("Report1",Sum(Fields.pt_id))

but it works only if i write "Report1" i want to run it for every page not for report ???

i try to change "Report1" with "pageFooter" but not work - so please how can i do it ?

i'm so sorry if my English is bad but please can any one help me ?

4 Answers, 1 is accepted

Sort by
0
Ahmed Amin
Top achievements
Rank 1
answered on 24 Mar 2013, 01:30 PM
can any one help ?
0
Ahmed Amin
Top achievements
Rank 1
answered on 25 Mar 2013, 09:33 PM
What is support problem ? did you don't help any one if he not buying your product  :( :( ??
0
Ahmed Amin
Top achievements
Rank 1
answered on 27 Mar 2013, 01:57 AM
can any one help me ?

what is admin problem ?
0
IvanY
Telerik team
answered on 28 Mar 2013, 09:22 AM
Hi Ahmed,

You should be aware that threads are handled according to license and time of posting, meaning that if you post a ticket you have a guaranteed answer in 24 hours. If you post a forum thread you will receive response in 72 hours, but it is not guaranteed.

Regarding your issue - RunningValue is not a page function and therefore you will not be able to use it in the page footer. You will have to implement your own aggregate function which will receive as parameter the PageExec() function. In that function you will have to sum the new incoming value with the aggregated values and you will have to store the aggregated value somewhere - in a private field of the report or in a parameter.

Regards,
IvanY
the Telerik team

Telerik Reporting Q1 2013 available for download with impressive new visualizations. Download today from your account.

Tags
General Discussions
Asked by
Ahmed Amin
Top achievements
Rank 1
Answers by
Ahmed Amin
Top achievements
Rank 1
IvanY
Telerik team
Share this question
or