Jump to content
Changes to the Jaspersoft community edition download ×

Switching Data Source based on value selected from Input control ?


naikrish94

Recommended Posts

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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...