It's all about the answers!

Ask a question

Username in Insight Report


0
1
Jill Davies (241417) | asked Apr 11 '13, 10:19 a.m.
Hi,
I'd like to get hold of the name of the user who has run an Insight Report from within that report so that I can display user-specific content.  Is this possible and how would I go about doing tt?

Thanks,
Jill

Accepted answer


permanent link
Sudhakar Frederick (80113431) | answered Apr 11 '13, 10:03 p.m.
JAZZ DEVELOPER
 1. Create a new Query
2. Add a new Data Item to it.
3. Set the Expression of the Data Item to :
#sq($account.personalInfo.userName)#
4. Drop a Singleton onto the report page where you want the username displayed and associate the singleton with the query above.
5. drop the data item from the query onto the Singleton object.

ref http://pic.dhe.ibm.com/infocenter/cbi/v10r1m1/topic/com.ibm.swg.ba.cognos.ug_fm.10.1.1.doc/c_create_modify_session_parameter.html#create_modify_session_parameter and http://mycognos.blogspot.com.au/2009/03/displaying-report-author-name-in-report.html
Jill Davies selected this answer as the correct answer

Comments
Jill Davies commented Apr 16 '13, 10:10 a.m.

Perfect! thanks very much

Your answer


Register or to post your answer.