We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ReportViewer - supplying the Parameters, getting error

Thread ID:

Created:

Updated:

Platform:

Replies:

119637 Jul 16,2015 02:47 PM UTC Apr 4,2018 04:32 PM UTC JavaScript 1
loading
Tags: ejReportViewer
Vic Alfred Inting
Asked On July 16, 2015 02:47 PM UTC

I'm using the Angular directive for the report viewer and all I need it to do is display a report with data I have already filtered. Our app has filters on top that sends a query to get the data from a service and then I want to render using the report viewer. Problem is that the report viewer shows a Parameters screen and a view report button on the side.

Can this be bypassed?

I tried to supply the parameters myself using the e-parameters attribute on the control and supplied all the values. Now the report doesn't render at, and at the second POST to the PostReportAction (supplying the data, and in this case the parameters as well), I get this response:

"Sf_Exception - System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.\r\n   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)\r\n   at Syncfusion.EJ.ReportViewer.ReportViewerModel.UpdateJsonReportModel(ReportModel reportmodel, Dictionary`2 json)\r\n   at Syncfusion.EJ.ReportViewer.ReportHelper.GetDataSourceCredential(Dictionary`2 jsonResult, IReportController _reportController)\r\n   at Syncfusion.EJ.ReportViewer.ReportHelper.ProcessReport(Dictionary`2 jsonResult, IReportController reportController)"

Can anyone please help?

Thanks

Anandakumar S [Syncfusion]
Replied On July 18, 2015 04:46 PM UTC

Hi Vic,

Thanks for using Syncfusion Products.

Problem is that the report viewer shows a Parameters screen and a view report button on the side.
Can this be bypassed?
You can hide the Parameter block using the ToolbarSettings property in ReportViewer as shown in the below code snippet.

toolbarSettings: { items: ej.ReportViewer.ToolbarItems.All & ~ej.ReportViewer.ToolbarItems.Parameters }


Kindly refer our online documentation for more details on this.
http://helpjs.syncfusion.com/js/reportviewer/toolbar-customization
"Sf_Exception - System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.\r\n   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)\r\n   at
The error occurred while processing the report datasource credentials. We request you to ensure the credential supplied to datasource or if its RDLC report then kindly set processing mode to Local (ProcessingMode.Local)  and add datasource collection to ReportViewer. Kindly refer our online UG documentation for setting the datasource properties.
http://helpjs.syncfusion.com/js/reportviewer/report-datasources

Please let us know if you have any questions.

Regards,
Anandakumar S

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;