Display Actuate User in BIRT Report

Nov 29, 2011   #birt  #actuate  #reporting 

I am obliged to create some quite sophisticated reports with Actuate/BIRT in my current project. Sure thing, it is not my favourite occupation and I like real coding way better.

Nevertheless, even in the field of report tools there are some findings to make.

The first one I am posting here is quite simple but I had do some research to find out how to do it. (Unfortunately, BIRT’s documentation is far from being perfect.)

There’s the requirement to display the name of the user who is currently logged in on the BIRT iServer in the report.

You can easily get the username out of the global report context like this:

reportContext.getAppContext().get("ServerUserName")