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

Determining scope within table

2 Answers 393 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Larry
Top achievements
Rank 1
Larry asked on 23 Jul 2013, 05:50 PM
I had a report that was working, successfuly using "= RunningValue("RptPoLines",Sum(1))" to yield a running line count.

I recently found some fields that were wrapping, causing my borders to "break". The solution appeared to convert from individual fields to a table. I got everything working with the table (inside a group) except for RunningValue.

The current expression (above) yields an 'Invalid scope:' error. The only scope that I have been able to use successfully is the table name (table1). This, however, yields a new count when the group changes.

Is there any way to get a running line count in tables within groups?

I am using Telerik Reporting Q2 2013 Version 7.1.13.612.

Thanks,
Larry

2 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 26 Jul 2013, 01:44 PM
Hello Larry,

Each Table item defines a separate data scope. Thus if you need to show a continuous enumeration of rows between Table items, you need to have this information within the data set or use the event model to count how many times a TextBox item within the Table item template is bound and use that information where needed, e.g:
private void textBox6_ItemDataBinding(object sender, EventArgs e)
 {
     (sender as Telerik.Reporting.Processing.TextBox).Value = counter;
     counter++;
 }

I hope this helps.

Regards,
Stef
Telerik

Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

0
Larry
Top achievements
Rank 1
answered on 26 Jul 2013, 02:01 PM
Thank you for the response Stef.

I ended up putting the information in the dataset, but will keep your solution in mind for situations where the dataset approach is not so easy.

Tags
General Discussions
Asked by
Larry
Top achievements
Rank 1
Answers by
Stef
Telerik team
Larry
Top achievements
Rank 1
Share this question
or