Hello everyone,
I am trying to pass some ReportParameters to a report class that I´ve created.
I´ve got the following set up:
Created Report Class as per Telerik best practices.
Created 2 parameters. one called CMU the other AlarmType.
On .net web app, I´ve got a set of drop down lists that should be used to filter the info required.
I´ve got a ReportViewer1 that calls the "Reporting" class.
On my code behind, I´ve got the following:
The ReportParameters in my Report class are set to not accept null, so that i know If the value is being passed or not.
In my web app, the given values ARE accepted apparently, as no error is being thrown at the moment the values are fed, however, when the Report regenerates, it says "
If i set the paramter to accept null values, it simply shows the report, but with no results.
Any help?
I am trying to pass some ReportParameters to a report class that I´ve created.
I´ve got the following set up:
Created Report Class as per Telerik best practices.
Created 2 parameters. one called CMU the other AlarmType.
On .net web app, I´ve got a set of drop down lists that should be used to filter the info required.
I´ve got a ReportViewer1 that calls the "Reporting" class.
On my code behind, I´ve got the following:
Dim
Report
As
Telerik.Reporting.Report
Report =
New
RDC_Reporting.reporting
Report.ReportParameters.Item(
"CMU"
).Value = cmu_instances.SelectedItem.Text
Report.ReportParameters.Item(
"AlarmType"
).Value =
"YELLOW"
ReportViewer1.RefreshReport()
The ReportParameters in my Report class are set to not accept null, so that i know If the value is being passed or not.
In my web app, the given values ARE accepted apparently, as no error is being thrown at the moment the values are fed, however, when the Report regenerates, it says "
Invalid value of report parameter 'CMU'.
If i set the paramter to accept null values, it simply shows the report, but with no results.
Any help?