Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more ➡
Download
Standard view
Full view
of .
Add note
Save to My Library
Sync to mobile
Look up keyword
Like this
7Activity
×
0 of .
Results for:
No results containing your search query
P. 1
PREVIEW Cognos SDK Guide by BI Centre

PREVIEW Cognos SDK Guide by BI Centre

Ratings: (0)|Views: 2,476|Likes:
Published by Hadi Aamir

More info:

Published by: Hadi Aamir on Aug 27, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See More
See less

05/26/2011

pdf

text

original

 
Cognos SDK Guide by BI Centre Version 1.0
Table of Contents-----------------------------------------------------------------------------------------------
i.
Version and Disclaimer 
ii.
Overview
iii.
Getting started with your ASP.NET C# web solution
1.
VS.NET Version
2.
Cognos SDK DLL references
3.
Project Structure
iv.
Creating your SDK object class
1.
Authentication
2.
Get Content Store Objects
3.
Get Params
4.
Helper Functions
v.
Exception Handler Class
vi.
Web.config
1.
Storing credential values
vii.
Searching for Content Store Items
1.
Show all packages
2.
Show reports for a package
3.
Run a report with prompts
4.
Displaying the report results
viii.
Step-by-step
1.
Default.aspx
2.
Reports.aspx
3.
PromptPage.aspx
4.
Output.aspx
ix.
Contact for more information
Version_______________________________________________ 
Version 1.0: December 23
rd
, 2007This document applies to the “Cognos_SDK_template” C# web solution and a sample Cognos 8.1 reportbased on the GOSR package.The specific software versions used were:
 
Microsoft .NET Framework 1.1 Version: 1.1.4322 SP1Visual Studio .NET 2003 Version: 7.1.3088 Cognos 8.1
C8BISRVR_version=C8BISRVR-AW-ML-RTM-8.1.108.33-0 
C8BIMODEL_version=C8BIMODEL-AW-ML-RTM-8.1.108.33-0 
C8SDK_version=C8SDK-AW-ML-RTM-8.1.60.28-0 
Disclaimer_______________________________________________ 
While every attempt has been made to ensure that the information in this document isaccurate and complete, some typographical errors or technical inaccuracies may exist.BI Centre does not accept responsibility for any kind of loss resulting from the use of information contained in this document.This document shows the creation date, and the information contained within thisdocument is subject to change without notice.No part of this document, or the included sample project, may be copied, photocopied,reproduced, transmitted in any form or by any means, or translated into another language without the prior written consent of the BI Centre.
Overview_______________________________________________ 
The Cognos SDK Guide by BI Centre is intended to provide a Cognos SDK developer with a workable C#solution that will allow you to:
Search the Content Store for all package items
Search the Content Store for all reports that belong to a specified package
Generate a report’s prompt page
Execute the report
Display the report results in a browser window
Handle SOAP exceptions and render a meaningful error message to the user The Cognos SDK Guide by BI Centre will walk you through the steps of generating your ASP.NET C#web solution and guide you through the process of creating your: ASP.NET pages; C# Class Files for Exception handling and Cognos SDK method calls; supporting JavaScript code; deciding upon whichCognos SDK DLLs to reference; and handling basic security by using the web.config.
Getting started with your ASP.NET C# solution_______________ 
 
We will be developing our sample web solution with Visual Studio .NET 2003 (VS.NET 2003). VS.NET2003 uses .NET Framework 1.1 and that means that we need to use both cognosdotnet.dll andcognosdotnetassembly.dll in our web solution. If we were using .NET Framework 2.0 then we could usecognosdotnet_2_0.dll and cognosdotnetassembly_2_0.dll.
The full source code has been provided for you and this step would be to cover the steps in order togenerate the solution’s project structure.
Let’s get started by building the sample file and folder structure for your solution:
1.
Create a new C# web application in VS.NET 2003 and name it “
Cognos_SDK_template
”.
2.
Expand the project and right-click on References. Go ahead and add both the cognosdotnet.dlland cognosdotnetassembly.dll to your solution.
3.
You will also have to ensure that
System.Web.Services
has been added to your solution.
4.
Select the project name “
Cognos_SDK_template
” and right-click.
1.
Add a folder and name it “includes”.
2.
Add a C# Class file and name it “CognosSDK.cs”.
3.
Add a C# Class file and name it “ExHandler.cs”.
4.
Add a new .ASPX page and name it “Default.aspx”.
i.
Right-click on this file and select “Set as Start Page”.
5.
Add a new .ASPX page and name it “Reports.aspx”.
6.
Add a new .ASPX page and name it “PromptPage.aspx”.
7.
Add a new .ASPX page and name it “RunReport.aspx”.
8.
Add a new .ASPX page and name it “Output.aspx”.
9.
Add a new .HTML page and name it “PleaseWait.htm”.
5.
Select the “includes” folder and right-click.
1.
Add a new .js file and name it “CognosSDKHelper.js”.
2.
You can do an internet search for a clipart that represents an hour glass and save thefile in the “includes” folder as “executing.gif”.
You have now successfully created the main skeletal structure for your ASP.NET C#solution.
Creating your SDK object -- CognosSDK.cs__________________ 
The
CognosSDK.cs
class file is used primarily for interacting with your Cognos Content Store. You willbe adding methods that will enable you to: Authenticate and connect to the Cognos service; request andreturn Cognos Content Store objects; request and set report parameter values; and execute a report.
Authentication

Activity (7)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
Razaqaisar liked this
rickkolluri liked this
Suryakant Rao liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->