How to get report parameters when I use TRDX and nullable parameters6

2 posts, 0 answers
  1. Alex
    Alex avatar
    3 posts
    Member since:
    Sep 2015

    Posted 16 Feb Link to this post

    Hi all,

    Our development team are experiencing an issue of getting nullable report parameters from report viewer (HTML 5 + RESTful + TRDX). 

    We created reporting module by Q3 2015 of Telerik reporting library and it worked util we upgraded the libraries to the latest version. Below steps shows what we done in our reporting module.

    1. Create report definition files (TRDX) by Telerik Report Design Q1 2016. 

    2. Generate reports by Telerik Reporting MVC, Restful reporting service and Trdx which is a very standard process and it works for reports which doesn't has any nullable parameters. Issues occurred only on reports that have nullable parameters.

    3. If TRDX has any nullable parameters, we will see below errors.


    Failed to load resource: the server responded with a status of 404 (Not Found) - http://localhost:56559/api/ReportServer/clients/092813-a9d7/instances - The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used.


    According to Telerik document, this error is expected since we didn't define default values for those nullable parameters. However, after users entered report parameters at report viewer, the program will get parameters from UI by Javascript then it throws an exception like $('#orionReportViewer').data('telerik_ReportViewer') is undefinded. 

     The code of getting report parameters shows as below. It worked at Q3 2015.


     var reportSourceParameters = $('#orionReportViewer').data('telerik_ReportViewer').reportSource().parameters


    Can anyone help me to solve this problem? Its very urgent. It seems that getting report parameters by JS not works anymore if trdx has nullable parameters. 

    I double checked routing settings, NewtonJson versions and both report designer and reporting libraries are upgraded to Q1 2016. Did I forget to check any thing else? 

    Thank you




  2. Katia
    Katia avatar
    241 posts

    Posted 19 Feb Link to this post

    Hello Alex,

    Telerik Reporting requires PUT and DELETE verbs. Those verbs are blocked by the WebDavModule. You need to check if you removed this module as described in this help article.

    In case you are getting error for the object obtained through $('#orionReportViewer').data('telerik_ReportViewer'), please check if there is a DIV element with such ID attribute and if the HTML5 Viewer object is already created. Debug the Javascript though the browser's Developer tools to get more details about the error on obtaining the viewer object in JS.

    On a side note, the client's (viewer's) reportSource.parameters collection is updated only after an interaction with the parameters area of the viewer. The viewer's reportSource has information only for settings passed through the client and cannot give you information about the report residing on the server.

    If the issue persists, please open a support ticket and attach a runnable sample project demonstrating this issue. This way we can check the settings and advise you further.

    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
Back to Top