Jump to content

How to include the Tenant Name on a report?


pw1971

Recommended Posts

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

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

  • 5 years later...

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

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