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

Parameters null when ObjectDataSource method is called

2 Answers 155 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dustin
Top achievements
Rank 1
Dustin asked on 29 Feb 2016, 10:34 PM
I set the reportSource parameters in Javascript and they get passed to the WebApi, but when the method my Report's ObjectDataSource is wired up to is called, the parameters are null. I setup the report parameters and the objectdatasource parameters and made sure they all have the same name. I have been used JustDecompile to see why the parameters don't get passed all the way through and it seems as though in the end the reportsource parameters are empty.

2 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 03 Mar 2016, 10:53 AM
Hello Dustin,

Please check if the ObjectDataSource component is configured to map the custom method's arguments to report parameters - ObjectDataSource Wizard (step 3), and if the types are synchronized - Report Parameters. Then test running preview in the Report Designer.

If the preview at design-time is successful, and only the preview in viewer fails, test to upgrade Newtosoft.Json.dll via VS Nuget Packages manager.


The recommended troubleshooting approach is to use Fiddler or other proxy tool to check the requests, their responses and statuses. Information about requests and responses content can be seen in Fiddler - Inspectors - Request/Response - Raw tabs. Thus you can check if report parameters' values are submitted correctly - if the message is constructed correctly.


Let us know if you need any further help.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Dustin
Top achievements
Rank 1
answered on 04 Mar 2016, 03:11 PM
I was missing the mapping from the ReportParameters to the ObjectDataSource parameters
Tags
General Discussions
Asked by
Dustin
Top achievements
Rank 1
Answers by
Stef
Telerik team
Dustin
Top achievements
Rank 1
Share this question
or