Jump to content
Changes to the Jaspersoft community edition download ×

Using $P{LoggedInUser}


Recommended Posts



I have a report created with the $P{LoggedInUser} parameter. I am using the type for this as 'com.jaspersoft.jasperserver.api.metadata.user.domain.User' and Default Value Expression as '(Object)$P{LoggedInUser}.getUsername()'. When I do like this, I am not able to compile the report because iReport can't find the

'com.jaspersoft.jasperserver.api.metadata.user.domain.User' class. But when I upload the same report in JasperServer and run it, I am not having any problem.


So my doubt is, is there any way I can make it run with iReport? Can you please suggest me which files can I change and what are the changes I need to do?


Thanks a lot,


Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic



It seems that it's normal since IReport is used to design reports using JasperReports library and JasperServer used to run reports.

I think that you just have to include the correct library to the IReport classpath : jasperserver-api-metadata-1.1.0.jar.



Link to comment
Share on other sites

  • 4 years later...

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