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

4 posts, 0 answers
  1. Casper
    Casper avatar
    11 posts
    Member since:
    May 2019

    Posted 14 Aug Link to this post

    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
  2. Casper
    Casper avatar
    11 posts
    Member since:
    May 2019

    Posted 14 Aug Link to this post

    And here is the attachment..
  3. Silviya
    Admin
    Silviya avatar
    413 posts

    Posted 19 Aug Link to this post

    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
  4. Casper
    Casper avatar
    11 posts
    Member since:
    May 2019

    Posted 19 Aug in reply to Silviya Link to this post

    Alright, thanks for the clear reply :)

    Best, 
    Casper
Back to Top