tstuser Posted October 24, 2018 Share Posted October 24, 2018 At run time how can we change the database ad deails? Link to comment Share on other sites More sharing options...
hozawa Posted October 24, 2018 Share Posted October 24, 2018 No. Jaspersoft Studio does not support dynamic database connection. Link to comment Share on other sites More sharing options...
reportdev Posted October 24, 2018 Share Posted October 24, 2018 I agree with Hozawa, that by default Jasper does not support dynamic connnections. but if you can write some scriptletsCheck Default Data adaptersWhen Default data adapter configuration is mentioned, the report will try to connect to a database using the configuration given in a default data adapter.For configuring default data adapter on a report, you would write up a database config xml file and place that on the Root level of Jasper serverI'm just throwing an idea: May be you could write a scriptlet based on a parameter and update this default data adapter Configuration file on the server dynamically (but by no means this is secure since the configuration file carries unhashed username/password for the data adapter). Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now