netti royala Posted November 12, 2013 Share Posted November 12, 2013 Hai Friends . I want to get username and password of jasper server logged in user ,then i want to pass those username and password in URL of DB to get connection from the DB,then after i would like execute the report by using URL.here my DB user name , password are the JasperServer users and their password are equal ,how can i pass,Colud you please some one help me. Link to comment Share on other sites More sharing options...
Solution elizam Posted November 12, 2013 Solution Share Posted November 12, 2013 What are you trying to accomplish with this? Since the connection to the database is set up with a specific name and password, I don't think you can change that on the fly. This also doesn't sound very secure. If you are trying to control the data that a user can access, the pro version allows you to do this by setting up a domain and a security file. Link to comment Share on other sites More sharing options...
netti royala Posted November 13, 2013 Author Share Posted November 13, 2013 Thank you for responding to this.I am trying Pass username and password in the URL,so i can see which user can modify the data,here user name and password are not same for all time.it can be changed based on the user.I could perform this one in java application ,but how can i here ? Link to comment Share on other sites More sharing options...
netti royala Posted November 13, 2013 Author Share Posted November 13, 2013 Could you Please tell me how i can get user name and password and how can i pass in URL to get DB Connection.thank you. Link to comment Share on other sites More sharing options...
elizam Posted March 29, 2016 Share Posted March 29, 2016 Are you trying to connect to a different database based on the user? You can do that using attributes.http://community.jaspersoft.com/documentation/tibco-jasperreports-server-administration-guide/v62/managing-attributes-0"Attributes are name-value pairs that are associated with users, organizations, and the server itself. Attribute values can be used to parameterize access to data sources, Domain data, OLAP data, and report output. " 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