Just upgraded a project to 2012.1 and now all my parameters are not working returning .
DateTime startDate = (DateTime)reportParameters["A_StartDate"].Value;DateTime endDate = (DateTime) reportParameters["B_EndDate"].Value;int option = (int) reportParameters["C_Options"].Value;
Hi,
This issue is fixed in the last 12.1 SR.
Please let me know if you have any additional question.
Best,
Leo
Hello,
I am glad that you have found a workaround for this situation.
Please in case of any future concerns regarding that matter feel free to contact us at any time.
Sincerely,
Ekaterina
Developer Support Engineer
Infragistics, Inc.
www.infragistics.com/support
I have reverted back to version 2011.2 for the time being as I do not want to have to go changing code once this gets fixed.
I will wait for the service pack before upgrading the project to 2012.1
Hello ingreyd ,
I am checking if this is still an issue for you.
If you require any further assistance please do not hesitate to ask.
Infragistics
This is a bug. It only affects 12.1. It will be fixed in the next SR.
In the meantime you can use the following workaround.
In order to get the parameter value, instead of doing:
DateTime startDate = (DateTime)reportParameters["A_StartDate"].Value;
do:
DateTime startDate = (DateTime)((Func<object>)reportParameters["A_StartDate"].Value)();
The dictionary that contains the parameter values is returning a function that returns the value instead of the value.
Sorry for the inconvenience.
Let me know if you have any other question.