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

reportView Download from Content Store

Started by chrisiklauss, 26 Mar 2009 12:47:01 PM

Previous topic - Next topic

chrisiklauss

Hello everybody,

we managed to download Reports and store the XML definition locally.

What has to be done to store a Report View locally?


When I execute following code:

BaseClass[] repPth = cmService.query(new SearchPathMultipleObject(fullCognosReportName), props, new Sort[] {},
                   new QueryOptions());


repPth contains a ReportView Object. I can access the name of it, but NOT the content (XML..)?
How is this possible?
Or do I have to store the Report and the parameters of the report and thus store a "ReportView" locally?

Thanks in advance for your answers!

Christoph




xiska

Hi,

refer to c8\sdk\java\runreport for java, for .net e.g. c8\sdk\vb\execRpt1ParamMV or the KB.
You need to execute the report with the parameter in the specified format and then download them.

please note that there are some extra problems if the reports are bigger than 8MB (may be not anymore) and the xls export is a mess.

Your code is a query what is inside the CS. the next query is cmService.execute...

xiska

Hi,

Sorry - you mean a reportview. Thats a little different - the c8connect.getOutput(..) should be enough.
the props must be set to the output as well.
As there can be more than one file in different formats you need to iterate over them or use the last() function.