OVERVIEW
When a user logs into Cognos their information can be
captured by the system. That information can be used by
Cognos Authors to provide a myriad of options.
JAM 2012
Contents
OVERVIEW....................................................................................................................................................................................... 1
Contents .......................................................................................................................................................................................... 2
Cognos Session Parameters Overview .......................................................................................................................................... 3
1: Session Parameter Types ........................................................................................................................................................ 3
2: Using Session Parameters ..................................................................................................................................................... 3
3: Special Session Parameters ................................................................................................................................................... 3
Importing the Session Parameters ................................................................................................................................................ 4
1a: User ID Number - Quickest Method (Custom LDAP) ........................................................................................................ 4
1b: User ID Number - Longest Method (Standard CX) .............................................................................................................5
2: Create the Calculations .......................................................................................................................................................... 6
Using the Session Parameters ........................................................................................................................................................7
1: Access to Session Parameters ..............................................................................................................................................7
2: Prebuilt Filters .........................................................................................................................................................................7
Notes: .............................................................................................................................................................................................. 8
Appendix .......................................................................................................................................................................................... i
Option 1: Session Parameter Calculations ................................................................................................................................ ii
Option 2: Session Parameter Filters..........................................................................................................................................iv
Option 3: Using aliases of userid_table ..................................................................................................................................... v
JAM 2012
3
ver.05222012
JAM 2012
JAM 2012
5
ver.05222012
JAM 2012
#sq($account.personalInfo.userName)#
JAM 2012
2: Prebuilt Filters
For Query Studio authors to use Session Parameters they
need to be made into prebuilt filters. For these
instructions we are going to use cnslr_id from adm_rec as
the example of how to create these filters.
a) Click the [+] by Packaged Views then click the
[+] by Recruiting and Admissions Information
then click the [+] by Admissions Processing
then click the [+] by Admissions Processing
Filters
b) Right-click the Admission Application Filters
Folder and Click Create and then click Filter
c) Name the Filter Admission Counselor Logged-In
d) Click the [+] by Admission Application
e) Drag Counselor ID Number to the Expression
definition.
f) Type after it the = symbol
g) Click the [+] by Extras then click the [+] by
Session Parameters
h) Drag User Logged-In: ID Number to the
Expression Definition.
7
ver.05222012
JAM 2012
Notes:
JAM 2012
Appendix
The original document is housed at:
https://my.graceland.edu/ics/GU_Groups/Group_Manag
ement/Cognos_Power_Users/Public.jnz?portlet=Referenc
e_Documents under the JAM 2011 File Group.
While the main document outlines two options for how to
capture login information from Cognos and use it to drive
reports, they are not the only methods. Outlined on the
following pages are three other options. They are not as
robust and flexible as the ones in the main document, but
if you are unwilling to dive into those, these may provide
you viable options instead
Option 1: Session Parameter Calculations: This outlines
how to bring in just the Session Parameters without the
use of userid_table or the Custom Session Parameter. It is
the simplest way to use Session Parameters and requires
the least amount of setup. However it may not have much
use, and isnt very flexible.
Option 2: Session Parameter Filters: If you want a light
version of using Session Parameters to filter your data,
without the larger impact of the main document, this will
give you that information.
Option 3: Using aliases of userid_table: If the strange join
presented in the main document isnt something that you
find comfortable to use, you can get a similar effect of
filtering for user id numbers using these instructions.
While they require a similar amount of work for Authors to
use, the Framework Manager requires more work.
i
ver.05222012
JAM 2012
j)
ii
2: Standalone Folder
Why? Having them stored in a separate Namespace and a
separate folder will allow you to only include the Session
Parameters in Packages that you want them included in.
c) Open your Project in Framework Manager
d) Create the Folder Session Parameters
1 Click the [+] by CX
2 Right-click the Packaged Views Namespace
3 Click Create and then click Namespace
4 Name the new Namespace Extras
5 Right-click the Extras Namespace
6 Click Create and then click New Folder
7 Name the new Folder Session Parameters
8 Click the Finish button on the next window
e) Complete instructions 1.c and 1.d using this folder
f) Add the Folder to the Package Definition of the
Packages that you want to have access to it.
1 Click the [+] by Packages
2 Double-click the Package you want to add the
folder to.
Note: This takes a while to load.
3 The Package Definition window will open.
4 Click the [+] by the Extras Namespace
5 Click the next to the Session Parameters
Folder which changes it to
6 Click the OK button
7 Publish the Package
g) Repeat step 2.h for each Package you want to
include the Folder in.
JAM 2012
iii
ver.05222012
JAM 2012
iv
JAM 2012
v
ver.05222012
JAM 2012
vi