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

Intercepting report parameters in .net Core.

2 Answers 70 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 27 Apr 2020, 05:22 PM

I'm running .net Core 3.1 to serve reports that are stored as a .trdp and displayed using the HTML5 Report Viewer.  I need to save the parameters that the user enters so I can default to them the next time.  I already have a custom report resolver in place to facilitate my connection string management so I believe I can use the resolver to SET the default values, but I don't know how to GET what was entered since the report resolver is executed before merging the user's entered parameters.

I'd like to do this in the API and not have to capture things via javascript on the client's machine.  Best case scenario I'd like to grab the parameters after the report successfully runs so I know they are good parameters, but getting to the parameters anywhere along the process within the API is a start.

So where can I access the Report's ReportParameters object with the user's entered values in .net Core?

TIA

2 Answers, 1 is accepted

Sort by
0
Kevin
Top achievements
Rank 1
answered on 27 Apr 2020, 05:41 PM

I _think_ I've found my answer by overriding CreateInstance in my ReportsController but if there is a better place, please let me know. :)

 

0
Neli
Telerik team
answered on 30 Apr 2020, 12:32 PM

Hello Kevin,

In case you don't want to use JavaScript on the client's machine, this approach will work but note that basically, we don't recommend the overriding the CreateInstance.

Regards,
Neli
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
General Discussions
Asked by
Kevin
Top achievements
Rank 1
Answers by
Kevin
Top achievements
Rank 1
Neli
Telerik team
Share this question
or