Wednesday, August 29, 2007

DWH-BI-COGNOS/Report Studio -- use HTML item to get current user

This is an example of using a javascript function in a Cognos Report Studio report to get the current user.
Create a new report in Cognos Report Studio
Create a new prompt page and add a HTML item control to the page.
Add the following .js code to the HTML item
When the form loads you should see an alert box with the current logged in username

No comments: