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

Cognos SDK : trying to get the report list for a given user.

Started by swar80, 13 Jan 2009 08:12:47 AM

Previous topic - Next topic

swar80

Hi There
I am newbie to Cognos SDK and am trying to extarct a list of reports for a given user from the content store.

I tried to get a generalised list of all packages and reports using the following piece of code, but i am not able to understand how i can get a list of reports for a particular user.

c8CMS = new contentManagerService1();
            searchPathMultipleObject spmo = new searchPathMultipleObject();
            propEnum[] props = { propEnum.defaultName, propEnum.searchPath };
           


            //Query takes in various arguments one of them is sorting criteria
             sort [] _sort = {new sort()};

            _sort[0].order = orderEnum.ascending;
            _sort[0].propName = propEnum.defaultName;


            // Query also takes in Options criteria
            //, new queryOptions()

            // Pacakage Path
            _packagaepath = "/content//package/*";

            _reportpath = "/content/package[@name = '" + _package + "'/report//*";


            spmo.Value = _packagepath;
            spmo.Value = _reportpath;

            baseClass[] bc = new baseClass();
             
            bc = c8CMS.query(spmo, props, _sort, new queryOptions());

Can any one help me with this?


Regards
Swaroop