If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Want access to name of Cognos Namespace (session parameter?)

Started by cccschip, 10 Nov 2011 10:39:32 AM

Previous topic - Next topic

cccschip

we need a reference to the name of the current Cognos namespace.  I realize now that using an account parameter is probably not appropriate.  But is there something like:
$namepace

I've got to think there is, because Cognos knows it.  for example, the Set Preferences dialog (on the Personal tab) displays the Namespace as well as the User ID, Given Name, Surname, and Email.

Each of the above values, other than possibly Namespace apparently, is a session parameter.  So I'm thinking Namespace should be, too.  But I don't know how to refer to it!

Our hope is to use the name of the namespace in a filter such as:
    #sq($account.parameters.Namespace)#

But we don't want to have to replicate the Namespace name in Active Directory account defs.  Hence our hope that it's available as a session parameter. 

Or maybe there is some other way to access it.

Bottom line: We have 14 Cognos Namespaces in our env and the user chooses one during login.  We simply want to be able to determine which was chosen at login.

bdbits

What does this give you?

#csv(CAMIDListForType('account'))#

Because our namespace and LDAP domain have the same label, I cannot which of those is listed as the first token in the CAMID return string. Hopefully it is the namespace. I will leave the exercise of parsing it out to you. I think you can count on it starting with CAMID(" and the first colon being the position right after where you want to end.

cccschip

Appreciate that suggestion, bdbits.

The returned list has the namespace name just where you said.  Thanks. 

And that's better than our solution, which uses $account.parameters.Domain.  It returns a long path with the domain name at the start.  (In our env, the Cognos namespace name matches that of the Active Directory domain.)

But our hope is to get direct access to the namespace name, itself, without having to parse it out of something longer.