How to populate a Variable List
Posted: Wed May 10, 2017 5:25 am
I'd be grateful for some advice on how to pass a list as a parameter to my report.
From the Parameter panel on my report, the user will select from a list of months from a dropdown list.
The list will be dynamically created and will be constructed like this:
Key, Value
May 2017, 0
April 2017, -1
March 2017, -2
February 2017, -3
January 2017, -4
etc
I'm familiar with passing a string as a parameter to my report;
e.g.
How do I pass a list of keys and values to populate the parameter variable list?
Thanks
James
From the Parameter panel on my report, the user will select from a list of months from a dropdown list.
The list will be dynamically created and will be constructed like this:
Key, Value
May 2017, 0
April 2017, -1
March 2017, -2
February 2017, -3
January 2017, -4
etc
I'm familiar with passing a string as a parameter to my report;
e.g.
Code: Select all
reportToView.Dictionary.Variables.Add(new StiVariable("QueryStringParameters", "EntityId", typeof (int), entityId, true));
Thanks
James