Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 78072

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

$
0
0

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

Alex

 

 


Viewing all articles
Browse latest Browse all 78072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>