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

Count Detail records

1 Answer 488 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chas
Top achievements
Rank 1
Chas asked on 15 May 2015, 04:17 PM

I have this in a text box on the page footer of a very simple 1 page report to count the rows displayed.

RowCount: {Count(Fields.AccountNo)}

Why is it always returning 0, not sure what I am missing. Is there somewhere I can look to see a working example. 

 

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 19 May 2015, 01:26 PM
Hello Chas,

In page sections you can use the PageExec data function and the scope of an item to count how many times a field running value appears on the page.

For example, if there is a TextBox item with Name="textBox1" and Value="=Fields.DepartmentId", in the PageFooter you can add a TextBox with Value = "= PageExec('textBox1',Count(Fields.DepartmentId))". The result will be how many times the Textbox appear on the page.


If you need further help, please post the report definition's code or open a support ticket and send it in a ZIP file including test data.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Chas
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or