Jump to content
JasperReports Library 7.0 is now available ×

Using $P{LoggedInUser}


MohanRao

Recommended Posts

Hello,

 

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,

Mohan.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi,

 

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.

 

Regards,

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