rajasekhar_1 Posted August 4, 2017 Share Posted August 4, 2017 Dear jasper master ,I am new to jasperIn our organization we calling jasper server from another server by making call from javaurl ="https://jasper.ourorganization.com/jasperserver/flow.html?_flowId=viewReportFlow&reportUnit="+encodeURIComponent(repName)+"&decorate=no&j_username=emr_"+userName+"&j_password=emr_"+passWord+"&viewAsDashboardFrame=false ";here we are passingurl for jasper server and user name and password.like that can i pass data source name or Db name andMain problem is we have so many users more than 300 Clints and having diff DB s based on the user we need to give Data source so i want pass db name and host name from the above url and based on that user custom data source should give that data .please help me to create custom data sources using url parameters or how to store url parameters in jasper serverThanksRajasekhar Link to comment Share on other sites More sharing options...
reportdev Posted August 4, 2017 Share Posted August 4, 2017 I dont think this is possible with the jasper server. But this requirement can be achieved with the jasper api. try opening a connection in your java class based on the client and then using the jasper api fill the jrxml template dynamically. Link to comment Share on other sites More sharing options...
hozawa Posted August 5, 2017 Share Posted August 5, 2017 This may not be exactly what you want but did you try setting user attributes in datasource definition.http://community.jaspersoft.com/documentation/tibco-jasperreports-server-administrator-guide/v60/attributes-data-source-definitions Link to comment Share on other sites More sharing options...
rajasekhar_1 Posted August 7, 2017 Author Share Posted August 7, 2017 Thanks for your reply User lelvel attributes worked for me Link to comment Share on other sites More sharing options...
harikrishnamakkena05 Posted September 12, 2017 Share Posted September 12, 2017 hi rajasekhar_1, Have you find any solution for this one. if you find any solution can you please provide me the solution. i am also facing same issue in my project. Thanks & Regards 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