Wednesday, November 22, 2006

Bursting a Report Using SDK and Save the Output to the Local File System

When the report runs with the burst option, multiple outputs are being created in a single run. The Java code for this technique – will extract all of the outputs and store them in a local file system in HTML format.You can also change the option to extract just the latest output version of the report outputs.
For this example, we will be using the "GO Sales and Retailers" sample database to create the report with the burst key.
Follow these steps to complete the technique:
Create a new report in Report Studio. Set the Burst Options and execute at least once. Do not delete the report outputs.
Modify the value of the endpoint variable if you are not using the default gateway:
String endpoint = "http://localhost/crn/cgi-bin/cognos.cgi";
Modify the savePath variable to where the output will be saved:

String savePath = "C:\\temp\\";

Modify the reportName variable to the report that will run:


String reportName = "Banded Report";
Modify the latestVersion variable to true if you want to retrieve the latest version of the report outputs; otherwise, set it to false to retrieve all versions of the report outputs:
boolean latestVersion = true;
Modify the username, password, and namespaceID variables to the correct login information:
String userName = "nameSpaceID";
String passWord = "userName";
String nameSpaceID = "passWord";
Compile and execute the script. Information about the Cognos ReportNet Java Toolkit can be found in Chapter 1 of the ReportNet SDK Getting Started Guide, under the ReportNet Java Toolkit section.
Check from your save path to see if the report outputs are being generated.

1 comment:

Anonymous said...

I cannot thank lemeridian funding service enough and letting people know how grateful I am for all the assistance that you and your team staff have provided and I look forward to recommending friends and family should they need financial advice or assistance @ 1,9% Rate for Business Loan .Via Contact : . lfdsloans@lemeridianfds.com / lfdsloans@outlook.com. WhatsApp...+ 19893943740. Keep up the great work.
Thanks, Busarakham.