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

Setting connection string at runtime in trdf

1 Answer 166 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Randy Hompesch
Top achievements
Rank 1
Randy Hompesch asked on 14 May 2019, 10:07 AM

Hi,

I accidentally posted this to the main report forum. Sorry for the duplicate. Anyhow … 

I am using asp.net core and we have dev and production environments set up on different machines.
How can I pass a connection string that is appropriate for the given environment to the .trdf report? I've tried everything I can think of.
There was a long winded article with what seemed to be a very complicated way of doing something that should be simple.
(https://www.telerik.com/support/kb/reporting/details/changing-the-connection-string-dynamically-according-to-runtime-data).
All I want is to read the appsettings.json file, pull the correct connection string from there and pass it to the .trdf at runtime.
My kingdom for a simple example!
Thanks ... Ed


1 Answer, 1 is accepted

Sort by
0
Silviya
Telerik team
answered on 17 May 2019, 07:15 AM
Hi Ed,

Please refer to set connection string at runtime for .trdf post where my colleague has already answered to your questions. 
We will appreciate it if we continue the discussion in one of both threads, in order to keep a better track on the exchanged information.

Best Regards,
Silviya
Progress Telerik
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
Tags
Report Designer (standalone)
Asked by
Randy Hompesch
Top achievements
Rank 1
Answers by
Silviya
Telerik team
Share this question
or