COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: fraserj on 10 Dec 2007 03:20:50 PM

Title: Get cognos username to display in report footer of a template
Post by: fraserj on 10 Dec 2007 03:20:50 PM
I have to set up a report template to be used by some non coders and need to have a "Run By: Username" in the template footer.

I've been using #sq($account.defaultName)# in  a query calculation to do the job on a standard report footer but templates dont accept this - which I kind of understand. Any suggestions? Could it be done as Javascript in an html object
Title: Re: Get cognos username to display in report footer of a template
Post by: chow on 10 Dec 2007 04:54:43 PM
just drage on text Iteam in you report footer and type what name u want

Title: Re: Get cognos username to display in report footer of a template
Post by: fraserj on 10 Dec 2007 05:18:25 PM
Thanks but i dont think that's what I'm after. I'd rather the users didnt have to enter their username everytime they run a report. Is that what you meant?  I also want to make this easy for our report authors so that they just pick up the template rather than have to remeber to code it on every report.
Title: Re: Get cognos username to display in report footer of a template
Post by: chow on 11 Dec 2007 09:23:54 AM
see this document in cognos support . it will help you
Document#:  1005516.3
Title: Re: Get cognos username to display in report footer of a template
Post by: Brando on 03 May 2011 12:27:55 PM
Ancient post but I googled this and found: https://www-304.ibm.com/support/docview.wss?uid=swg21343986&aid=4
Title: Re: Get cognos username to display in report footer of a template
Post by: hana00 on 07 Jul 2016 02:22:20 AM
Hello everyone,

I am facing the same issue and links above doesn't work - does anyone resolved it?  :)
Title: Re: Get cognos username to display in report footer of a template
Post by: mayank_sanghvi on 17 Nov 2016 05:22:04 AM
Hi,

You can use macro for this.

1. Create a query
2. Add a new data item with expression  #sq($account.defaultName)#

You can also use account.personalInfo.givenName or account.personalInfo.userName.

Note: sorry for any typo in the above names if any.

Finally create a singleton in footer. I hope this will help.



Thanks & Regards,
Mayank Sanghvi