pw1971 Posted April 27, 2009 Share Posted April 27, 2009 Does anyone know how to include the Tenant Name on a report created in iReports on Windows?I have tried adding a parameter named Tenant using a class of com.jaspersoft.jasperserver.api.metadata.user.domain.Tenant and then using $P{Tenant}.getTenantName() but it returns null. Link to comment Share on other sites More sharing options...
lrout Posted April 30, 2009 Share Posted April 30, 2009 I am not sure,just try with $P{Tenant.getTenantName()}make sure Tenant class is a static class. Link to comment Share on other sites More sharing options...
chiphi13 Posted April 30, 2009 Share Posted April 30, 2009 Create a parameter in the report called LoggedInUser with the following class:com.jaspersoft.jasperserver.api.metadata.user.domain.UserYou will then have access to the getTenantId() property. You may need to use the TenantServiceImpl class in order to retrieve the name of the tenant once you have the id. Link to comment Share on other sites More sharing options...
iggi Posted February 10, 2015 Share Posted February 10, 2015 I AM ABLE TO GET TILL HERE, "Create a parameter in the report called LoggedInUser with the following class: com.jaspersoft.jasperserver.api.metadata.user.domain.User You will then have access to the getTenantId() property." PLEASE COULD YOU GIVE ME DETAILED STEPS ON HOW TO GET THE "ORGANIZATION NAME/TENANT NAME" INTO MY REPORT TITLE, "You may need to use the TenantServiceImpl class in order to retrieve the name of the tenant once you have the id." 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