I have this report, that use hierarchical instances of business objects (eg. Master details) as DataSource.
I display the entire tree using a system of report and sub-reports. Data is passed from the parent report to the child report by setting a Binding (using Report.Bindings property) on the "DataSource" property of the child report.
Now, I need to display the last leaf item "running count" or "row number" , in relation to the topmost report. I've tried to use the "RowNumber", "RunningValue", "Exec" functions to resolve my problem, but it keep giving me this "Invalid Scope" error for all functions.
So in the details of my "leaf" report (3rd level of sub-report), I've tried use theses expressions to display the "running count" of leaf items. No success. They all end up with an "InvalidScope" error.
1) =Exec("MasterReport",Count(1))
2) =RunningValue("MasterDetailSection", Count(Fields.Name))
3) =RowNumber("MasterReportName")
4) =RowNumber("MasterDetailSection")
Where:
- "MasterReport" is the value of the Report.Name property of my master report
- "MasterReportName" is the Name property of the DetailSection of the master report.
Can anyone help me with this ?
I display the entire tree using a system of report and sub-reports. Data is passed from the parent report to the child report by setting a Binding (using Report.Bindings property) on the "DataSource" property of the child report.
Now, I need to display the last leaf item "running count" or "row number" , in relation to the topmost report. I've tried to use the "RowNumber", "RunningValue", "Exec" functions to resolve my problem, but it keep giving me this "Invalid Scope" error for all functions.
So in the details of my "leaf" report (3rd level of sub-report), I've tried use theses expressions to display the "running count" of leaf items. No success. They all end up with an "InvalidScope" error.
1) =Exec("MasterReport",Count(1))
2) =RunningValue("MasterDetailSection", Count(Fields.Name))
3) =RowNumber("MasterReportName")
4) =RowNumber("MasterDetailSection")
Where:
- "MasterReport" is the value of the Report.Name property of my master report
- "MasterReportName" is the Name property of the DetailSection of the master report.
Can anyone help me with this ?