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

List all the Reports Using SDK

Started by Galaxy, 06 Oct 2011 11:05:43 PM

Previous topic - Next topic

Galaxy

Hi experts,

I have a bunch of reports created using Report Studio and stored with in the default public folders. If I want to list all the reports using SDK, how to do that?
Is there any API? The basic attempt is to send these reports as an attachment to the connected people.

Any suggestions/ Please shoot it here.

jdzurek

This will get you a list of all the reports (java):



PropEnum props[] = new PropEnum[]{PropEnum.searchPath, PropEnum.defaultName};
Sort sortOptions[] = {new Sort()};
sortOptions[0].setOrder(OrderEnum.ascending);
sortOptions[0].setPropName(PropEnum.defaultName);

if (cmService != null) {
      BaseClass[] FoundReports =
     cmService.query(new SearchPathMultipleObject(REPORTS_PATH), props, sortOptions, new QueryOptions());
}


Galaxy

Thanks for the reply.  I did find the sample program in the SDK samples and i did customize to a bit extent to achieve my requirement. It all worked !!

thanks again !!