sonuverghese Posted February 27, 2014 Share Posted February 27, 2014 I need to filter input controls based on the logged in user name. iReport 5.1 had Domain Parameters which could be added to the Report. How do I accomplish this in Jaspersoft Studio?Thank you. Link to comment Share on other sites More sharing options...
Solution fcerbell Posted February 28, 2014 Solution Share Posted February 28, 2014 When you are using JasperSoft Studio, you dont have to use credentials to open the studio, so, there is no actually loggedin user. There is a logged in user when you are working with the server, either as a user, in the web UI or as a developper from JSS, with the repository plugin. So, there can not be a loggedin user when JSS executes a report in its preview tab.You can add a String parameter to your report, named exactly LoggedInUsername and this parameter will be automatically populated by JasperReports Server when the user will execute it from the server from the web UI..If you publish the report to the server and ask (from JSS) the server to execute it, the server will receive this inquiry from an authenticated connection (JSS repository plugin needs credentials), it will populate the parameter with the username configured in the JSS repository plugin. Link to comment Share on other sites More sharing options...
sonuverghese Posted February 28, 2014 Author Share Posted February 28, 2014 Thank you. Link to comment Share on other sites More sharing options...
hozawa Posted March 1, 2014 Share Posted March 1, 2014 Check the following thread.http://community.jaspersoft.com/questions/531795/using-jasperserver-user-login-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