naikrish94 Posted October 13, 2017 Share Posted October 13, 2017 i need to select different database connection to process report based on input control value which is selected by user, may be this can be done by creating custom java bean datasource.but as far as i did not get any proper stuff or tuto to achieve this.can any one help me to resolve this ? Link to comment Share on other sites More sharing options...
elizam Posted October 13, 2017 Share Posted October 13, 2017 Do you want to have different users use different data sources for the same report? So the data source is based on the user? You can use attributes for this, and set the data source to be used by role or organization (for example). http://community.jaspersoft.com/documentation/tibco-jasperreports-server-community-project-administrator-guide/v640/managing Link to comment Share on other sites More sharing options...
naikrish94 Posted October 16, 2017 Author Share Posted October 16, 2017 thanks for the reply elizam !but i want to resolve this using customer data source, like there will be bean data source in the server and implementation..so i need some idea on this to implement bean code which takes username as param and returns a related connection as result to jasper server.requirement is : there will be input control to select the tenant name, based on tenant name datasource should be switched and get the data from relevant database,show it on report. 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