Subreport with no data link fails? Empty ReportName field.
Is there currently no way to include a subreport for a report that has no data link? Acccording to documentation:
"If your subreport contains linked data, set the ReportName property to the ID of the appropriate data link configured in your Geocortex Essentials site."If the subreport does not contain linked data, like a summary of data sources we should be able to leave ReportName blank? Correct?
However, if you leave ReportName blank the report fails with the error.
Print error: Exception has been thrown by the target of an invocation. Specified datatable '' does not exist in the dataset. That "" is the empty ReportName field. The subreport is still looking for a data table in the data set with the string supplied by ReportName.
I have worked around this in the past be adding junk table name and row so the subreport will function. Is there a differnet way to do this?
0
-
Hi Tyson,
The documentation means, if you have a linked data to the data source of the main report, then you can directly set the ReportName property to the ID of data link that you have configured in Geocortex.
But if you don't have linked data, you still want to display some data in sub report, then you will have to tell your sub report what is the datasource that it has to read data from.
Therefore you have to set the ReportName to the table name that is the datasource for your sub report.
Regards,
Mohammad Ashraf0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar