danfergarc Posted July 19, 2016 Share Posted July 19, 2016 Hi.I want to have the same report for different users but with 2 different parametres in the query depending on the user loged on.To make it more clear, the different parametres from the query are the client and the date. Using this I want to show all the transactions this client did on the specified date. Thing is that I have 1000 clients and I can't make a different report for each user. We should have the same report for everyone with the parameters changing depending on the client logged in. Link to comment Share on other sites More sharing options...
Solution kkriplani Posted July 19, 2016 Solution Share Posted July 19, 2016 Hi,JasperServer has a functionality of retirieving the logged in username.Just create a parameter as $P{LoggedInUsername} . This parameter retrieves the logged in username used and you can create a conditional parameter using this value.Read this link to know more about Conditional Parameters.Hope this helps,KKriplani Link to comment Share on other sites More sharing options...
elizam Posted July 19, 2016 Share Posted July 19, 2016 Are you using JasperReports Server or your own application? Be careful -- if you want to keep the information confidential between clients, a simple parameter is probably not enough. A user can see the URL and remove the parameter. It depends on the type of information you are displaying.In the commercial version of JRS, you can use Domain security, which lets you set up a Domain in a way that securely restricts access to information from the database, so a user can only see their information. It's a lot more complicated, but it means that users' data is secure. This only works with Domain reports.http://community.jaspersoft.com/documentation/tibco-jasperreports-server-security-guide/v630/securing-data-domain 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