COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Cognos Administration => Topic started by: aravind006 on 19 Jun 2014 05:12:30 AM

Title: Get the username in page header
Post by: aravind006 on 19 Jun 2014 05:12:30 AM
Hi ,

I have created a welcome page in cognos 10.1. I want to display the login user name in the header.

please share your thoughts.

Regards,
Aravind.
Title: Re: Get the username in page header
Post by: Karti on 19 Jun 2014 08:50:29 AM
I'm not sure where exactly to put it, but I use this in a report to gather the users name that is logged in: #sq($account.defaultName)#

Hope this helps!
Title: Re: Get the username in page header
Post by: Raghuvir on 20 Jun 2014 02:12:53 AM
hi,

Here is one way to do it. Once you are in Report Studio, from the Insertable Objects Toolbox, drag a Repeater to your report page header. Drag a Query Calculation inside the Repeater and give it a name. When the Expression Definition window opens, paste the following into it #sq($account.defaultName)# Run your report and you will see your name in the page header.

Hope this helps.

Regards