logo

Warning: The forum is now for consultation only. Please use GitHub Discussions to post any questions or comments.


Welcome Guest ! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
sai  
#1 Posted : Thursday, September 20, 2018 1:26:50 PM(UTC)
sai

Rank: Newbie

Groups: Registered
Joined: 9/13/2018(UTC)
Posts: 1
India

Thanks: 2 times
I am trying to embed Seal Reports into a web application. I am using the WebInterface APIs to execute and get the reports. I want to make the database connection string configurable so that I can change the connection string when deploying the application. I tried looking up the web.config of the SealWebServer but couldn't find any setting parameter for this ? How do I configure the connection string ?
epf  
#2 Posted : Friday, September 21, 2018 6:17:29 AM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 206 time(s) in 199 post(s)
the connection string is defined in the data source...
so if you want to make it dynamic for the Web Report Server, you may try to modify the Init script executed when a report is executed:
You can edit it from Sever Manager->Configuration->Configure Server->'Init Script'

Then you have the possibility to change the connection depending on the user logged (got from report.SecurityContext).

This requires knowledge of C# and the Seal Report object model.
Good luck.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.