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

Exec doesn't work in table/list - invalid scope

3 Answers 528 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Casper
Top achievements
Rank 1
Casper asked on 14 Aug 2019, 12:12 PM
Hi,

If I want to use the Exec function in a table- or list row (outside group) to access data in context of a different scope (Report2, which is the name of the report item),
i get an error that the scope does not exist (see attachment).

My expression is in this format: [= Exec("Report2", Sum(Fields.theFieldName))]

Shouldn't this be possible, or am I wrong?

Thanks,

Casper

3 Answers, 1 is accepted

Sort by
0
Casper
Top achievements
Rank 1
answered on 14 Aug 2019, 12:12 PM
And here is the attachment..
0
Silviya
Telerik team
answered on 19 Aug 2019, 06:38 AM
Hello Casper,

Please check Expressions Scope. The report and Table items are data items, and they define separate data scopes not accessible to each other.
The Exec function can be used in the current scope e.g. the report where the set scope is the report, or in a section where the set scope is the section, parent section or the report; but not in a Table item if the set scope of the function is the report or the container section, nor if the expression is used in a report section but the set scope is of a nested Table item.

Best Regards,
Silviya
Progress 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
0
Casper
Top achievements
Rank 1
answered on 19 Aug 2019, 07:42 AM
Alright, thanks for the clear reply :)

Best, 
Casper
Tags
Report Designer (standalone)
Asked by
Casper
Top achievements
Rank 1
Answers by
Casper
Top achievements
Rank 1
Silviya
Telerik team
Share this question
or