Jump to content
We've recently updated our Privacy Statement, available here ×

Can Jasper do this?


danfergarc
Go to solution Solved by kkriplani,

Recommended Posts

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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Solution

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

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

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...