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

Get report parameter value in code behind.

2 Answers 835 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jean-Francois
Top achievements
Rank 1
Jean-Francois asked on 22 Oct 2013, 06:12 PM
Hi,

I've recently migrated from Q2 2011 to Q1 2013 and I can't seem to get the value of the parameter in code behind. I use this value to get the data in the ItemDataBinding event.
And I want to get the selected value in the ItemDataBinding event, but it is always null or it keeps the value if I set it 
manually.
this
.ReportParameters["GroupBy"].Value.ToString()
If I add a textbox in the editor with its value set to :Parameters.GroupBy.Value then the selected field is bound correctly.
Thanks for you help.

Edit: In fact I just realised that the way I'm getting the parameters value doesn't work at all and isn't specific to a report parameter with available values. So I've written my question again to be less specific.

2 Answers, 1 is accepted

Sort by
0
Jean-Francois
Top achievements
Rank 1
answered on 22 Oct 2013, 07:24 PM
I've finally found out that you need to get the report from sender now.
This case can be closed.
Thanks anyway.
0
Omar
Top achievements
Rank 1
answered on 11 Oct 2018, 06:56 PM
Thanks for sharing.
Tags
General Discussions
Asked by
Jean-Francois
Top achievements
Rank 1
Answers by
Jean-Francois
Top achievements
Rank 1
Omar
Top achievements
Rank 1
Share this question
or