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

Searchpath for query all account in Cognos

Started by jackmaster, 24 May 2012 10:38:40 AM

Previous topic - Next topic

jackmaster

Hello,

   In Cognos SDK, can anyone tell me the difference between 2 searhpath here, for example:

   String ns = "****";
   String searchPath1 = "CAMID(\"" + ns + "\")//account";
   String searchPath2 = "//namespace[@id=\"" + ns + "\"]//account";

   "ns" here is the namespace i want to query all its accounts, but the results return from sdk are not the same. I was confused, can anyone help me?
 
  Thanks!
   

sir_jeroen


jackmaster

 When i query from my cognos server, the 2 searchpath return different results. For ex, when I log on to Cognos Portal with admin account, then go to Administrator -> Security -> Users,Groups and Roles, then I go to my namespace folder (for ex: LDAP), my list users there: user001, user002, user003.
When I do a query with:  String searchPath1 = "CAMID(\"LDAP\")//account"; it returns exactly user001, user002, user003.
But when I do a query with: String searchPath2 = "//namespace[@id=\"LDAP\"]//account"; its returns more than that: user001, user002, user003, user004, user005.
Note that I can login with user004 and user005 so these users do exist but I can't figure out that how they don't appear under my namespace folder and why these 2 searchpath return different results.

sir_jeroen

that's strange... What is return as searchpath for user004 & 005? What propenum array do you pass?
Perhaps they aren't correctly configured (e.g. no value set for displayName in LDAP)