COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS ReportNet => SDK => Topic started by: thecustomizer on 16 Feb 2006 08:19:26 AM

Title: Querying users for a particular Group using SDK (java)
Post by: thecustomizer on 16 Feb 2006 08:19:26 AM
Hi,

The namespace name is "Cognos". The Group created under the namespace is named "PageSharingTest".
I need to access all the members of that group using the query method.
The SDK documentation states that this can be done using the expandMembers function in the "search" parameter of the query method.

The systax i used is:
objectname.query(expandMembers(/directory/*[@name="Cognos"])/*[@name="PageSharingTest"]),props,sOpt,qOpt)

It does not work and gives an error saying "Illegal start of expression".
If anybody else has achieved what i want to do i.e. obtain all the members of a particular group, please get back to me ASAP.

Thanks in advance.
Title: Re: Querying users for a particular Group using SDK (java)
Post by: jatincognoise on 15 Jul 2006 07:16:57 AM
Hi theCustomizer,

Instead of using

objectname.query(expandMembers(/directory/*[@name="Cognos"])/*[@name="PageSharingTest"]),props,sOpt,qOpt)

try using
objectname.query(expandMembers(CAMID("::PageSharingTest")/*,props,sOpt,qOpt)

Title: Re: Querying users for a particular Group using SDK (java)
Post by: jatincognoise on 15 Jul 2006 07:19:11 AM
Hi thecustomizer,
Instead of using

objectname.query(expandMembers(/directory/*[@name="Cognos"])/*[@name="PageSharingTest"]),props,sOpt,qOpt)

try using
objectname.query(CAMID("::PageSharingTest")/*,props,sOpt,qOpt)

And tell me


Cheers and  Thanks
Jatin