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

Value Report.Parameter not passed in Q1 2013?

4 Answers 45 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ferry Engels
Top achievements
Rank 2
Ferry Engels asked on 28 May 2013, 02:28 PM
Hello,

I just made a simple report which use a report.parameter to select some data.
The parameter is filled through a DataSouce with a Name and a Id field.
When i switch to preview the parameter box is filled and i can select a name from it.
Then clicking the Preview button a empty report is shown.
The value of the parameter is not passed or, when a extract the value from the parameter.value there is nothing.
I do this in the NeedDataSource Event before building the query.

Dim Id As String = Report.ReportParameters("Parameter1").Value.ToString

This worked before in older reports but now, whatever i try there is no value.
Is something changed??

I'm glad if somebody can help me before i spent a lot of time on something changed or a bug.

Regards,

Ferry



4 Answers, 1 is accepted

Sort by
0
Ricardo
Top achievements
Rank 2
answered on 28 May 2013, 04:20 PM
Kind of difficult to figure out the problem without code.

0
Squall
Top achievements
Rank 1
answered on 29 May 2013, 02:23 PM
You have to use the report processing parameters.
//Take the Telerik.Reporting.Processing.Report instance
   Telerik.Reporting.Processing.Report report = (Telerik.Reporting.Processing.Report)sender;
 
   // Transfer the value of the processing instance of ReportParameter
   report.Parameters["ManagerID"].Value;

http://www.telerik.com/help/reporting/designing-reports-parameters-programmatic-control.html
0
Ferry Engels
Top achievements
Rank 2
answered on 04 Jul 2013, 02:58 PM
Yes that works in the needdatasouce event of the report.
Not in the needdatasource event of the crosstab.
Before Q1 2013 no problem but now it returns nothing.

Someone any idea?

 
0
Stef
Telerik team
answered on 05 Jul 2013, 02:32 PM
Hi everyone,

As described in the Using Report Events help article, current report parameters values can be get in events from the processing equivalent of the report as shown in the following code snippet:
//Take the Telerik.Reporting.Processing.Table instance
   var table= (Telerik.Reporting.Processing.Table)sender;
  
   // Transfer the value of the Report processing instance of ReportParameter
   table.Report.Parameters["ManagerID"].Value;

Regards,
Stef
Telerik

Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

Tags
General Discussions
Asked by
Ferry Engels
Top achievements
Rank 2
Answers by
Ricardo
Top achievements
Rank 2
Squall
Top achievements
Rank 1
Ferry Engels
Top achievements
Rank 2
Stef
Telerik team
Share this question
or