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

Is there a way to automatically adjust the data source in the report

1 Answer 47 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Harsha
Top achievements
Rank 1
Harsha asked on 23 Mar 2015, 03:23 AM
I have created a report using temporary database and its working properly. Now I want to move it to the original database which is having the same columns as in the temporary database. So when I do it I need to configure the data source again if I want to add multiple reports. Is there a way to automatically do this data source configuration process if I configure data source of one report correctly.

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 25 Mar 2015, 03:47 PM
Hello Harsha,

You can modify the configured data sources by iterating the report's Items collection and getting the DataSource properties of each data item. An example is available in the Changing the connection string dynamically according to runtime data KB article.

I hope this helps you.

Regards,
Stef
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
General Discussions
Asked by
Harsha
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or