COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: kado on 17 Aug 2011 10:09:06 AM

Title: Function to pass report user name to report
Post by: kado on 17 Aug 2011 10:09:06 AM
Hello All:

I would like to pass the Report User's name (or just ID) into the Footer of a report. I searched through all the available functions and haven't had much luck looking around. Something like 'ReportAuthor()'.

We are on C10.

Any thoughts?

THANKS,
Kado
Title: Re: Function to pass report user name to report
Post by: babu babu on 17 Aug 2011 01:16:34 PM
Hi Kado,

Please use this function #sq($account.defaultName)#

Thanks,
Anand.
Title: Re: Function to pass report user name to report
Post by: jd on 17 Aug 2011 01:32:34 PM
Hi

I tried it like below but it is not showing any user names:

[XXX].[XXXXXX].[DN] = #sq($account.defaultName)#

Title: Re: Function to pass report user name to report
Post by: AussiePete2011 on 17 Aug 2011 04:24:26 PM
Hi there,

All you do is add a Data item and enter the expression #sq($account.defaultName)#.  Nothing more just that expression.
Then add the Data Item to the footer by adding a Singleton and then a text item and then converting the text item to a "Data Item Value" and referencing the Data Item created for the username.

Hope this helps
Cheers
Peter
Title: Re: Function to pass report user name to report
Post by: kado on 19 Aug 2011 01:10:14 PM
AussiePete!! Awesome! Thank you much!!