Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsGet windows Username
https://www.eclipse.org/forums/index.php/mv/msg/212456/682100/#msg_682100
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 ?
thanks.
AD.
]]>No real name2011-06-10T12:08:02-00:00Re: Get windows Username
https://www.eclipse.org/forums/index.php/mv/msg/212456/682213/#msg_682213
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, forums-noreply@eclipse.org 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 ?
>
> thanks.
>
> AD.
>]]>Jason Weathersby2011-06-10T16:09:54-00:00