All of the scripting like reportContext... is done on the server not the
client. You can write client side script in a text element but I doubt
you will be able to get the user id as this is a security issue. In the
reportContext you can get the servlet request and session so if the user
name is in a cookie or session variable you may be able to get it there.
Attached is an example of getting cookies.
On 6/10/2011 8:08 AM, email@example.com wrote:
> Hi all,
> I just want to access to the windows username of the personn who display
> the report. I'd like to put something like "Hello Bob" on the report.
> I find "reportContext.getAppContext().get("birt.viewer.resource.path")"
> wich allow me to display the ressource path of birt, but find nothing
> related to logon name.
> Is anyone know how to do ? or has a trick (java scripting?) to access to
> that information ?