Home RAP

•Enhanced object ref scoping: childreport .. - How work ?

edited August 2012 in RAP
Hi

from RB14 i can see :

•Enhanced object ref scoping: childreport can access parent report objects

GREAT !

i have try.... but notthing.

Where i can to found an example ? how work ?

from Master Report i can access to value of SubReport item ?
from SubReport Report i can access to value of MainReport item ?

Comments

  • edited August 2012
    Hi Mauro,

    The new feature allows you to access the main report's objects from the
    subreport. This prevents the need to create global properties to alter
    components in the main report from a subreport.

    Example:

    Assume you have a variable in your main report's footer band named
    "Variable1". Inside the code workspace of a subreport, you can access
    the variable's value directly using the Variable1 name.

    Variable1.Value := X;

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2012
    Only subreport -> Main report

    or

    Sub-SubReport2 -> SubReport1 ?
  • edited August 2012
    This will work for all parent reports.

    Sub-Subreport2 can access components in Subreport1 and the main report.


    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.