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

Subreport Parameter Null

1 Answer 256 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Christopher
Top achievements
Rank 1
Christopher asked on 23 Dec 2019, 04:55 PM

In working in the Telerik Report Designer, I am passing a field from the main report datasource to a parameter in the subreport.  I have verified that the field in the main report is not null or empty by displaying it on the report, showing a value.  But in the subreport it is getting passed as null for some reason (I know it is null and not empty because if I set Allow Nulls to false for the parameter it errors), and displaying the parameter on the subreport shows nothing.

I have searched this issue and all I can find is how to work with parameters in C# or VB.Net code, but I am not at that step yet and am just wanting to preview the report within the standalone designer.  I can get the main report to show the data it should, but the subreport is always blank due to the null parameter.

1 Answer, 1 is accepted

Sort by
0
Christopher
Top achievements
Rank 1
answered on 23 Dec 2019, 09:14 PM
I figured out the issue.  When creating the parameter within the subreport, I set the AvailableValues properties thinking this was a requirement to validate the data being passed in.  Looking at a sample subreport, I saw that this was left to none, and after doing the same with mine it worked without any further issues (on this subject at least).
Tags
General Discussions
Asked by
Christopher
Top achievements
Rank 1
Answers by
Christopher
Top achievements
Rank 1
Share this question
or