Parameters null when ObjectDataSource method is called

3 posts, 0 answers
  1. Dustin
    Dustin avatar
    79 posts
    Member since:
    Oct 2012

    Posted 29 Feb Link to this post

    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. Stef
    Stef avatar
    2914 posts

    Posted 03 Mar Link to this post

    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.

    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
  3. DevCraft R3 2016 release webinar banner
  4. Dustin
    Dustin avatar
    79 posts
    Member since:
    Oct 2012

    Posted 04 Mar in reply to Stef Link to this post

    I was missing the mapping from the ReportParameters to the ObjectDataSource parameters
Back to Top