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