Quantcast
Channel: SCN : Document List - Java SDK Application Development
Viewing all 39 articles
Browse latest View live

Business Objects / BI Managed Java RAS SDK Sample Applications

$
0
0

Purpose

 

This Document lists sample applications using RAS managed reporting SDK.

 

Overview

 

The document contain links to Web applications.

 

Introduction

 

The samples in this document use the RAS managed reporting SDK to view, export, print and modify reports and the BOE / BI platform. Note that the BOE / BI SDK is only supported in web applications. For umanaged sample applications see Business Objects / BI Unmanaged Java RAS SDK Sample Applications.

 

Links to Sample Applications

 

 

Java_RAS2008_Managed_Display_Datasources

This Java Server Pages (JSP) sample for BOE XI R3.x demonstrates how use the RAS SDK to display the datasources used by a Crystal Report.25 Oct 2011

 

Java_RASManaged_BE12_Move_ReportObject-Position

This Java Server Pages (JSP) sample demonstrates how to change the left and top position of a report object in a Crystal Report using the RAS SDK. The result is that the report object is moved to the new position.07 Sep 2011


Java_RAS-Managed_BE12_AddGroup-SubReport

This Java Server Pages (JSP) sample demonstrates how to Add a Group to a SubReport using the RAS RCAPI SDK.25 Apr 2011


Java_RAS-Managed_BE12_AddSection-SubReport

This Java Server Pages (JSP) sample demonstrates how to add a section to a SubReport using the RAS RCAPI SDK.25 Apr 2011


Java_RAS-Managed_BE12_AddSelectionFormula-SubReport

This Java Server Pages (JSP) sample demonstrates how to Add record filtering to a SubReport using the RAS RCAPI SDK.25 Apr 2011


Java_RAS-Managed_BE12_AddSort-SubReport

This Java Server Pages (JSP) sample demonstrates how to Add a Sort FIeld to a SubReport using the RAS RCAPI SDK.25 Apr 2011


Java_RAS-Managed_BE12_View_Database-TableFieldInformation

This Java Server Pages (JSP) sample demonstrates how to retrieve and view the information for all of the data fields in a database table using the RAS SDK.25 Apr 2011


Java RAS-Managed BE14 Export RPTR

SAP Report Application Server 4.0 (2011). This Java Server Pages (JSP) sample demonstrates how to export a Crystal Report to read-only format using the Report Application Server (RAS) SDK.18 Dec 2010


Java RAS2008-managed changedbconnectionoledb

This Java Server Pages (JSP) sample demonstrates how to change an OLEDB database connection for a managed report using the RAS SDK.14 Jul 2009


Java RAS2008-managed dblogon

This Java Server Pages (JSP) sample demonstrates how to pass database logon information for a managed report using the RAS SDK.14 Jul 2009


Java RAS2008-managed discreteparameter

This Java Server Pages (JSP) sample demonstrates how to pass a discrete parameter to a managed report using the RAS SDK.14 Jul 2009


Java RAS2008-managed exportreport

This Java Server Pages (JSP) sample demonstrates how to export a managed report using the RAS SDK.14 Jul 2009


Java RAS2008-managed rangedparameters

This Java Server Pages (JSP) sample demonstrates how to pass a ranged parameter to a managed report using the RAS SDK.14 Jul 2009


Java RAS2008-managed resultset

This Java Server Pages (JSP) sample demonstrates how to pass a resultset to a managed report using the RAS SDK.14 Jul 2009


Java RAS2008-managed selectionformula

This Java Server Pages (JSP) sample demonstrates how to set a recordselection formula on a managed report using the RAS SDK.14 Jul 2009


Java RAS2008-managed setprintoptions

This Java Server Pages (JSP) sample demonstrates how to set the print options when printing a managed report using the RAS SDK.14 Jul 2009


Java RAS2008-managed suppressheader

This Java Server Pages (JSP) sample demonstrates how to set the suppress option for a report header on a managed report using the RAS SDK.14 Jul 2009


Java RAS2008-managed viewreport

This Java Server Pages (JSP) sample demonstrates how to view a managed report using the RAS SDK.14 Jul 2009


Java RAS Managed View Report Cleanup Session

This Java Sample shows how to preview a crstal report with managed RAS and cleanup Enterprise session at the end.03 Jun 2009


Report Application Server SDK Sample Code

Contains JSP sample code pages that highlight features of the RAS SDK, including report parameter and formula modification, database logon, and exporting.09 Oct 2008


Java RAS-Managed BE115 Add Tool-Tip

This Java Server Pages (JSP) sample demonstrates how to Add a Tool Tip to an Object using the RAS RCAPI SDK.02 Apr 2008


Java RAS-Managed BE115 Change Paper-Size

This Java Server Pages (JSP) sample demonstrates how to Change the Paper Size using the RAS RCAPI SDK.02 Apr 2008


Java RAS-Managed BE115 Remove Group

This Java Server Pages (JSP) sample demonstrates how to Remove a Group from a Report using the RAS RCAPI SDK.02 Apr 2008


Java RAS-Managed BE115 Remove Report-Object

This Java Server Pages (JSP) sample demonstrates how to Remove an Object from a Crystal Report.02 Apr 2008


Java RAS-Managed BE115 Set Command-Table-Location

This Java Server Pages (JSP) sample demonstrates how to Change the SQL for a Command Table.02 Apr 2008


Java RAS-Managed BE12 Export XML

This Java Server Pages (JSP) sample demonstrates how to export a Crystal Report to XML format using the Report Application Server (RAS) SDK.31 Mar 2008


Java RAS-Managed BE115 Add Border

This Java Server Pages (JSP) sample demonstrates how to Add a Border to an Object using the RAS RCAPI SDK.25 Feb 2008


Java RAS-Managed BE115 Add Database-Table

This Java Server Pages (JSP) sample demonstrates how to Add a Database Table to a Report using the RAS RCAPI SDK.25 Feb 2008


Java RAS-Managed BE115 Add Group

This Java Server Pages (JSP) sample demonstrates how to Add a Group to a Report using the RAS RCAPI SDK.25 Feb 2008


Java RAS-Managed BE115 Add Line

This Java Server Pages (JSP) sample demonstrates how to Add a Line to a Report using the RAS RCAPI SDK.25 Feb 2008


Java RAS-Managed BE115 Add Parameter

This Java Server Pages (JSP) sample demonstrates how to Add a Parameter to a report using the RAS RCAPI SDK.25 Feb 2008


Java RAS-Managed BE115 Add Section

This Java Server Pages (JSP) sample demonstrates how to Add a Section to a report using the RAS RCAPI SDK.25 Feb 2008


Java RAS-Managed BE115 Add Text-Field

This Java Server Pages (JSP) sample demonstrates how to Add a Text Field to a Report using the RAS RCAPI SDK.25 Feb 2008


Java RAS-Managed BE115 Copy Image

This Java Server Pages (JSP) sample demonstrates how to Copy an Image in a report using the RAS RCAPI SDK.25 Feb 2008


Java_RAS-Managed_BE115_Add_Database-Field

This Java Server Pages (JSP) sample demonstrates how to Add a Database Field to a Report using the RAS RCAPI SDK.25 Feb 2008


Java_RAS-Managed_BE115_Add_Database-Table-Links

This Java Server Pages (JSP) sample demonstrates how to Add Database Table Links to a Report using the RAS RCAPI SDK.25 Feb 2008


Java RAS-Managed BE115 Add formula-Field

This Java Server Pages (JSP) sample demonstrates how to Add a Formula Field to a Report using the RAS RCAPI SDK.25 Feb 2008


Java RAS-Managed BE115 Copy Image

This Java Server Pages (JSP) sample demonstrates how to Copy an Image in a report using the RAS RCAPI SDK.25 Feb 2008


Java RAS-Managed BE115 Delete Report-Object

This Java Server Pages (JSP) sample demonstrates how to Remove a Report Object using the RAS RCAPI SDK.25 Feb 2008


Java RAS-Managed BE115 Modify XML-Data Source

This Java Server Pages (JSP) sample demonstrates how to change a Crystal Report that uses an XML datasource to use a different XML datasource.25 Feb 2008


Java_RAS-Managed_BE115_Add_Database-Field

This Java Server Pages (JSP) sample demonstrates how to Add a Database Field to a Report using the RAS RCAPI SDK.25 Feb 2008


Java_RAS-Managed_BE115_Add_Database-Table-Links

This Java Server Pages (JSP) sample demonstrates how to Add Database Table Links to a Report using the RAS RCAPI SDK.25 Feb 2008


Java_RAS-Managed_BE115_Add_Image-From-File

This Java Server Pages (JSP) sample demonstrates how to Add an Image from a File to a Report using the RAS RCAPI SDK.25 Feb 2008


Report Application Server Java SDK Feature Samples

Contains JSP sample code pages that highlight features of the RAS SDK, including report parameter and formula modification, database logon, and exporting.19 Feb 2008


Java RAS-Managed BE115 Modify Section-Height

This Java Server Pages (JSP) sample demonstrates how to Resize a Section to a report using the RAS RCAPI SDK.16 Feb 2008


BusinessObjects Enterprise / SAP BusinessObjects Business Intelligence Platform 4.x Java SDK Applications

$
0
0

Purpose

 

This Document lists sample applications using the Business Objects Enterprise / BI Solution Developer Kit (SDK) for Java.

 

Overview

 

The document contain links to Web applications written in Java that demonstrate administrative tasks.

 

Introduction

 

The  samples in this document demonstrate how to use the BO / BI SDK to perform a number of administrative tasks (schedule, add user, disable user, etc.).  Note that the BOE / BI SDK is only supported in web applications, thus there are no Windows samples.

 

 

Links to Sample Applications

 

Managed BOE / BI sample applications


Java Enterprise BE12 Set Property Value

This Java Server Pages (JSP) sample demonstrates how to use the Enterprise Java SDK to set a specified property to a specified value. The type of property can be a general property, a property in the SI_SCHEDULEINFO property bag, or a property in the SI_PROCESSINFO property bag.10 Jan 2012


Add Default Destination to Publication Extension using Java SDK

The Publication Extension gets executed only if the publication is scheduled to any destination other than default destination for the publication. This code shows how to add the default destination to the publication so that the publication extension plug-in gets executed even if the publication is scheduled to default destination.01 Nov 2011


Java_Enterprise_BE12_Retrieve_Reports-ForUniverse

This Java Server Pages (JSP) sample demonstrates how to retrieve all of the Webi and Deski reports that have the specified universe name linked to them. The SI_ID, SI_NAME, and SI_KIND of the reports that have the universe linked to them will be displayed on the screen.10 Oct 2011


Java_Enterprise_BE12_Terminate_Users_ActiveSessions

This Java Server Pages (JSP) sample demonstrates how to use the Enterprise Java SDK to terminate all of a specified user's currently active sessions.24 Aug 2011


Java_Enterprise_BE12_Retrieve_FileInfo-FromInbox

This sample demonstrates how to retrieve a specified inbox entry from the currently logged in user's inbox. The file name of all of the files associated with the specified inbox entry (if it has any) will then be displayed.11 Aug 2011


Java_Enterprise_BE12_Copy_ExistingFolder-ToFolder

This Java Server Pages (JSP) sample demonstrates how to retrieve an existing folder and then create a copy of the folder in another specified folder.02 Aug 2011


Java_Enterprise_BE12_Set_Parameter-IsNoValuie-Property

This Java Server Pages (JSP) sample demonstrates how to use the Enterprise Java SDK to set the isNoValue property to true of a Crystal Report's parameters that currently have values.25 Jul 2011


Java Enterprise BE12 Get RecurringInstance Managed-Recipients

This Java Server Pages (JSP) sample demonstrates how to retrieve the recipient list (user IDs) of a recurring instance using the Enterprise Java SDK.03 Jul 2011


Java Enterprise BE12 Get RecurringInstance Managed-SendOption

This Java Server Pages (JSP) sample demonstrates how to retrieve the send option (a copy or a shortcut) of a recurring instance using the Enterprise Java SDK.03 Jul 2011


Java Enterprise BE12 Get RecurringInstance-Intervals

This Java Server Pages (JSP) sample demonstrates how to retrieve the interval information of a recurring instance using the Enterprise Java SDK.03 Jul 2011


Java_Enterprise_BE12_Get_RecurringInstance-Type

This Java Server Pages (JSP) sample demonstrates how to retrieve the type of a recurring instance using the Enterprise Java SDK.21 Jun 2011


Java_Enterprise_BE12_Publish_PDFFile

This Java Server Pages (JSP) sample demonstrates how to publish a pdf file using the Enterprise SDK.01 May 2011


Java_Enterprise_BE12_Create_JavaProgramObjects-ThatCanFail

The .java file provided in this sample can act as a template to create a Java Program Object jar file that can be published to the Central Management Console (CMC) and then scheduled from the CMC. This sample allows for the Java Program Object to fail if an error is encountered.25 Apr 2011


Java_Enterprise_BE12_Schedule-Now-PDF_CustomDatabaseLogonInfo

This Java Server Pages (JSP) sample demonstrates how to schedule a Crystal Report now with custom database logon information using the Enterprise SDK.25 Apr 2011


Java_Enterprise_BE12_Set_CustomDatabaseLogonInfo

This Java Server Pages (JSP) sample demonstrates how to set the custom database logon information for a Crystal Report using the Enterprise SDK.25 Apr 2011


Java_RAS-Managed_BE12_AddGroup-SubReport

This Java Server Pages (JSP) sample demonstrates how to Add a Group to a SubReport using the RAS RCAPI SDK.25 Apr 2011


Java_RAS-Managed_BE12_AddSection-SubReport

This Java Server Pages (JSP) sample demonstrates how to add a section to a SubReport using the RAS RCAPI SDK.25 Apr 2011


Java_RAS-Managed_BE12_AddSelectionFormula-SubReport

This Java Server Pages (JSP) sample demonstrates how to Add record filtering to a SubReport using the RAS RCAPI SDK.25 Apr 2011


Java_RAS-Managed_BE12_AddSort-SubReport

This Java Server Pages (JSP) sample demonstrates how to Add a Sort FIeld to a SubReport using the RAS RCAPI SDK.25 Apr 2011


Java_RAS-Managed_BE12_View_Database-TableFieldInformation

This Java Server Pages (JSP) sample demonstrates how to retrieve and view the information for all of the data fields in a database table using the RAS SDK.25 Apr 2011


Java_Enterprise_BE115_Change_Roles_On_Groups

This sample shows how to change a groups role using the Enterprise Java SDK.14 Apr 2011


Java_Enterprise_BE115_Disable_Multiple_Users

This sampe shows how to disable multiple users using the Enterprise Java SDK.14 Apr 2011


Java_Enterprise_BE12_Update_Database_Info

This sample shows how to update the database info of a Crystal Report using the Java Enterprise SDK.14 Apr 2011


Java Enterprise BE14 CR Export Excel2007

SAP BusinessObjects Enterprise BI 4.0 - this Java Server Pages (JSP) sample demonstrates how to export to the Excel 2007 data-only format via the Viewer SDK28 Dec 2010


Java Enterprise BE14 CR Export RPTR

SAP BusinessObjects Enterprise BI 4.0 - Crystal Reports. This Java Server Pages (JSP) sample demonstrates how to export to the Crystal Report read-only format via the Viewer SDK18 Dec 2010


Java Enterprise BE14 CR Web View Remove Export Formats

SAP BusinessObjects Enterprise BI 4.0 - Crystal Reports. This Java Server Pages (JSP) sample demonstrates how to remove export formats from the Crystal Reports Web Viewer.18 Dec 2010


Java DAC BE14 Change Connection Password

SAP BusinessObjects Enterprise BI 4.0 - This Java Server Pages (JSP) sample demonstrates how to change a Data Connection password using the Data Access Connection SDK17 Dec 2010


Java Enterprise BE12 Check And Add License Key

This unsupported sample shows how to add a license key to BusinessObjects Enterprise using the Java SDK.10 Dec 2010


JAVA Enterprise BE115 Update Webi Binary Stream Size

This sample shows how to update the Binary Maximum Stream Size for the Webi Report Server using the BusinessObjects Enterprise XI R2 SDK.17 Aug 2010


Java_Enterprise_BE115_Set_Infoview_Viewer

How to set users default viewer in Infoview using the Java Enterprise SDK.26 Mar 2010


Java_Enterprise_BE12_Delete_Report

How to delete a Crystal Report from Business Objects Enterprise XI 3.1 using the Java Enterprise SDK.26 Mar 2010


Java_Enterprise_BE12_Publishing_Report

How to publish a Crystal Report to Business Objects Enterprise XI 3.1 using the Java Enterprise SDK.26 Mar 2010


Java_Enterprise_BE12_Update_Database_Information

How to update username and password for a Crystal Report published to Business Objects Enterprise XI 3.1 using the Java Enterprise SDK.26 Mar 2010


Java Enterprise BE115 Send Report to SMTP

This Java Server Pages (JSP) sample demonstrates how to send a crystal report to SMTP on a Business Objects Enterprise XI R2 system.15 Jul 2009


Java Enterprise BE12 Add User To User Group

This Java Server Pages (JSP) sample demonstrates how to add a user to a user group on a Business Objects Enterprise XI 3.1 system.15 Jul 2009


Java Enterprise BE12 Change User Name

This Java Server Pages (JSP) sample demonstrates how to change a users username on a Business Objects Enterprise XI 3.1 system.15 Jul 2009


Java Enterprise BE12 Change User Password

This Java Server Pages (JSP) sample demonstrates how to change a users password on a Business Objects Enterprise XI 3.1 system.15 Jul 2009


Java Enterprise BE12 List All Groups that a User Belongs to

This Java Server Pages (JSP) sample demonstrates how to display all the groups that a user belongs to on a Business Objects Enterprise XI 3.1 system.15 Jul 2009


Java Enterprise BE12 List All Users

This Java Server Pages (JSP) sample demonstrates how to display all the user accounts on a Business Objects Enterprise XI 3.1 system.15 Jul 2009


Java Enterprise BE12 Remove User from User Group

This Java Server Pages (JSP) sample demonstrates how to remove a user from a usergroup on a Business Objects Enterprise XI 3.1 system.15 Jul 2009


Java Enterprise BE115 Send Report to Inbox

This Java Server Pages (JSP) sample demonstrates how to send a crystal report to a users inbox on a Business Objects Enterprise XI R2 system.15 Jul 2009


Java Enterprise BE115 Send Report to SMTP

This Java Server Pages (JSP) sample demonstrates how to send a crystal report to SMTP on a Business Objects Enterprise XI R2 system.15 Jul 2009


Java Enterprise BE12 Add ServerGroup

This Java Server Pages (JSP) sample demonstrates how to add a server group to a Business Objects Enterprise XI 3.1 system.15 Jul 2009


Java Enterprise BE12 Add User To User Group(2)

This Java Server Pages (JSP) sample demonstrates how to add a user sub-group to a Business Objects Enterprise XI 3.1 system.15 Jul 2009


Java Enterprise BE12 Add User To User Group

This Java Server Pages (JSP) sample demonstrates how to add a user to a user group on a Business Objects Enterprise XI 3.1 system.15 Jul 2009


Java Enterprise BE12 Change User Name

This Java Server Pages (JSP) sample demonstrates how to change a users username on a Business Objects Enterprise XI 3.1 system.15 Jul 2009


Java Enterprise BE12 Change User Password

This Java Server Pages (JSP) sample demonstrates how to change a users password on a Business Objects Enterprise XI 3.1 system.15 Jul 2009


Java Enterprise BE12 Create Basic Publication

This Java Server Pages (JSP) sample demonstrates how to create a basic publication in Business Objects Enterprise XI 3.115 Jul 2009


Java Enterprise BE12 Create-Publication CR-PDF

This Java Server Pages (JSP) sample demonstrates how to create a basic publication with a crystal report in Business Objects Enterprise XI 3.1. The results will be combined into a single password protected PDF.15 Jul 2009


Java Enterprise BE12 Create-Publication with CR

Code Sample(ZIP 6 KB) This Java Server Pages (JSP) sample demonstrates how to create a basic publication with a crystal report in Business Objects Enterprise XI 3.115 Jul 2009

 

Java Enterprise BE12 Delete ServerGroup

This Java Server Pages (JSP) sample demonstrates how to delete a server group on a Business Objects Enterprise XI 3.1 system.15 Jul 2009


Java Enterprise BE12 Delete User

This Java Server Pages (JSP) sample demonstrates how to delete a user account on a Business Objects Enterprise XI 3.1 system.15 Jul 2009


Java Enterprise BE12 Disable User Account

This Java Server Pages (JSP) sample demonstrates how to disable a user account on a Business Objects Enterprise XI 3.1 system.15 Jul 2009


Java Enterprise BE12 Display Server Metrics

This Java Server Pages (JSP) sample demonstrates how to display some server metrics for a Business Objects Enterprise XI 3.1 system.15 Jul 2009


Java Enterprise BE12 List All Groups that a User Belongs to

This Java Server Pages (JSP) sample demonstrates how to display all the groups that a user belongs to on a Business Objects Enterprise XI 3.1 system.15 Jul 2009


Java Enterprise BE12 List All ServerGroups

This Java Server Pages (JSP) sample demonstrates how to display all the servergroups on a Business Objects Enterprise XI 3.1 system.15 Jul 2009


Java Enterprise BE12 List All Users

This Java Server Pages (JSP) sample demonstrates how to display all the user accounts on a Business Objects Enterprise XI 3.1 system.15 Jul 2009


Java Enterprise BE12 List User Aliases

This Java Server Pages (JSP) sample demonstrates how to display all the user aliases for a user account on a Business Objects Enterprise XI 3.1 system.15 Jul 2009


Java Enterprise BE12 Remove User from User Group

This Java Server Pages (JSP) sample demonstrates how to remove a user from a usergroup on a Business Objects Enterprise XI 3.1 system.15 Jul 2009


Java Enterprise BE12 Set Adaptive Server Destination Opts

This Java Server Pages (JSP) sample demonstrates how to set the adaptive server destination options on a Business Objects Enterprise XI 3.1 system.15 Jul 2009


Java Enterprise BE12 Set Param Values In Publication with Refresh

This Java Server Pages (JSP) sample demonstrates how to set parameter values for a report in a publication in Business Objects Enterprise XI 3.1. At the same time, it will also update the processing values in the publication with the ones in the report.15 Jul 2009


Java Enterprise BE12 Set Param Values In Publication

This Java Server Pages (JSP) sample demonstrates how to set parameter values for a report in a publication in Business Objects Enterprise XI 3.115 Jul 2009


Java Enterprise BE12 Set Publication Profile Personalization Param

This Java Server Pages (JSP) sample demonstrates how to set a parameter value for a personalization value for a publication in Business Objects Enterprise XI 3.115 Jul 2009


Java Enterprise BE12 Start Server

This Java Server Pages (JSP) sample demonstrates how to start a server on a Business Objects Enterprise XI 3.1 system.15 Jul 2009


Java Enterprise BE12 Stop Server

This Java Server Pages (JSP) sample demonstrates how to stop a server on a Business Objects Enterprise XI 3.1 system.15 Jul 2009


Java Enterprise BE12 Add CR to Publication

This Java Server Pages (JSP) sample demonstrates how to add a crystal report to a publication in Business Objects Enterprise XI 3.114 Jul 2009


Java Enterprise BE12 Add Enterprise Group to Publication

This Java Server Pages (JSP) sample demonstrates how to add dynamic recipients from a webi report for a publication in Business Objects Enterprise XI 3.114 Jul 2009


Java Enterprise BE12 Add Enterprise User to Publication

This Java Server Pages (JSP) sample demonstrates how to add an enterprise user as a recipient to a publication in Business Objects Enterprise XI 3.114 Jul 2009


BusinessObjects Enterprise SDK Java Applications - Content Management

This is an archive of all the Enterprise Java Content Management samples on the BOC.29 Dec 2008


BusinessObjects Enterprise SDK Java Applications - Scheduling

This is an archive of all the Enterprise Java Scheduling samples on the BOC.29 Dec 2008


BusinessObjects Enterprise SDK Java Applications - Security Management

This is an archive of all the Enterprise Java Security Management samples on the BOC.29 Dec 2008


BusinessObjects Enterprise SDK Java Applications - Server Management

This is an archive of all the Enterprise Java Server Management samples on the BOC.29 Dec 2008


BusinessObjects Enterprise SDK Java Applications - User Management

This is an archive of all the Enterprise Java User Management samples on the BOC.29 Dec 2008


BusinessObjects Enterprise SDK Java Applications - Viewing

This is an archive of all the Enterprise Java Viewing samples on the BOC.29 Dec 2008


BusinessObjects Enterprise Java SDK Sample Code

Contains JSP sample code pages that highlight features of the BusinessObjects Enterprise SDK, including authentication, scheduling, publishing, server administration and auditing, and managing repository objects.09 Oct 2008


Java Enterprise BE12 Create AcCEss Level

This Java Server Pages (JSP) sample demonstrates how to create a new Access Level (CustomRole) using XI 3.0 BusinessObjects Enterprise Java SDK.30 Apr 2008


Java Enterprise BE115 Retrieve Parameter-Information

This Java Server Pages (JSP) sample demonstrates how to display information on all parameters in the report.02 Apr 2008


Java Enterprise BE115 Set Advanced-Rights

This Java Server Pages (JSP) sample demonstrates how to set advanced rights on rppt folder for administrator's group.02 Apr 2008


Java Enterprise BE12 Clone Server

This Java Server Pages (JSP) sample demonstrates how to clone a BusinessObjects Enterprise XI 3.0 Server.02 Apr 2008


Java Enterprise BE12 Create Server

"This Java Server Pages (JSP) sample demonstrates how to create a Server on BusinessObjects Enterprise XI 3.0 In previous versions, Enterprise Servers are managed as Windows Services or Unix daemons that are created through the Central Configuration Manager(CCM). With XI 3.0, the Service Intelligence Agent (SIA) manages the Enterprise Servers, and Server creation is done through the Enterprise Java SDK. In this new model, the SDK interface to the SIA is the EnterpriseNode. The EnterpriseNode manages a collection of Servers, such as the Central Management Server (CMS) or the Report Application Server (RAS).02 Apr 2008


Java Enterprise BE12 List Server-Services

"This Java Server Pages (JSP) sample demonstrates how to retrieve BusinessObjects Enterprise XI 3.0 Server properties and their hosted Services. Hosted Services are new with XI 3.0."02 Apr 2008

Java-Enterprise BE115 List Active-Users

This Java Script (JS) sample lists the current Active Users Logged on to Enterprise and some of their properties.02 Apr 2008

Java_Enterprise_BE115_Modify_Inbox-Properties

This Java Server Pages (JSP) sample demonstrates how to modify the properties of an inbox.02 Apr 2008

Java_Enterprise_BE115_Remove_User.zip

This Java Server Pages (JSP) sample demonstrates how to Remove a User.02 Apr 2008

Java_Enterprise_BE115_Schedule_To-Disk-CR

This Java Server Pages (JSP) sample demonstrates how to Schedule a report to Disk02 Apr 2008

Java_Enterprise_BE115_Schedule_To-Inbox-CR

This Java Server Pages (JSP) sample demonstrates how to Schedule a report to an Enterprise Inbox02 Apr 2008

Java_Enterprise_BE115_Schedule_To-Inbox-CR

This Java Server Pages (JSP) sample demonstrates how to Schedule a report to an Enterprise Inbox02 Apr 2008

Java_Enterprise_BE12_Atomic_Commit

This Java Server Pages (JSP) sample demonstrates how to use the new InfoStore atomic commit functionality.02 Apr 2008

Java Enterprise BE12 Create Publication-CR-PDF

This Java Server Pages (JSP) sample demonstrates how to create a Publication with a Crystal Report using the SAP BusinessObjects Enterprise SDK. The Crystal Reports will merged into a single PDF and password protected.02 Apr 2008

Java Enterprise BE12 SSO InfoView

This Java Server Pages (JSP) sample demonstrates how to single sign-on to XI 3.0 Java InfoView by creating and passing a serialized Enterprise Session.31 Mar 2008

Java Enterprise BE12 Export Biar

This Java Server Pages (JSP) sample demonstrates how to export content from BusinessObjects Enterprise to a Business Intelligence Archive (biar) file.26 Mar 2008

 

Java Enterprise BE12 Import Biar

This Java Server Pages (JSP) sample demonstrates how to import content from a Business Intelligence Archive (biar) file into BusinessObjects Enterprise.26 Mar 2008

Java Enterprise BE12 Assign Access Level

This Java Server Pages (JSP) sample demonstrates how to assign Access Levels (also known as Custom Roles) to a Principal in BusinessObjects Enterprise XI 3.0. Previous versions of Enterprise allowed only a single Access Level to be assigned. XI 3.0 allows multiple Access Levels to be assigned.20 Mar 2008

Java Enterprise BE12 Assign No Access

This Java Server Pages (JSP) sample demonstrates how to assign the "No Access" Access Level to an InfoObject in BusinessObjects Enterprise XI 3.0. Previous versions of Enterprise have a "No Access" Access Level assignable to an ObjectPrincipal. With XI 3.0, there is no "No Access" Access Level - rather, the "No Access" is defined as an ExplicitPrincipal having no explicit roles or rights assigned, and rights inheritance from Folder and UserGroup parents disabled.20 Mar 2008

Java Enterprise BE12 Clone Access Level

This Java Server Pages (JSP) sample demonstrates how to clone a pre-existing Access Level (also known as a Custom Role) using the XI 3.0 BusinessObjects Enterprise Java SDK. Since BusinessObjects Enterprise has quite a number of rights, it is convenient to clone a default Access Level and grant/deny rights as required.20 Mar 2008

Interactive Editor Integration Java Sample

This sample demonstrates how to integrate the Java Interactive Editing Viewer in a third party application. The Interactive Editing Viewer views both Web and Desktop Intelligence documents. It also allows you to create or edit Web Intelligence documents.10 Mar 2008

BusinessObjects Enterprise Java SDK Feature Samples

Contains JSP sample code pages that highlight features of the BusinessObjects Enterprise SDK, including authentication, scheduling, publishing, server administration and auditing, and managing repository objects.28 Feb 2008
Java Enterprise BE115 Schedule Report-to-SMTP

This Java Server Pages (JSP) sample demonstrates how to schedule a Crystal Report to SMTP.25 Feb 2008

Java_Enterprise_BE115_Modify_Report-Files

This Java Server Pages (JSP) sample demonstrates how to publish a report and overwrite the si_files. Instances of the original report are unchanged.25 Feb 2008

Java_Enterprise_BE115_Set_Multivalue-Parameters.zip

This Java Server Pages (JSP) sample demonstrates how to set a multivalue parameter and view a Crystal Report.25 Feb 2008

Java_RAS-Managed_BE115_Add_Database-Field

This Java Server Pages (JSP) sample demonstrates how to Add a Database Field to a Report using the RAS RCAPI SDK.25 Feb 2008

Java_RAS-Managed_BE115_Add_Database-Table-Links

This Java Server Pages (JSP) sample demonstrates how to Add Database Table Links to a Report using the RAS RCAPI SDK.25 Feb 2008

Java_RAS-Managed_BE115_Add_Image-From-File

This Java Server Pages (JSP) sample demonstrates how to Add an Image from a File to a Report using the RAS RCAPI SDK.25 Feb 2008

Java Enterprise BE115 Get Default-Crystal-Parameters

This Java Server Pages (JSP) sample demonstrates how to retrieve the default parameter values for a Crystal report that are stored in the BusinessObjects Enterprise XI R2 CMC.16 Feb 2008

Java Enterprise BE115 Get Email-Scheduled-Instance

This Java Server Pages (JSP) sample demonstrates how to retrieve the email addresses that a scheduled report is going to. This will work for currently scheduled instances and already run instances.16 Feb 2008

Java Enterprise BE115 Get User-Aliases

This Java Server Pages (JSP) sample demonstrates how to display all the aliases for a specific user Account.16 Feb 2008

Java Enterprise BE115 Clear-Report-Parameter-Values

This Java Server Pages (JSP) sample demonstrates how to clear the default parameter values for a Crystal Report in Enterprise.01 Feb 2008

Java Enterprise BE115 Disable-User-Account

This Java Server Pages (JSP) sample demonstrates how to Disable a User Account.01 Feb 2008

Java Enterprise BE115 Get-InstanCE-Filename

This Java Server Pages (JSP) sample demonstrates how to Retrieve the filename of an instance.01 Feb 2008

Java Enterprise BE115 Get-Report-Data-Displayed

This Java Server Pages (JSP) sample demonstrates how to retrieve the data from a report. This sample will retrieve just the data that is being displayed on the report01 Feb 2008

Java Enterprise BE115 Purge-Inbox

This Java Server Pages (JSP) sample demonstrates how to purge a user's inbox. There are no filters. The application will remove all objects in the user's inbox.01 Feb 2008

Java Enterprise BE115 Purge-Report-Instances

This Java Server Pages (JSP) sample demonstrates how to purge instances of reports using a batched method. It currently is set to purge all instances for all reports on the Enterprise system.01 Feb 2008

Java Enterprise BE115 Retrieve-Report-Data

This Java Server Pages (JSP) sample demonstrates how to retrieve the data from a report. This sample will retrieve all of the saved data from a report.01 Feb 2008

 

Add File Event to BusinessObjects Enterprise

This Java Server Pages (JSP) sample demonstrates how to add a file event to BusinessObjects Enterprise or Crystal Reports Server.29 Jan 2008

Add Folder to BusinessObjects Enterprise

This Java Server Pages (JSP) sample demonstrates how to add a folder to BusinessObjects Enterprise and Crystal Report Server.29 Jan 2008

Add Processing Extension to BusinessObjects Enterprise

This sample JSP shows how to register your Processing Extension to BusinessObjects Enterprise system.29 Jan 2008

Add Processing Extension to Report

This sample demonstrates how to add a Processing Extension to a managed report in BusinessObjects Enterprise. Running the report will cause the processing extension to run.29 Jan 2008

Add Schedule Event to BusinessObjects Enterprise XI

The following sample shows how to create a schedule event in Business Objects Enterprise. This should also work in Crystal Enterprise and Crystal Reports Server.29 Jan 2008

Add an Object to a Category

This Java sample demonstrates how to add a object in the CMS to a category.29 Jan 2008

Add an Object to an 'Object Package'

This sample JSP shows how to add an object to an 'Object Package' in BusinessObjects Enterprise.29 Jan 2008

Create 'Object Package' in BusinessObjects Enterprise

This Java sample shows how to create an 'Object Package' in BusinessObjects Enterprise and Crystal Reports Server.29 Jan 2008

Create Object Package in BusinessObjects Enterprise

This Java Server Pages (JSP) sample demonstrates how to create an object package in BusinessObjects Enterprise and Crystal Reports Server.29 Jan 2008

Create a Report Shortcut in BusinessObjects Enterprise

This Java sample demonstrates how to create a report shortcut in BusinessObjects Enterprise XI.29 Jan 2008

Delete Category from Business Objects Enterprise

This samples shows how to delete a category from Business Objects Enterprise and Crystal Reports Server29 Jan 2008

Delete Event from BusinessObjects Enterprise

Sample to demonstrate how to delete an Event in Crystal Reports Server and Business Objects Enterprise.29 Jan 2008

Delete Inbox Object from Business Objects Enterprise

Java sample shows how to remove an object from an Enterprise Inbox.29 Jan 2008

Delete a Folder in Business Objects Enterprise

JSP sample to demonstrate deleting a folder in Business Objects Enterprise or Crystal Reports Server.29 Jan 2008

Add Custom Event to BusinessObjects Enterprise

This Java Server Pages (JSP) sample demonstrates how to add a custom event to Business Objects Enterprise XI. This code should also work with XI R2.24 Jan 2008

Create a New BusinessObjects Enterprise Category

This Java Server Pages (JSP) sample demonstrates how to add a new category to BusinesObjects Enterprise.24 Jan 2008

 

Federation SDK Sample Application

This sample application shows how to use the federation SDK. The JSP displays a form that prompts the user to enter information about the origin site and the destination site. When the form is submitted, it creates a replication list on the origin, creates the remote connection and replication job on the destination, and schedules the job to execute immediately. NOTE: to run this sample application, you need two BusinessObjects Enterprise deployments, one to act as the origin site and the other to act as the destination.21 Apr 2008

Archive BusinessObjects Enterprise XI Reports

The BOEArchiver is a solution that was created for a customer to allow them to be able to archive accounting report snapshots in non vendor specific formats. This BOEArchiver is a Java class that can be published to BusinessObjects Enterprise as a program object. Users and administrators can archive reports by sending report instances to the destination of Inbox set up for an account called ##Archive. When the BOEArchiver is scheduled to run, it will archive all of the report instances from the designated Enterprise Inbox destination. If the instance is a Crystal Report then an export will be performed to change its format to PDF, Word, Excel, or CSV.27 Nov 2008

 

Java Enterprise BE115 Add License-Key

This Java Server Pages (JSP) sample demonstrates how to Add a License Key to an Enterprise System.31 Dec 2007

 

Java Enterprise BE115 Add Users-Batch

This Java Server Pages (JSP) sample demonstrates how to Add Users as a batch process.31 Dec 2007

Java Enterprise BE115 Change User-Account-Name

This Java Server Pages (JSP) sample demonstrates how to Change a Users Account Name.31 Dec 2007

Advanced Enterprise Development with Crystal Reports Samples

Code samples to accompany Advanced Enterprise Development presentation. Learn how to combine Java POJOs or .NET Datasets with BusinessObjects Enterprise to reduce the load on your database. Understand new techniques for exporting XML Data Streams from the Report Application Server to an external process. Hear best practice guidelines for deploying your applications to your servers. Take home the code that will help you master these new techniques.16 May 2007

User / Group Analysis Tool

The main use is of this sample is to add administrative functionality that is currently not a part of XI R2. Users of BusinessObjects 6.x may be familiar with the Supervisor that gave them this type of information although not as neat as this. Supervisor does not give counts and the ability to search through or modify a record selection to just choose specific users or groups. Since these are Crystal reports, you can also create alerts, conditional formatting, etc. In additional, since these are text files, you can report off of and compare two deployments and search for differences or similarities.29 Mar 2007

BusinessObjects J2EE Web Services Consumer API Portal Sample Application

Download the portal sample to learn how to use the web services consumer API using J2EE09 Jun 2006

Crystal Reports Server XI JSP sample applications

This is a collection of Java Server Pages (JSP) sample applications that demonstrate commonly used API functionality in the Crystal Reports Server XI Java SDK.09 Dec 2005

 

Schedule Report With Parameter

This JSP sample shows how to set parameters and schedules the crystal report.28 Feb 2005

 

BusinessObjects Enterprise XI R2 SDK Java Sample Application

This Java sample demonstrates logging on and off of Business Objects Enterprise XI R2 as well as scheduling, renaming, and viewing reports.25 Aug 2005

 

Schedule Report Logon

This JSP sample shows how to set database logon and schedule the report in Business Objects Enterprise.28 Feb 2005

 

BusinessObjects Web Services Java SDK Applications

$
0
0

Purpose

 

This Document lists sample applications using the WS SDK.

 

Overview

 

The Document contain links to applications using the BusinessObjects Enterprise WS Java SDK..

 

Introduction

 

The samples in this document use the BusinessObjects Enterprise WS Java SDK which enables you to incorporate functionality such as organize reports in folders, schedule and view reports, allow administrators to carry out tasks such as managing servers, users, user groups etc.

 

Links to Sample Applications

 

XIR3 JSP WebServices Add Category

This JSP Webservices sample shows how to add a category in BusinessObjects Enterprise XI 3.1 26 Aug 2010


XIR3 JSP WebServices Add Custom Event

This JSP Webservices sample shows how to add a custom event in BusinessObjects Enterprise XI 3.1 26 Aug 2010


XIR3 JSP WebServices Add File Event

This JSP Webservices sample shows how to add a file event in BusinessObjects Enterprise XI 3.1 26 Aug 2010


XIR3 JSP WebServices Add Folder

This JSP Webservices sample shows how to add a folder in BusinessObjects Enterprise XI 3.1 26 Aug 2010


XIR3 JSP WebServices Add Group

This JSP Webservices sample shows how to add a group in BusinessObjects Enterprise XI 3.1 26 Aug 2010


XIR3 JSP WebServices Add Report Shortcut

This JSP Webservices sample shows how to add a report shortcut in BusinessObjects Enterprise XI 3.1 26 Aug 2010


XIR3 JSP WebServices Add Schedule Event

This JSP Webservices sample shows how to add a schedule event in BusinessObjects Enterprise XI 3.1 26 Aug 2010

 

Java WebServices BE115 List Server-Group-Servers

This Java Server Pages (JSP) sample demonstrates how to display a list of the Servers in a Server Group.30 Apr 2008


Java WebServices BE115 List Server-Groups

This Java Server Pages (JSP) sample demonstrates how to display a list of the Server Groups.30 Apr 2008


Java WebServices BE115 List Servers

This Java Server Pages (JSP) sample demonstrates how to display a list of servers.30 Apr 2008


Java WebServices BE115 View DB-Logon-CR

This Java Server Pages (JSP) sample demonstrates how to view a Crystal Report that connects to a secure database.02 Apr 2008


Java WebServices BE115 View Drilldown-CR

This Java Server Pages (JSP) sample demonstrates how to view a Crystal Report in HTML format and handle any drill downs that are in the report.02 Apr 2008


Java WebServices BE115 Add User-Group

This Java Server Pages (JSP) sample demonstrates how to add a User Group to the BusinessObjects Enterprise system.31 Mar 2008


Java WebServices BE115 Add User

This Java Server Pages (JSP) sample demonstrates how to add a user with a secEnterprise alias to the BusinessObjects Enterprise system.31 Mar 2008


Java WebServices BE115 Display Folder-Objects

This Java Server Pages (JSP) sample demonstrates how to display the objects in a folder. By default this sample will search for a folder located directly under the Root Folder. To search in a different location update the query used in the sample.31 Mar 2008


Java WebServices BE115 Display Inbox-Objects

This Java Server Pages (JSP) sample demonstrates how to display the objects in an inbox.31 Mar 2008


Java_WebServices_BE115_Add_User-To-User-Group

This Java Server Pages (JSP) sample demonstrates how to add an existing User to an existing User Group in a BusinessObjects Enterprise system.31 Mar 2008


ws_JSP_Java_Bypass_Java_InfoView

This sample shows how to bypass the Java Infoview logon using the Java Web Services SDK.14 Apr 2011


CMS Cluster Member Caching After DSWS Provider Restart

ThIS sample demonstrates how to trigger CMS cluster member caching after an application server restart. It iterates over a list of known CMS cluster members and attempts to log in to each one using an empty credential set. If it is not able to connect to the CMS cluster member, it proceeds to the next one. If the login request succeeeds or if it is refused due to the invalid credentials, then the CMS cluster member is valid and the CMS cluster members are cached automatically by the DSWS provider.01 Dec 2008


BusinessObjects Web Services Java SDK Feature Samples

Contains JSP sample code pages that highlight features of the BusinessObjects Web Services SDK, including authentication, scheduling, publishing, server administration, managing repository objects, and viewing documents.28 Feb 2008

Java Enterprise BE12 Get Universe Revision Number

$
0
0

This document provides a way to get the universe revision number using Business Intelligence platform Java SDK.

 

For more scripts and information on how to run these scripts refer to the blog avaiable here:

http://scn.sap.com/people/shawn.penner/blog/2013/06/04/scripts-and-samples

Below is the Java Server Pages (JSP) sample

 

Note:

•You would need to change the userName, password, cmsName  to the values specific to your enterprise server in the provided sample code.

• The sample code is tested with BO XI 3.1 version of SAP BusinessObjects Platform

 

Get Universe Revision Number

<%@ page import = "com.crystaldecisions.sdk.framework.*,
com.crystaldecisions.sdk.occa.infostore.IInfoStore,
com.crystaldecisions.sdk.occa.infostore.IInfoObject,
com.crystaldecisions.sdk.occa.infostore.IInfoObjects,
com.businessobjects.sdk.plugin.desktop.universe.*,
com.crystaldecisions.sdk.exception.SDKException,
com.crystaldecisions.sdk.properties.*,
com.crystaldecisions.sdk.plugin.desktop.common.*,
java.util.*"
%>
<%
String userName="administrator-user";           //administrator user
String password="administrator-password";    // administrator password
String CMSName="localhost:6400";                //CMS name
String AuthType="secEnterprise";                   //Authentication
try
{
IEnterpriseSession boeSession = CrystalEnterprise.getSessionMgr().logon(userName, password, CMSName,AuthType);
IInfoStore iStore = (IInfoStore)boeSession.getService("InfoStore");
IInfoObjects oInfoObjects = iStore.query("SELECT SI_ID,SI_NAME,SI_REVISIONNUM FROM CI_APPOBJECTS WHERE SI_KIND='Universe'");
for(int i=0;i<oInfoObjects.size();i++)
{
IInfoObject universeInfoObject=(IInfoObject)oInfoObjects.get(i);
IUniverse oInfoObject = (IUniverse)universeInfoObject;
IProperties props=universeInfoObject.properties();
IProperty universeProperty=(IProperty)props.getProperty("SI_REVISIONNUM");
out.println("<b>Universe ID</b>: "+oInfoObject.getID()+"<br>");
out.println("<b>Universe Name</b>: " + oInfoObject.getTitle() + "</br>");
if(universeProperty!=null)
{
int universeRevisionNumber=oInfoObject.getRevisionNumber();

out.println("<b>Revision Number </b>: " +universeRevisionNumber + "</br>");

}
else
{
out.println("<b>Revision Number </b>: SI_REVISIONNUM Not Found</br>");
}
out.println("-----------------------------------------------------------------------------------------------</br>");
}
boeSession.logoff();
}
catch(Exception e)
{
out.println(e);
}
%>

Java Enterprise BE14 Get Report FRS Path

$
0
0

This document provides a way get the File Repository location for crystal/webi reports using the BusinessObjects Enterprise Platform Java SDKs.


For more scripts and information on how to run these scripts refer to the blog avaiable here:

http://scn.sap.com/people/shawn.penner/blog/2013/06/04/scripts-and-samples

Below is the Java Server Pages (JSP) sample

 

Notes:

•You would need to change the userName, password, cmsName to the values specific to your enterprise server in the provided sample code.

• The sample code is tested with BI 4.0 and 4.1 version of SAP BusinessObjects Platform.

 

 

Get Report FRS Path

<%@ page import = "com.crystaldecisions.sdk.occa.infostore.*,
com.crystaldecisions.sdk.framework.*,
com.crystaldecisions.sdk.exception.SDKException,
com.businessobjects.sdk.plugin.desktop.publication.*,
com.crystaldecisions.sdk.properties.*,
java.util.Set,
java.util.Iterator"
%>
<html>
<head></head>
<body>
<table border="2" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<th width="10%">Report ID</th>
<th width="30%"> Report Title</th>
<th width="30%"> Report Kind</th>
<th width="30%"> Report FRS Path</th>

<%


String userName = "administrator"; //adminstrator user account
String password = "password";  //administrator password
String cmsName = "localhost:6400"; //CMS server name
String authType = "secEnterprise";
String frsPathURL=null;
IEnterpriseSession enterpriseSession=null;
try {
enterpriseSession = CrystalEnterprise.getSessionMgr().logon(userName, password, cmsName, authType);
IInfoStore infoStore = (IInfoStore)enterpriseSession.getService("", "InfoStore");
String query = "select si_id,si_name,si_kind,si_files from ci_infoobjects where si_kind in ('crystalreport','webi') and si_instance=0";
IInfoObjects oInfoObjects = (IInfoObjects)infoStore.query(query) ;
for(int i=0;i<oInfoObjects.size();i++)
{
IInfoObject oInfoObject = (IInfoObject) oInfoObjects.get(i);
IProperties props=oInfoObject.properties();

out.println("<tr><td>"+oInfoObject.getID()+"</td>");
out.println("<td>"+oInfoObject.getTitle()+"</td>");
out.println("<td>"+oInfoObject.getKind()+"</td>");
if(props.getProperty("SI_FILES") !=null)
{
IFiles reportFiles=(IFiles)oInfoObject.getFiles();
frsPathURL=reportFiles.getFRSPathURL();
out.println("<td>"+frsPathURL+"</td></tr>");
}
else
{
out.println("<td>SI_FILES Donot Exists</td></tr>");
}
}

}
catch(SDKException sdkEx) {
out.println(sdkEx);
}
finally
{
if(enterpriseSession !=null)
{
enterpriseSession.logoff();
}
}

%>

Java Enterprise BE14 Get Universe And Connection Details

$
0
0

This document provides a way get universe name(.UNV universes) and their associated connection names using the BusinessObjects Enterprise Platform Java SDKs.


For more scripts and information on how to run these scripts refer to the blog avaiable here:

http://scn.sap.com/people/shawn.penner/blog/2013/06/04/scripts-and-samples

Below is the Java Server Pages (JSP) sample

 

Notes:

•You would need to change the userName, password, cmsName to the values specific to your enterprise server in the provided sample code.

• The sample code is tested with BI 4.0 and 4.1 version of SAP BusinessObjects Platform.

 

 

Universe And Connection Details

<%@ page import = "com.crystaldecisions.sdk.framework.*" %>
<%@ page import = "com.crystaldecisions.sdk.occa.infostore.*" %>
<%@ page import = "java.util.*" %>
<%@ page import = "java.io.*" %>
<%@ page import = "com.crystaldecisions.sdk.properties.IProperties"%>
<%@ page import = "com.crystaldecisions.sdk.properties.IProperty"%>

 


<html>
<head></head>
<body>
<table border="2" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<th width="30%"> Universe Name</th>
<th width="30%"> Connection Name</th>
</tr>

<%
    IInfoStore iStore=null;
  
String connectionTotalValue=null;
String connectionName=null;

    String user = "Administrator";                   //administrator username
    String password = "Password1";             //administrator password 
    String cmsName = "localhost:6400";      //cms name   
    String apsAuthType = "secEnterprise";

try
{
  IEnterpriseSession es  = CrystalEnterprise.getSessionMgr().logon(user, password, cmsName, apsAuthType);
  iStore = (IInfoStore)es.getService("","InfoStore");
 
 
  String query="select si_id,si_name,si_dataconnection from ci_appobjects where si_kind='universe'";
  IInfoObjects universeObjects = (IInfoObjects)iStore.query(query);
  for(int i=0;i<universeObjects.size(); i++)
  {
   IInfoObject universeObject = (IInfoObject)universeObjects.get(i);
   out.print("<tr><td>"+ universeObject.getTitle() + "</td>");
   IProperties universeProperties=(IProperties)universeObject.properties();
   IProperties connectionProperties=(IProperties)universeProperties.getProperties("SI_DATACONNECTION");
   if(connectionProperties != null)
   {
   IProperty connectionTotal=(IProperty)connectionProperties.getProperty("SI_TOTAL");
   if(connectionTotal != null)
   {
   connectionTotalValue=connectionTotal.getValue().toString();
    Integer outputFile=new Integer(connectionTotalValue);
    for(int j=1 ; j<=outputFile.intValue() ; j++)
    {
    String connectionID=connectionProperties.getProperty(""+j).getValue().toString();
    IInfoObjects connectionObjects=iStore.query("Select si_id,si_name from ci_appobjects where si_id="+connectionID);
    IInfoObject connectionObject=(IInfoObject)connectionObjects.get(0);
    connectionName=connectionObject.getTitle();
   out.print("<td>"+connectionName+ "</td></tr>");
  

  }
  }
  }

}
}
catch(Exception e)
{
  out.println(e);
}
%>

Java Enterprise BE14 Set Publication Report Bursting Method

$
0
0

This document provides a way set a publications report bursting method using the BusinessObjects Enterprise Platform Java SDKs.


For more scripts and information on how to run these scripts refer to the blog avaiable here:

http://scn.sap.com/people/shawn.penner/blog/2013/06/04/scripts-and-samples

Below is the Java Server Pages (JSP) sample

 

Notes:

•You would need to change the userName, password, cmsName and the publication SI_ID in the query to the values specific to your enterprise server in the provided sample code.

• The sample code is tested with BI 4.0 version of SAP BusinessObjects Platform.

 

Set Publication Report Bursting Method

<%@ page import = "com.crystaldecisions.sdk.occa.infostore.*,
com.crystaldecisions.sdk.framework.*,
com.crystaldecisions.sdk.exception.SDKException,
com.businessobjects.sdk.plugin.desktop.publication.*,
com.crystaldecisions.sdk.properties.*,
java.util.Set,
java.util.Iterator"
%>
<%

try {


String userName = "administrator"; //administrator username
String password = "Password1";  //administrator password
String cmsName = "localhost:6400"; //cms name
String authType = "secEnterprise";

 

IEnterpriseSession enterpriseSession = CrystalEnterprise.getSessionMgr().logon(userName, password, cmsName, authType);
IInfoStore infoStore = (IInfoStore)enterpriseSession.getService("", "InfoStore");


String query = "select * from ci_infoobjects where si_id=11475";


IInfoObjects oInfoObjects = (IInfoObjects)infoStore.query(query) ;

IInfoObject oInfoObject = (IInfoObject) oInfoObjects.get(0);
IPublication pub=(IPublication)oInfoObject;


out.println("Publication Name :"+pub.getTitle()+"<br>");
out.println("Publication ID :"+pub.getID()+"<br>");
out.println("Report Bursting Mode Before :"+pub.getBurstingMode()+"<br>");


//Use IPublicationBase.CeDataBurstingMode.ceSinglePass for setting single pass bursting (i.e) One database fetch is executed in a single report processing job
//Use IPublicationBase.CeDataBurstingMode.ceMultiplePass for setting Multiple pass bursting (i.e) One database fetch is executed for each batch of recipients
//Use IPublicationBase.CeDataBurstingMode.cePerRecipientBursting for setting Per recipient bursting (i.e) One database fetch is executed for each recipient

 

pub.setBurstingMode(IPublicationBase.CeDataBurstingMode.cePerRecipientBursting);
infoStore.commit(oInfoObjects);
out.println("Report Bursting Mode After:"+pub.getBurstingMode()+"<br>");
}
catch(SDKException sdkEx) {
out.println(sdkEx);
}

%>

 

 

SAP BusinessObjects BI 3.x and Lower - Developer SDK Library

$
0
0
Download and view developer guides, API reference material, sample code, and object model diagrams for Java, .NET, COM, and Flex APIs available in BusinessObjects Enterprise XI 3.1, Crystal Reports 2008, and SAP Dashboard Design (Xcelsius Engage) 2008. For version 4.x and later of the SDK library, visit the SAP BusinessObjects BI 4.x Developer SDK Library.

 

NOTE:

 

  1. To view the developer guides, save and uncompress the entire .zip file to your local drive and then open it. Otherwise, if you open the zip files directly
    from the browser, you may see "The Address is not Valid" error.
  2. If you are opening a .chm file, clear the Always ask before opening this file check box in the Open File dialog box.
  3. If you are saving a .chm file, right-click the file on your desktop, click Properties, and select Unblock. Next, ensure that the Read Only check box is cleared.

 

Getting Started

  • Choose Your SDK - Want to learn more about which BusinessObjects SDK suits your application development needs? View our SDK overview diagram, read Choosing the right SDK for the right task, and consult the SDK - Quick Reference Guide.
  • What's New - To see a summary of new features in each SDK, download the developer guides and view the Start Here > What's New sections.
  • Earlier SDK Library Versions - Visit the SAP Help Portal and click the Business Objects tab to access all product documentation for past and current releases, including user, administration, and developer help. Direct links to XI and XI Release 2 developer content can be found on this page.

Java SDK Developer Guides and API References

 

View developer guides below that contain key concepts and tasks with supporting sample code snippets. In each guide, go to the Start Here > What's New sections to learn about new features in the SDK. Also view and download API references that contain syntax, information, and examples for the classes, interfaces, and members of each SDK. For more information about the SDKs, consult the SDK - Quick Reference Guide.

Solution

Java SDKs

Guide

Reference

BusinessObjects Enterprise, BusinessObjects Edge, Crystal Reports Server

Software Development KitsQuick Reference Guide-
BusinessObjects Enterprise (Administration)BusinessObjects Enterprise Java SDK

DeveloperGuide

API

reference

JavaDocs

BusinessObjects Enterprise (Administration)BusinessObjects JSF Components

DeveloperGuide

API

reference

JavaDocs

SAP Crystal ReportsReport Application Server Java SDK

DeveloperGuide

API

reference

Java Docs

SAP Crystal Reports

Viewers Java SDK

DeveloperGuide

API

reference

Java Docs

Web IntelligenceReport Engine Java SDK

DeveloperGuide

API reference
Web Services ConsumerWeb Services Java Consumer SDK

DeveloperGuide

API

reference

Crystal ReportsCrystal Reports for Eclipse 2.0

DeveloperGuide

API

reference

Java Docs

BusinessObjects Enterprise XI 3.1 (Administration)Data Access Driver SDK Developer GuideDeveloper GuideAPI reference
Custom Data Source FrameworkCustom Data Source FrameworkDeveloper GuideAPI reference

.NET SDK Developer Guides and API References

 

Solution.NET SDKsGuideReference

BusinessObjects Enterprise, BusinessObjects Edge,

Crystal Reports Server

Software Development KitsQuick Reference Guide-
BusinessObjects Enterprise (Administration)BusinessObjects Enterprise .NET SDK

DeveloperGuide

API

reference

Crystal ReportsCrystal Reports .NET SDK

DeveloperGuide

API

reference

Crystal ReportsReport Application Server .NET SDK

DeveloperGuide

API

reference

Web IntelligenceReport Engine .NET SDK

DeveloperGuide

API

reference

Web Services ConsumerWeb Services .NET Consumer SDK

DeveloperGuide

API

reference


COM SDK Developer Guides and API References

 

SolutionCOM SDKsGuideReference
Desktop IntelligenceDesktop Intelligence COM SDK

DeveloperGuide

APIreference

Universe DesignerUniverse Designer COM SDK-API reference

SAP Dashboard Design (Xcelsius) SDK Resources

 

Download the  Component SDK SP3 and accompanying documentation   (link to SDK page)

 

Additional Guides and Resources

 

SolutionTitleTechnology
openDocument / Crystal Reports URL Reporting

Viewing Report and

Documents Using URLs

URL Parameters
Crystal Reports

Visual Studio Integration

Manager

.NET
BusinessObjects Enterprise (Administration)

BusinessObjects Enterprise

.NET Runtime Deployment

.NET
Web Services Consumer

Web Services

Administrator's Guide

Java/.NET
Business Process Services

Business Process BI

Services Guide

Web Services

Sample Application Code

 

Visit the SAP BusinessObjects Code and Samples page and download sample code projects to run in your BusinessObjects XI 3.1 and Crystal Reports 2008 development environments.
Solution or TopicTitle
BusinessObjects Enterprise, BusinessObjects Edge, and Crystal Reports Server

BusinessObjects Enterprise Java SDK

Sample Code

Crystal Reports

Report Application Server Java SDK Sample

Code

Crystal Reports

Viewers Java SDK Sample Code

Web Intelligence

Report Engine Java SDK Sample Code

Web Services

Web Services Java SDK Sample Code

Data Access

Data Access Driver Java Sample Code

BusinessObjects Enterprise, BusinessObjects Edge,

and Crystal Reports Server

BusinessObjects Enterprise .NET SDK

Sample Code

Crystal Reports

Crystal Reports .NET SDK Sample Code

Crystal Reports

Report Application Server .NET SDK Sample

Code

Web Services

Web Services .NET SDK Sample Code


Object Model Diagrams

 

Provides a visual representation of the classes, methods, and properties of the SDK.
 
SolutionTitle
BusinessObjects Enterprise (Administration)

BusinessObjects Enterprise JavaObject Model Diagram

Crystal Reports

Report Application Server JavaObject Model Diagram

Crystal Reports

Viewers Java Object ModelDiagrams

Web Intelligence

Report Engine Java Object ModelDiagram

Web Services Consumer

Web Services Java ConsumerObject Model Diagram

Crystal Reports

Crystal Reports .NET Object ModelDiagrams

Crystal Reports

Report Application Server .NETObject Model Diagram

Web Services Consumer

Web Services .NET ConsumerObject Model Diagram

Desktop Intelligence

Desktop Intelligence COM ObjectModel Diagram

Universe Designer

Universe Designer COM ObjectModel Diagram

Custom Data Source FrameworkCustom Data Source Framework Object Model Diagram


Previous Versions

 

Visit the SAP Help Portal and click the Business Objects tab to access all product documentation for past and current releases, including user, administration, and developer help. Looking for XI and XI R2 developer documentation?  Use the SAP Help Portal, or the quick links provided below.

Java Enterprise BE 14 Get Failed Instance Information

$
0
0

This document provides a way get the failed instance information using the BusinessObjects Enterprise Platform Java SDKs.


For more scripts and information on how to run these scripts refer to the blog avaiable here:

http://scn.sap.com/people/shawn.penner/blog/2013/06/04/scripts-and-samples

Below is the Java Server Pages (JSP) sample

 

Notes:

•You would need to change the userName, password, cmsName to the values specific to your enterprise server in the provided sample code.

 

Get Failed Instance Information

<%@ page import="com.crystaldecisions.sdk.plugin.desktop.program.*,
    com.crystaldecisions.sdk.framework.*,
    com.crystaldecisions.sdk.occa.infostore.*,
    com.crystaldecisions.sdk.exception.*,
     java.io.FileWriter, java.io.IOException,
    com.crystaldecisions.sdk.occa.report.lib.PropertyBag,
    com.crystaldecisions.sdk.properties.IProperties,
    com.crystaldecisions.sdk.properties.IProperty,
    java.util.*"
%>
<%

  
   String user = "Administrator";
   String password = "<Administrator-Password>";        
   String cmsName = "<CMS-NAME>";        
   String cmsAuthType = "secEnterprise";
   String starttime=null;
   String endtime=null;
   String retriesAttempted=null;
 
  IEnterpriseSession es=null;
 
  try
  {
   String statusCheck=null;
   String typeCheck=null;
   es = CrystalEnterprise.getSessionMgr().logon( user, password, cmsName, cmsAuthType);                
   IInfoStore iStore = (IInfoStore) es.getService("", "InfoStore");                
   IInfoObjects infoobjects = iStore .query("SELECT * from CI_INFOOBJECTS WHERE  si_instance=1 and si_schedule_status=3");                
 
   for(int i=0;i<infoobjects.size();i++)
   {
    IInfoObject infoobject=(IInfoObject) infoobjects.get(i);
    ISchedulingInfo schedInfo=infoobject.getSchedulingInfo();
    int instanceID=infoobject.getID();
    String instanceName=infoobject.getTitle();
    String errorMsg=schedInfo.getErrorMessage();
    out.println("<b>Instance ID :</b>"+instanceID+"<br>");
    out.println("<b>Instance Name :</b>"+instanceName+"<br>");
    int type=schedInfo.getType();
    out.println("<br><b> Type of the report :</b><br>");
 
    switch(type)
    {
     case CeScheduleType.ONCE:
     typeCheck="ONCE";
     out.println(typeCheck);
    
     break;
        
     case CeScheduleType.HOURLY: //Job has failed.
     typeCheck="HOURLY";
     out.println(typeCheck);
    
     break;
       
     case CeScheduleType.DAILY: //Job is paused.
     typeCheck="DAILY";
     out.println(typeCheck);
     break;
       
     case CeScheduleType.WEEKLY: //Job is pending.
     typeCheck="WEEKLY";
     out.println(typeCheck);
     break;
       
     case CeScheduleType.MONTHLY: //Job is running.
     typeCheck="MONTHLY";
     out.println(typeCheck);
     break;
    
     case CeScheduleType.NTH_DAY:
     typeCheck="NTH_DAY";
     out.println(typeCheck);
    
     break;
        
     case CeScheduleType.FIRST_MONDAY: //Job has failed.
     typeCheck="FIRST_MONDAY";
     out.println(typeCheck);
     break;
       
     case CeScheduleType.LAST_DAY: //Job is paused.
     typeCheck="LAST_DAY";
     out.println(typeCheck);
     break;
       
     case CeScheduleType.CALENDAR: //Job is pending.
     typeCheck="CALENDAR";
     out.println(typeCheck);
     break;
       
     case CeScheduleType.CALENDAR_TEMPLATE: //Job is running.
     typeCheck="CALENDAR_TEMPLATE";
     out.println(typeCheck);
     break;
    }
   
 
    IProperties instanceProperties=(IProperties)infoobject.getSchedulingInfo().properties();
    IProperty instanceProperty=instanceProperties.getProperty("SI_STARTTIME");
    if(instanceProperty != null)
    {
    starttime=instanceProperty.getValue().toString();
    out.println("<br><b>Instance Start Time :</b>"+starttime+"<br>");
    }
    IProperties instanceProperties1=(IProperties)infoobject.getSchedulingInfo().properties();
    IProperty instanceProperty1=instanceProperties1.getProperty("SI_ENDTIME");
    if(instanceProperty1 != null)
    {
 
    endtime=instanceProperty1.getValue().toString();
    out.println("<br><b>Instance End Time :</b>"+endtime+"<br>");
    }
    IProperties instanceProperties2=(IProperties)infoobject.getSchedulingInfo().properties();
    IProperty instanceProperty2=instanceProperties2.getProperty("SI_RETRIES_ATTEMPTED");
    if(instanceProperty2 != null)
    {
 
    retriesAttempted=instanceProperty2.getValue().toString();
 
    out.println("<br><b>Retries Attemted :</b>"+retriesAttempted+"<br>");
    }
    out.println("<b>Error Message :</b>"+errorMsg+"<br>");
                 
    out.println("<br>====================================================================<br>");  
           
   }
  }
      catch(SDKException e)
  {
    out.println(e.getMessage());
  }
  finally
  {
  es.logoff();
  }
%>

Java Enterprise BE 14 Get Recurring Instance Information

$
0
0

This document provides a way get the recurring instance information using the BusinessObjects Enterprise Platform Java SDKs.

The recurring instance details include Instance ID, Instance Name, Instance Kind, Schedule Type, Folder Location, Next Runtime and Destination


For more scripts and information on how to run these scripts refer to the blog avaiable here:

http://scn.sap.com/people/shawn.penner/blog/2013/06/04/scripts-and-samples

Below is the Java Server Pages (JSP) sample

 

Notes:

•You would need to change the userName, password, cmsName to the values specific to your enterprise server in the provided sample code.

 

Get Rucurring Instance Information

<%@ page import="com.crystaldecisions.sdk.plugin.desktop.program.*,
com.crystaldecisions.sdk.framework.*,
com.crystaldecisions.sdk.occa.infostore.*,
com.crystaldecisions.sdk.exception.*,
java.io.FileWriter, java.io.IOException,
com.crystaldecisions.sdk.occa.report.lib.PropertyBag,
com.crystaldecisions.sdk.properties.IProperties,
com.crystaldecisions.sdk.properties.IProperty,
com.crystaldecisions.sdk.plugin.desktop.folder.*,
java.util.*,
java.text.*"
%>
<%@ page import="java.io.*" %>

<%


  
        String user = "Administrator";
     String password = "";        
  String cmsName = "localhost:6400";        
  String cmsAuthType = "secEnterprise";
  String nextruntime=null;
  String retriesAttempted=null;
  String finalFolderPath=null;
  Date convertedDate=null;

 

  IEnterpriseSession es=null;
  int index = 1;
 
  try
  {
   String statusCheck=null;
   String typeCheck=null;
   es = CrystalEnterprise.getSessionMgr().logon( user, password, cmsName, cmsAuthType);                
   IInfoStore iStore = (IInfoStore) es.getService("", "InfoStore");                
   IInfoObjects infoobjects = iStore .query("SELECT * from CI_INFOOBJECTS WHERE  si_recurring=1 ");           
 
   for(int i=0;i<infoobjects.size();i++)
   {
    IInfoObject infoobject=(IInfoObject) infoobjects.get(i);
    ISchedulingInfo schedInfo=infoobject.getSchedulingInfo();
    int instanceID=infoobject.getID();
    String instanceName=infoobject.getTitle();
    String kind=infoobject.getKind();
    out.println("<b>Instance ID :</b>"+instanceID+"<br>");
    out.println("<b>Instance Name :</b>"+instanceName+"<br>");
    out.println("<b>Kind :</b>"+kind+"<br>");
    int type=schedInfo.getType();
    out.println("<br><b> Schedule Type :</b><br>");
 
    switch(type)
    {
     case CeScheduleType.ONCE:
     typeCheck="ONCE";
     out.println(typeCheck);
    
     break;
        
     case CeScheduleType.HOURLY: //Job has failed.
     typeCheck="HOURLY";
     out.println(typeCheck);
    
     break;
       
     case CeScheduleType.DAILY: //Job is paused.
     typeCheck="DAILY";
     out.println(typeCheck);
     break;
       
     case CeScheduleType.WEEKLY: //Job is pending.
     typeCheck="WEEKLY";
     out.println(typeCheck);
     break;
       
     case CeScheduleType.MONTHLY: //Job is running.
     typeCheck="MONTHLY";
     out.println(typeCheck);
     break;
    
     case CeScheduleType.NTH_DAY:
     typeCheck="NTH_DAY";
     out.println(typeCheck);
    
     break;
        
     case CeScheduleType.FIRST_MONDAY: //Job has failed.
     typeCheck="FIRST_MONDAY";
     out.println(typeCheck);
     break;
       
     case CeScheduleType.LAST_DAY: //Job is paused.
     typeCheck="LAST_DAY";
     out.println(typeCheck);
     break;
       
     case CeScheduleType.CALENDAR: //Job is pending.
     typeCheck="CALENDAR";
     out.println(typeCheck);
     break;
       
     case CeScheduleType.CALENDAR_TEMPLATE: //Job is running.
     typeCheck="CALENDAR_TEMPLATE";
     out.println(typeCheck);
     break;
    }
   
  int id=infoobject.getParentID();

  IInfoObjects infoobjects1 = iStore .query("SELECT * from CI_INFOOBJECTS WHERE  si_id="+id);

  IInfoObject infoobject1=(IInfoObject)infoobjects1.get(0);

  String reportName=infoobject1.getTitle();
 
  int parentid=infoobject1.getParentID();
 
 
  IInfoObjects infoobjects2 = iStore .query("SELECT * from CI_INFOOBJECTS WHERE  si_id="+parentid);

  IInfoObject infoobject2=(IInfoObject)infoobjects2.get(0);
  if(infoobject2.getKind().equals("Folder"))
  {
    finalFolderPath="/";
   IFolder iifolder=(IFolder)infoobject2;
   if(iifolder.getPath()!= null)
   {
    String path[]=iifolder.getPath();
    for(int fi=0;fi<path.length;fi++)
    {
     finalFolderPath =  "/"+path[fi]+ finalFolderPath;
 
    }
     finalFolderPath = finalFolderPath+iifolder.getTitle();
   }
   else
   {
    finalFolderPath=finalFolderPath+iifolder.getTitle();
   }
   out.println("<br><b>Parent Folder Path of The Report :</b>"+finalFolderPath+"<br>");
  
  }
 
  IProperties instanceProperties=(IProperties)infoobject.properties();
  IProperty instanceProperty=instanceProperties.getProperty("SI_NEXTRUNTIME");
    if(instanceProperty != null)
    {

    nextruntime=instanceProperty.getValue().toString();
    out.println("<br><b>Instance Next Run Time :</b>"+nextruntime+"<br>");
   
 
    DateFormat readFormat=new SimpleDateFormat("EEE MMM dd HH:mm:ss z yyyy");
 
    convertedDate=readFormat.parse(nextruntime);
    out.println("Next Run Time Converted To Date :"+convertedDate+"<br>");
    }
  IProperties destinationProperties=(IProperties)infoobject.getSchedulingInfo().properties();
  IProperties destinationProperty=(IProperties)destinationProperties.getProperties("SI_DESTINATIONS");
 
  if(destinationProperty == null)
  {
  out.println("No Property with SI_DESTINATIONS<br>");
  }
  else
  {
  IProperties smtpProps=(IProperties)destinationProperty.getProperties("1");
 
  if(smtpProps != null)
  {
  IProperty smtpProps1=(IProperty)smtpProps.getProperty("SI_PROGID");
  String smtpProps2=smtpProps1.getValue().toString();
  if (smtpProps2.equals("CrystalEnterprise.Smtp"))
   {                  
              
                IProperties pathProperties1=(IProperties)schedInfo.properties().getProperty("SI_DESTINATIONS").getValue();

                             
    IProperty pathProperty2=pathProperties1.getProperty("1");
   
    if(pathProperty2 == null)
    {
     out.println("No Property with name 1<br>");
    }
    else
    {
   
     IProperties pathProperties2=(IProperties)pathProperties1.getProperty("1").getValue();
     IProperty pathProperty3=pathProperties2.getProperty("SI_DEST_SCHEDULEOPTIONS");
    
     if(pathProperty3 == null)
     {
      out.println("No Property with name SI_DEST_SCHEDULEOPTIONS<br>");
     }
     else
     {
      IProperties pathProperties3=(IProperties)pathProperties2.getProperty("SI_DEST_SCHEDULEOPTIONS").getValue();
     
      IProperty pathProperty4=pathProperties3.getProperty("SI_MAIL_ADDRESSES");
     
      if(pathProperty4 == null)
      {
       out.println("No Property with name SI_MAIL_ADDRESSES<br>");
      }
      else
      {
     IProperties pathProperties4=(IProperties)pathProperties3.getProperty("SI_MAIL_ADDRESSES").getValue();
     IProperty pathProperty5=pathProperties3.getProperty("SI_MAIL_CC");
     
      if(pathProperty5 == null)
      {
       out.println("No Property with name SI_MAIL_ADDRESSES<br>");
      }
      else
      {
    
    IProperties pathProperties5=(IProperties)pathProperties3.getProperty("SI_MAIL_CC").getValue();

    String numberofEmails=pathProperties4.getProperty("SI_TOTAL").getValue().toString();
    String numberofCCEmails=pathProperties5.getProperty("SI_TOTAL").getValue().toString();

    
   
    
                                          
         Integer Emails=new Integer(numberofEmails);
    out.println("<b>Email Address :</b><br>");                                                             
    for(int temp=1;temp<=Emails.intValue();temp++)
    {
     String email=pathProperties4.getProperty(""+temp).getValue().toString();
     out.println(pathProperties4.getProperty(""+temp).getValue().toString()+"<br>");
        }
                 
    Integer CCEmails=new Integer(numberofCCEmails);
    out.println("<b>CC Email Address :</b><br>");                                                             
    for(int temp1=1;temp1<=CCEmails.intValue();temp1++)
    {
     String CCemail=pathProperties5.getProperty(""+temp1).getValue().toString();
     out.println(pathProperties5.getProperty(""+temp1).getValue().toString()+"<br>");
                } 
      }
   
      }
   }
   }
   }
  
  else
      {
   out.println("Not Applicable For This Instance....!<br>");
      }
   }
        }
     out.println("<br>===========================================================<br>");
     }
     }
     catch(SDKException e)
  {
    out.println(e.getMessage());
  }
  finally
  {
  es.logoff();
  }
  %>

How to install and configure java program objects

$
0
0


In this document , I will explain step by step procedure to deploy and configure java program objects in Business Objects environment. Following are the steps to publish java program object to CMC:

  1. Log On to Central Management Console (CMC)
  2. Go to Public Folders & navigate to the folder where you want to host this utility
  3. Right-Click on the folder and select ‘Add a Program’  1.png
  4. Select the Program type as Java, browse the jar file for the utility & click Ok 2.png
  5. Now the program Object is published successfully to CMC.
  6. Right-Click on the program Object and select Properties3.png
  7. Go to Default Settings & select Program Parameters in the left window pane
  8. Class to run option is mandatory for any program object for execution
  9. Arguments option to specify input values required by the program to execute e.g. path to cache directory, path for excel output
  10. Classpath option to specify path for external jar files used by your program during run time e.g. path of the excel API jar files that are required by a program to generate excel output
  11. Once the above options are specified, Click Save & Close4.png
  12. After successful completion of the above steps, program objects are ready to be run/scheduled

Get Failed Instance Information-Export To Excel

$
0
0

This document provides a way get the failed instance information using the BusinessObjects Enterprise Platform Java SDKs and export to Excel. It is a continuation of the document http://scn.sap.com/docs/DOC-57558.

Have seen requirements where people have requested for the same information in an excel and I am adding the excel export options to the existing documents.


For more scripts and information on how to run these scripts refer to the blog avaiable here:

http://scn.sap.com/people/shawn.penner/blog/2013/06/04/scripts-and-samples

Below is the Java Server Pages (JSP) sample

 

Notes:

  • You would need to change the userName, password, cmsName to the values specific to your enterprise server in the provided sample code. Also would need to provide the location where you need the excel to be exported.
  • You would reuire the poi-3.5-FINAL.jar file in your applications lib along with BusinessObjects jar files.
  • The part of exporting the results to an excel file does not come under the support of BusinessObjects as you would be using third party jars with BusinessObjects jar files to have the results exported to excel.

 

Failed Instance Info

<%@ page import = "com.crystaldecisions.sdk.framework.*"%>
<%@ page import = "com.crystaldecisions.sdk.occa.infostore.*"%>
<%@ page import = "com.crystaldecisions.sdk.exception.*"%>
<%@ page import = "com.crystaldecisions.sdk.properties.*"%>
<%@ page import = "java.util.*"%>
<%@ page import = "java.io.*"%>
<%@ page import = "org.apache.poi.hssf.usermodel.HSSFSheet"%>
<%@ page import = "org.apache.poi.hssf.usermodel.HSSFWorkbook"%>
<%@ page import = "org.apache.poi.hssf.usermodel.HSSFCell"%>
<%@ page import = "org.apache.poi.hssf.usermodel.HSSFRow"%>
<%@ page import = "org.apache.poi.hssf.usermodel.HSSFPrintSetup"%>
<html>
<head></head>
<body>
<table border="2" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<th width="5%">Instance Id</th>
<th width="25%">Instance Name</th>
<th width="15%">Schedule Type</th>
<th width="12%">Start Time</th>
<th width="20%">End Time </th>
<th width="20%">Error Message</th>
</tr>
<%

   HSSFWorkbook wb = new HSSFWorkbook();
   HSSFSheet sheet = wb.createSheet("new sheet");
   HSSFRow rowhead = sheet.createRow((short)0);
   rowhead.createCell((short) 0).setCellValue("Instance ID");
   rowhead.createCell((short) 1).setCellValue("Instance Name");
   rowhead.createCell((short) 2).setCellValue("Schedule Type");
   rowhead.createCell((short) 3).setCellValue("Start Time");
   rowhead.createCell((short) 4).setCellValue("End Time");
   rowhead.createCell((short) 5).setCellValue("Error Message");
  
   String user = "username";
   String password = "password";        
   String cmsName = "cmsname";        
   String cmsAuthType = "secEnterprise";
   String starttime=null;
   String endtime=null;
   String typeCheck=null;
 
   IEnterpriseSession es=null;
   int index=1;
 
   try
   {
 
 
     es = CrystalEnterprise.getSessionMgr().logon( user, password, cmsName, cmsAuthType);                
     IInfoStore iStore = (IInfoStore) es.getService("", "InfoStore");                
     IInfoObjects infoobjects = iStore .query("SELECT * from CI_INFOOBJECTS WHERE  si_parentid=2664098 and si_schedule_status=3");                
 
     for(int i=0;i<infoobjects.size();i++)
      {
       IInfoObject infoobject=(IInfoObject) infoobjects.get(i);
       ISchedulingInfo schedInfo=infoobject.getSchedulingInfo();
       int instanceID=infoobject.getID();
       String instanceName=infoobject.getTitle();
       String errorMsg=schedInfo.getErrorMessage();
       out.println("<tr><td>"+instanceID+"</td>");
       out.println("<td>"+instanceName+"</td>");
       int type=schedInfo.getType();
   
 
       switch(type)
        {
         case CeScheduleType.ONCE:
         typeCheck="ONCE";
         out.println("<td>"+typeCheck+"</td>");
         break;
        
         case CeScheduleType.HOURLY: //Job has failed.
         typeCheck="HOURLY";
         out.println("<td>"+typeCheck+"</td>");    
         break;
       
         case CeScheduleType.DAILY: //Job is paused.
         typeCheck="DAILY";
         out.println("<td>"+typeCheck+"</td>");
         break;
       
         case CeScheduleType.WEEKLY: //Job is pending.
         typeCheck="WEEKLY";
         out.println("<td>"+typeCheck+"</td>");
         break;
       
         case CeScheduleType.MONTHLY: //Job is running.
         typeCheck="MONTHLY";
         out.println("<td>"+typeCheck+"</td>");
         break;
    
         case CeScheduleType.NTH_DAY:
         typeCheck="NTH_DAY";
         out.println("<td>"+typeCheck+"</td>");
         break;
        
         case CeScheduleType.FIRST_MONDAY: //Job has failed.
         typeCheck="FIRST_MONDAY";
       out.println("<td>"+typeCheck+"</td>");
       break;
       
       case CeScheduleType.LAST_DAY: //Job is paused.
       typeCheck="LAST_DAY";
       out.println("<td>"+typeCheck+"</td>");
       break;
       
       case CeScheduleType.CALENDAR: //Job is pending.
       typeCheck="CALENDAR";
       out.println("<td>"+typeCheck+"</td>");
       break;
       
       case CeScheduleType.CALENDAR_TEMPLATE: //Job is running.
        typeCheck="CALENDAR_TEMPLATE";
       out.println("<td>"+typeCheck+"</td>");
        break;
        }
   
 
       IProperties instanceProperties=(IProperties)infoobject.properties();
       IProperty instanceProperty=instanceProperties.getProperty("SI_STARTTIME");
       if(instanceProperty != null)
        {
         starttime=instanceProperty.getValue().toString();
         out.println("<td>"+starttime+"</td>");
        }
       IProperties instanceProperties1=(IProperties)infoobject.properties();
       IProperty instanceProperty1=instanceProperties1.getProperty("SI_ENDTIME");
       if(instanceProperty1 != null)
        {
         endtime=instanceProperty1.getValue().toString();
         out.println("<td>"+endtime+"</td>");
        }
       out.println("<td>"+errorMsg+"</td></tr>");

       HSSFRow row = sheet.createRow((short)index);
       row.createCell((short) 0).setCellValue(instanceID);
       row.createCell((short) 1).setCellValue(instanceName);
       row.createCell((short) 2).setCellValue(typeCheck);
       row.createCell((short) 3).setCellValue(starttime);
       row.createCell((short) 4).setCellValue(endtime);
       row.createCell((short) 5).setCellValue(errorMsg);

       index++;                
   
           
      }
    }
    catch(SDKException e)
    {
     out.println(e.getMessage());
    }
    finally
    {
     FileOutputStream fileOut = new FileOutputStream("C://Users//881947//FailedInstanceDetails.xls");//Specify the path for the excel to be generated.
     wb.write(fileOut);
     fileOut.close();

     if(es!=null)
     {
       es.logoff();
     }
    }
%>

Getting Started With BO 4.1 Java SDK Using Net Beans

$
0
0

Abstract

          SAP Business objects(BO) is a popular Enterprise software company that develop desktop and web applications for data analysis and reporting . Besides this, Business objects Enterprise provides a Standard Development Kit (SDK) for developing customized tools.Business objcets (BO) Report engine Java SDK (Software Development Kit) is a set of development tools primarily used for the customization of the existing tools available within Business objects.We can also use Dot Net(.NET) SDK. This customization will make the work of report developers easy. This artifact will be helpful to get start with BO Java SDK integration to develop customized BO tools using NetBeans. Business objects has a set of jar(java archive) files when installed.Using the predefined classes and methods  present in the jar files developers can customize and develop a tool as per the business needs.


Software Requirements:

  1. 1)  Netbeans 8.0.1
  2. 2)  Apache Tomcat 7.0 or above
  3. 3)  JDK 1.7 or above (Java Development Kit)

 

Windows Configuration:

What is a host file?

 

The HOSTS file is a text file that contains IP addresses separated by at least once space and then a domain name, with each entry on its own line. Any websites can be blocked or unblocked or communication with external servers on a particular machine can be blocked with this host file.

 

Step 1: The host file will be located in the following path.

 

C:\Windows\System32\drivers\etc

 

1.jpg

Step 2: Find the ip address and full host name of the BO 4.1 server

 

     (a) Find the ip address.

 

To protect the system from vulnerably all the communication with some external servers will be blocked by default. To create a communication between an external server , developers have to get the help of admin team and ask them to provide the host file entry in their machine with required details. To make a host file entry there are two important things.

 

  1. 1. IP address
  2. 2. Full HOST name.

 

The IP address of the server can be found by the following method


          Start -> Run -> cmd -> ipconfig


Note: Developer should be logged in the server machine to do the above operation.

If login to the server is not available, then contact the server administrator to get this done.

    

     (b) Find the Full host name.

 

Right click on my computer icon in desktop and choose Properties option.

2.jpg

Step 3: Enter the ip address and full host name into the host files as shown in the figure and example.


  1. 127.0.0.0 CHDSEZXXXXXXX  CHDSEZXXXXXX

3.jpg

Tomcat server Configuration:

This following are the steps to configure the username and password for tomcat server which is installed in the local machine.

Step a: Go to the conf folder which will be present inside Apache tomcat installation folder


<Installation_Path>\ Apache Tomcat 8.0.15\ conf

 

The installation path used here is as follows,


C:\Program Files\Apache Software Foundation\ Apache Tomcat 8.0.15\ conf

7.jpg

Step b: Inside the conf folder there will be a file named tomcat-users.xml. Right click on that file and choose open with -> Notepad


8.jpg

Step c: In the file there will be some sample username and sample provided with comments. Using this file users of this server can be restricted by enabling them limited access. For development needs, username and password with role as manager-script has to be created.


Ex.

 

<role rolename=”manager-script”/>

<user username=”tomcat” password=”password” roles=”manager-script”/>

Copy and paste the above code in the tomcat-users.xml file within the <tomcat-users> tag and save it. During server configuration enter these credentials. Now, the program will be able to run in the Tomcat server.

9.jpg

Algorithm:

Following are the step by step procedure to develop a web application which will list all the universes from the BO 4.1 server by accessing CMC (Central Management Console) from a local machine using Net Beans.

Step 1: create a new project using the NetBeans IDE 8.0.2.

10.jpg

Step 2: Choose project as Java Web -> Web Application and click on next.

11.jpg

Step 3: Give the appropriate Project name and project location and click on next button.

12.jpg

Step 4: Choose Apache Tomcat or TomEE server by clicking ADD button. This tomcat server is on local machine and is used to run the java code using netbeans IDE on local machine to access the BO 4.1 server.


13.jpg

Note: The tomcat server should be installed in a local machine. There are lot of web servers available like Glassfish, tomcat, etc...It is not mandatory to use Tomcat as web server. Depending upon the availability, any of the web servers can be used along with netbeans from our local machine. But it is mandatory that there should be at least one web server installed in our local machine.

 

Step 5: Choose Java EE 5 from the Java EE Version dropdown list, as it has the provision to access web.xml file and edit it. The web.xml is a file which will be automatically created during the creation of new project in netbeans. It is used to control many facets of a Web application. Using web.xml, one can assign custom URLs for invoking servlets, specify initialization parameters for the entire application as well as for specific servlets, control session timeouts, declare filters, declare security roles, restrict access to Web resources based on declared security roles, and so on.

14.jpg

Step 6: Framework is a bunch of predetermined software program that forms the basis for an application which can be reused. It helps the developers to develop their application more quickly and easily. It was very hard to develop a complex web applications in early days. But, now because of these frameworks it is very easy to develop such complex application using different kinds of frameworks such as Struts 2, Hibernate, JSF, Spring etc. Choose any of these frameworks for building a web application.Framework is not used in this web application. So, it can be ignored and click on finish button. A web Application will be created.

15.jpg

Step 7: Right click on the “Servers” option which will be available in the “Services” tab in the left pane and click on “Add server”

16.jpg

Step 8: Choose Apache Tomcat and Click next.

Note: In this step, the selected webserver will be configured.

17.jpg

Step 9: Click Browse and point to the Apache Tomcat installation folder.

18.jpg

Step 10: Enter the username and password which we created using the tomcat-users.xml for tomcat server and click finish. Server will be added under Servers in the Services tab.

19.jpg

Step 11: Right click on the Apache Tomcat or TomEE server under services tab and choose properties.

20.jpg

Step 12: By Default, Tomcat will choose 8080 port to run the server. If the local machine is installed with more than one web server then, conflict will arise. In order to avoid the conflict the ports should be checked whether they are open or close. Enter the port number in the “SERVER PORT” field. If it shows any error during server startup then change the sever port. The port should not be between the ranges (0-1023) as these are all system ports. Use any other unused port as server port which are not in the range mentioned above.

21.jpg

Step 13: After completion of the above steps, Right click on the server and choose start. The server should start without any error.

22.jpg

Step 14: To check whether tomcat is working or not, type http://<server-name>:8084/in server where <server-name> is the name of machine where tomcat server is installed.

The tomcat server is installed in local machine so <server-name> is used here is local host. So the link will look like as follows.

http://localhost:8084/

23.jpg

Tomcat server will show a success message like “If you’re seeing this, you’ve successfully installed Tomcat. Congratulations!”

 

Manager App: Clicking on this will ask for user name and password. Enter the username and password which was created under manager-script role in tomcat-users.xml file.

 

Step 15: The Tomcat Web Application Manager will contain all the web applications that are created using Net beans. All the application will be deployed in tomcat as WAR file. Demo is a sample web application which will show how to create a BO 4.1 java SDK application.

24.jpg

Step 16: The demo web application is a simple java code to connect CMC (Central Management Console) of BO server 4.1 and retrieve the available list of universe from the local machine.

 

This web application will contain 3 JSP files.

 

     1.    Login.jsp -> To get  the cmc address,username,password

     2.    LoginCheck.jsp ->  To verify the credentials with CMC and Display the universe list.

     3.    Logout.jsp -> To logout from cmc.

 

 


Step 17: The library files of Business Objects in server has to be added into the library folder available in the left pane of net beans. Right click on Library and choose Add JAR/Folder.

26.jpg

Note: The required library files will be in the following path of the BO 4.1 server.


C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.1\java\lib

*  The installation path might change if BO 4.1 is installed in different location.

 

Copy the required jar files from this path and get it saved in a folder in your local machine where the netbeans is installed.


Step 18: Browse to that folder where the jar files is saved and select the jar files that needs to be imported. Click on open. This will import the required jar files into net beans environment. The communication between BO 4.1 server and the local machine has been established successfully.

27.jpg

Step 20: Run the program. The following output will be displayed in browser.

 

Output:


29.jpg

Conclusion:

 

          Business Object consists of various library files using which users can develop customized BO tools for Universe and report list generation, Scheduling of reports, Universe repointing, etc. depending upon the business needs. BO SDK also helps in automation of mundane tasks.

BusinessObjects Web Services Java SDK Applications

$
0
0

Purpose

 

This Document lists sample applications using the WS SDK.

 

Overview

 

The Document contain links to applications using the BusinessObjects Enterprise WS Java SDK..

 

Introduction

 

The samples in this document use the BusinessObjects Enterprise WS Java SDK which enables you to incorporate functionality such as organize reports in folders, schedule and view reports, allow administrators to carry out tasks such as managing servers, users, user groups etc.

 

Links to Sample Applications

 

XIR3 JSP WebServices Add Category

This JSP Webservices sample shows how to add a category in BusinessObjects Enterprise XI 3.1 26 Aug 2010


XIR3 JSP WebServices Add Custom Event

This JSP Webservices sample shows how to add a custom event in BusinessObjects Enterprise XI 3.1 26 Aug 2010


XIR3 JSP WebServices Add File Event

This JSP Webservices sample shows how to add a file event in BusinessObjects Enterprise XI 3.1 26 Aug 2010


XIR3 JSP WebServices Add Folder

This JSP Webservices sample shows how to add a folder in BusinessObjects Enterprise XI 3.1 26 Aug 2010


XIR3 JSP WebServices Add Group

This JSP Webservices sample shows how to add a group in BusinessObjects Enterprise XI 3.1 26 Aug 2010


XIR3 JSP WebServices Add Report Shortcut

This JSP Webservices sample shows how to add a report shortcut in BusinessObjects Enterprise XI 3.1 26 Aug 2010


XIR3 JSP WebServices Add Schedule Event

This JSP Webservices sample shows how to add a schedule event in BusinessObjects Enterprise XI 3.1 26 Aug 2010

 

Java WebServices BE115 List Server-Group-Servers

This Java Server Pages (JSP) sample demonstrates how to display a list of the Servers in a Server Group.30 Apr 2008


Java WebServices BE115 List Server-Groups

This Java Server Pages (JSP) sample demonstrates how to display a list of the Server Groups.30 Apr 2008


Java WebServices BE115 List Servers

This Java Server Pages (JSP) sample demonstrates how to display a list of servers.30 Apr 2008


Java WebServices BE115 View DB-Logon-CR

This Java Server Pages (JSP) sample demonstrates how to view a Crystal Report that connects to a secure database.02 Apr 2008


Java WebServices BE115 View Drilldown-CR

This Java Server Pages (JSP) sample demonstrates how to view a Crystal Report in HTML format and handle any drill downs that are in the report.02 Apr 2008


Java WebServices BE115 Add User-Group

This Java Server Pages (JSP) sample demonstrates how to add a User Group to the BusinessObjects Enterprise system.31 Mar 2008


Java WebServices BE115 Add User

This Java Server Pages (JSP) sample demonstrates how to add a user with a secEnterprise alias to the BusinessObjects Enterprise system.31 Mar 2008


Java WebServices BE115 Display Folder-Objects

This Java Server Pages (JSP) sample demonstrates how to display the objects in a folder. By default this sample will search for a folder located directly under the Root Folder. To search in a different location update the query used in the sample.31 Mar 2008


Java WebServices BE115 Display Inbox-Objects

This Java Server Pages (JSP) sample demonstrates how to display the objects in an inbox.31 Mar 2008


Java_WebServices_BE115_Add_User-To-User-Group

This Java Server Pages (JSP) sample demonstrates how to add an existing User to an existing User Group in a BusinessObjects Enterprise system.31 Mar 2008


ws_JSP_Java_Bypass_Java_InfoView

This sample shows how to bypass the Java Infoview logon using the Java Web Services SDK.14 Apr 2011


CMS Cluster Member Caching After DSWS Provider Restart

ThIS sample demonstrates how to trigger CMS cluster member caching after an application server restart. It iterates over a list of known CMS cluster members and attempts to log in to each one using an empty credential set. If it is not able to connect to the CMS cluster member, it proceeds to the next one. If the login request succeeeds or if it is refused due to the invalid credentials, then the CMS cluster member is valid and the CMS cluster members are cached automatically by the DSWS provider.01 Dec 2008


BusinessObjects Web Services Java SDK Feature Samples

Contains JSP sample code pages that highlight features of the BusinessObjects Web Services SDK, including authentication, scheduling, publishing, server administration, managing repository objects, and viewing documents.28 Feb 2008

Java Enterprise BE12 Get Universe Revision Number

$
0
0

This document provides a way to get the universe revision number using Business Intelligence platform Java SDK.

 

For more scripts and information on how to run these scripts refer to the blog avaiable here:

http://scn.sap.com/people/shawn.penner/blog/2013/06/04/scripts-and-samples

Below is the Java Server Pages (JSP) sample

 

Note:

•You would need to change the userName, password, cmsName  to the values specific to your enterprise server in the provided sample code.

• The sample code is tested with BO XI 3.1 version of SAP BusinessObjects Platform

 

Get Universe Revision Number

<%@ page import = "com.crystaldecisions.sdk.framework.*,
com.crystaldecisions.sdk.occa.infostore.IInfoStore,
com.crystaldecisions.sdk.occa.infostore.IInfoObject,
com.crystaldecisions.sdk.occa.infostore.IInfoObjects,
com.businessobjects.sdk.plugin.desktop.universe.*,
com.crystaldecisions.sdk.exception.SDKException,
com.crystaldecisions.sdk.properties.*,
com.crystaldecisions.sdk.plugin.desktop.common.*,
java.util.*"
%>
<%
String userName="administrator-user";           //administrator user
String password="administrator-password";    // administrator password
String CMSName="localhost:6400";                //CMS name
String AuthType="secEnterprise";                   //Authentication
try
{
IEnterpriseSession boeSession = CrystalEnterprise.getSessionMgr().logon(userName, password, CMSName,AuthType);
IInfoStore iStore = (IInfoStore)boeSession.getService("InfoStore");
IInfoObjects oInfoObjects = iStore.query("SELECT SI_ID,SI_NAME,SI_REVISIONNUM FROM CI_APPOBJECTS WHERE SI_KIND='Universe'");
for(int i=0;i<oInfoObjects.size();i++)
{
IInfoObject universeInfoObject=(IInfoObject)oInfoObjects.get(i);
IUniverse oInfoObject = (IUniverse)universeInfoObject;
IProperties props=universeInfoObject.properties();
IProperty universeProperty=(IProperty)props.getProperty("SI_REVISIONNUM");
out.println("<b>Universe ID</b>: "+oInfoObject.getID()+"<br>");
out.println("<b>Universe Name</b>: " + oInfoObject.getTitle() + "</br>");
if(universeProperty!=null)
{
int universeRevisionNumber=oInfoObject.getRevisionNumber();

out.println("<b>Revision Number </b>: " +universeRevisionNumber + "</br>");

}
else
{
out.println("<b>Revision Number </b>: SI_REVISIONNUM Not Found</br>");
}
out.println("-----------------------------------------------------------------------------------------------</br>");
}
boeSession.logoff();
}
catch(Exception e)
{
out.println(e);
}
%>


SAP BusinessObjects BI 3.x and Lower - Developer SDK Library

$
0
0
Download and view developer guides, API reference material, sample code, and object model diagrams for Java, .NET, COM, and Flex APIs available in BusinessObjects Enterprise XI 3.1, Crystal Reports 2008, and SAP Dashboard Design (Xcelsius Engage) 2008. For version 4.x and later of the SDK library, visit the SAP BusinessObjects BI 4.x Developer SDK Library.

 

NOTE:

 

  1. To view the developer guides, save and uncompress the entire .zip file to your local drive and then open it. Otherwise, if you open the zip files directly
    from the browser, you may see "The Address is not Valid" error.
  2. If you are opening a .chm file, clear the Always ask before opening this file check box in the Open File dialog box.
  3. If you are saving a .chm file, right-click the file on your desktop, click Properties, and select Unblock. Next, ensure that the Read Only check box is cleared.

 

Getting Started

  • Choose Your SDK - Want to learn more about which BusinessObjects SDK suits your application development needs? View our SDK overview diagram, read Choosing the right SDK for the right task, and consult the SDK - Quick Reference Guide.
  • What's New - To see a summary of new features in each SDK, download the developer guides and view the Start Here > What's New sections.
  • Earlier SDK Library Versions - Visit the SAP Help Portal and click the Business Objects tab to access all product documentation for past and current releases, including user, administration, and developer help. Direct links to XI and XI Release 2 developer content can be found on this page.

Java SDK Developer Guides and API References

 

View developer guides below that contain key concepts and tasks with supporting sample code snippets. In each guide, go to the Start Here > What's New sections to learn about new features in the SDK. Also view and download API references that contain syntax, information, and examples for the classes, interfaces, and members of each SDK. For more information about the SDKs, consult the SDK - Quick Reference Guide.

Solution

Java SDKs

Guide

Reference

BusinessObjects Enterprise, BusinessObjects Edge, Crystal Reports Server

Software Development KitsQuick Reference Guide-
BusinessObjects Enterprise (Administration)BusinessObjects Enterprise Java SDK

DeveloperGuide

API

reference

JavaDocs

BusinessObjects Enterprise (Administration)BusinessObjects JSF Components

DeveloperGuide

API

reference

JavaDocs

SAP Crystal ReportsReport Application Server Java SDK

DeveloperGuide

API

reference

Java Docs

SAP Crystal Reports

Viewers Java SDK

DeveloperGuide

API

reference

Java Docs

Web IntelligenceReport Engine Java SDK

DeveloperGuide

API reference
Web Services ConsumerWeb Services Java Consumer SDK

DeveloperGuide

API

reference

Crystal ReportsCrystal Reports for Eclipse 2.0

DeveloperGuide

API

reference

Java Docs

BusinessObjects Enterprise XI 3.1 (Administration)Data Access Driver SDK Developer GuideDeveloper GuideAPI reference
Custom Data Source FrameworkCustom Data Source FrameworkDeveloper GuideAPI reference

.NET SDK Developer Guides and API References

 

Solution.NET SDKsGuideReference

BusinessObjects Enterprise, BusinessObjects Edge,

Crystal Reports Server

Software Development KitsQuick Reference Guide-
BusinessObjects Enterprise (Administration)BusinessObjects Enterprise .NET SDK

DeveloperGuide

API

reference

Crystal ReportsCrystal Reports .NET SDK

DeveloperGuide

API

reference

Crystal ReportsReport Application Server .NET SDK

DeveloperGuide

API

reference

Web IntelligenceReport Engine .NET SDK

DeveloperGuide

API

reference

Web Services ConsumerWeb Services .NET Consumer SDK

DeveloperGuide

API

reference


COM SDK Developer Guides and API References

 

SolutionCOM SDKsGuideReference
Desktop IntelligenceDesktop Intelligence COM SDK

DeveloperGuide

APIreference

Universe DesignerUniverse Designer COM SDK-API reference

SAP Dashboard Design (Xcelsius) SDK Resources

 

Download the  Component SDK SP3 and accompanying documentation   (link to SDK page)

 

Additional Guides and Resources

 

SolutionTitleTechnology
openDocument / Crystal Reports URL Reporting

Viewing Report and

Documents Using URLs

URL Parameters
Crystal Reports

Visual Studio Integration

Manager

.NET
BusinessObjects Enterprise (Administration)

BusinessObjects Enterprise

.NET Runtime Deployment

.NET
Web Services Consumer

Web Services

Administrator's Guide

Java/.NET
Business Process Services

Business Process BI

Services Guide

Web Services

Sample Application Code

 

Visit the SAP BusinessObjects Code and Samples page and download sample code projects to run in your BusinessObjects XI 3.1 and Crystal Reports 2008 development environments.
Solution or TopicTitle
BusinessObjects Enterprise, BusinessObjects Edge, and Crystal Reports Server

BusinessObjects Enterprise Java SDK

Sample Code

Crystal Reports

Report Application Server Java SDK Sample

Code

Crystal Reports

Viewers Java SDK Sample Code

Web Intelligence

Report Engine Java SDK Sample Code

Web Services

Web Services Java SDK Sample Code

Data Access

Data Access Driver Java Sample Code

BusinessObjects Enterprise, BusinessObjects Edge,

and Crystal Reports Server

BusinessObjects Enterprise .NET SDK

Sample Code

Crystal Reports

Crystal Reports .NET SDK Sample Code

Crystal Reports

Report Application Server .NET SDK Sample

Code

Web Services

Web Services .NET SDK Sample Code


Object Model Diagrams

 

Provides a visual representation of the classes, methods, and properties of the SDK.
 
SolutionTitle
BusinessObjects Enterprise (Administration)

BusinessObjects Enterprise JavaObject Model Diagram

Crystal Reports

Report Application Server JavaObject Model Diagram

Crystal Reports

Viewers Java Object ModelDiagrams

Web Intelligence

Report Engine Java Object ModelDiagram

Web Services Consumer

Web Services Java ConsumerObject Model Diagram

Crystal Reports

Crystal Reports .NET Object ModelDiagrams

Crystal Reports

Report Application Server .NETObject Model Diagram

Web Services Consumer

Web Services .NET ConsumerObject Model Diagram

Desktop Intelligence

Desktop Intelligence COM ObjectModel Diagram

Universe Designer

Universe Designer COM ObjectModel Diagram

Custom Data Source FrameworkCustom Data Source Framework Object Model Diagram


Previous Versions

 

Visit the SAP Help Portal and click the Business Objects tab to access all product documentation for past and current releases, including user, administration, and developer help. Looking for XI and XI R2 developer documentation?  Use the SAP Help Portal, or the quick links provided below.

SAP BUSINESSOBJECTS BI 4.x - DEVELOPER SDK LIBRARY

$
0
0

Download and view developer guides, API reference material, sample code, and object model diagrams for Java, .NET, COM, and Flex APIs available in SAP BusinessObjects BI 4.x. Visit the samples page to access the sample applications, reports, and dashboards. For version 3.x and earlier of the SDK library, visit the SAP BusinessObjects BI 3.x Developer SDK Library page.

 

Note:

1. To view the developer guides, save and uncompress the entire .zip file to your local drive and then open it.

    Otherwise, if you open the zip files directly from the browser, you may see "The Address is not Valid" error.

2. If you are opening a .chm file, clear the Always ask before opening this file check box in the Open File dialog box.

 

Java SDK Developer Guides and API References

View developer guides below that contain key concepts and tasks with supporting sample code snippets. In each guide, go to the Start Here > What's New sections to learn about new features in the SDK. Also view and download API references that contain syntax, information, and examples for the classes, interfaces, and members of each SDK.

 

To view online Javadocs for our Java SDKs, visit: http://help.sap.com/javadocs.

Solution
Java SDKsGuideReference
SAP BusinessObjects Business Intelligence platform 4.0 (BI document access and administration)Business Intelligence platform Java SDKDeveloper Guide

API Reference(Javadocs)

SAP BusinessObjects Business Intelligence platform 4.0 (BI document access and administration)Web Services Consumer Java SDKDeveloper Guide

API Reference(Javadocs)

SAP BusinessObjects Business Intelligence platform 4.0 (semantic layer)Data Access Driver Java SDKDeveloper Guide

API Reference(Javadocs)

SAP BusinessObjects Business Intelligence platform 4.1 (semantic layer)Data Access Driver Java SDK-

API Reference

(Javadocs)

SAP BusinessObjects Business Intelligence platform 4.0 (semantic layer)Semantic Layer Java SDKDeveloper Guide

API Reference(Javadocs)

SAP BusinessObjects Business Intelligence platform 4.1 (semantic layer)Semantic Layer Java SDKDeveloper Guide

API Reference

(Javadocs)

SAP BusinessObjects Web Intelligence 4.0Report Engine Java SDKDeveloper Guide

API Reference(Javadocs)

SAP BusinessObjects Web Intelligence 4.0Custom Data Source Framework Java SDKDeveloper Guide

API Reference(Javadocs)

SAP Crystal Reports 2011Report Application Server Java SDKDeveloper Guide

API Reference(Javadocs)

SAP Crystal Reports 2011Viewers Java SDKDeveloper Guide

API Reference(Javadocs)

 

.NET SDK Developer Guides and API References

View developer guides below that contain key concepts and tasks with supporting sample code snippets. In each guide, go to the Start Here > What's New sections to learn about new features in the SDK.

 

Also view and download API references that contain syntax, information, and examples for the classes, interfaces, and members of each SDK.

Solution.NET SDKsGuideReference
SAP BusinessObjects BI Platform 4.0 Support Pack 2SAP BusinessObjects BI Platform .NET SDK.NET Runtime Deployment GuideAPI Reference
SAP BusinessObjects Business Intelligence platform 4.0SAP BusinessObjects Web Services SDKDeveloper Guide
SAP Crystal Reports for Visual Studio 2010 SP10/SP11Crystal Reports .NET SDK

Developer Guide

Installation Guide

API Reference
SAP Crystal Reports for Visual Studio 2010Report Application Server .NET SDKDeveloper GuideAPI Reference

 

COM SDK Developer Guides and API References

SolutionCOM SDKsGuideReference
SAP BusinessObjects 4.0 Universe design toolUniverse design tool SDKObject Model DiagramsAPI Reference

 

RESTful Web Services SDK Developer Guides and API References

SolutionSDKGuide or Reference
SAP Business Objects BI Platform 4.1BI PlatformDeveloper Guide
SAP Business Objects BI Platform 4.0 Support Pack 6Crystal ReportsDeveloper Guide
SAP Business Objects BI Platform 4.1Crystal ReportsDeveloper Guide
SAP Business Objects BI Platform 4.0Web IntelligenceDeveloper Guide
SAP Business Objects BI Platform 4.1Web IntelligenceDeveloper Guide

 

Additional Guides and Resources

SolutionTitleTechnology
SAP BusinessObjects Business Intelligence platform 4.0Web Services Administrator’s GuideJava Web Services provider
SAP BusinessObjects Business Intelligence platform 4.0Viewing Documents Using OpenDocumentURL Parameters
SAP BusinessObjects Business Intelligence platform 4.1

Viewing Documents Using OpenDocument

URL Parameters
SAP BusinessObjects Business Intelligence platform 4.0

Viewing Crystal Reports Using URL Reporting(legacy)

URL Parameters

How To: What Jar Contains the Class I Need?

$
0
0

Overview

Have you ever been working on a program and wonder what jar contains the classes you require? Have you ever run into a case where more than one class with the same name is available in your code? Have you ever noticed the JAVA APIs never tell you what jar a class comes from? I have, many times. I have used the following perl script to retrieve a list of classes from each jar in the path I point the script to.

 

DISCLAIMER: YOU ARE USING THIS CODE AT YOUR OWN RISK. GREGORY CABLE AND HIS AFFILIATES MAY NOT BE HELD LIABLE FOR ANY NEGATIVE EFFECTS YOU EXPERIENCE IN USING THIS CODE. THIS CODE IS PROVIDED AS IS - BY USING THIS CODE YOU ACCEPT FULL RESPONSIBILITY. YOU ARE ALSO RESPONSIBLE FOR ANY MODIFICATIONS MADE TO THIS CODE.

 

Requirements:

  • You must have Perl installed
  • You must have BOBJ installed (jars and unzip will come form the install)
  • The code provided


Steps:

  • Add the following code to a file. The name getBOBJClassList.pl works.

Perl Script

# Declaring variables, in perl you don't have to by default but it is a good habit
my (@classInventory, @dirList, $file, @classList, $class, $unzipPath);
$unzipPath = "C:\\Program Files (x86)\\SAP BusinessObjects\\InstallData\\InstallCache\\setup.core-4.0-core-32\\14.1.5.1501\\actions\\";
print "$unzipPath\n";
# This is the dir to change as needed, again make sure you escape the backslashes with back slashes
$dir = "C:\\Program Files (x86)\\SAP BusinessObjects\\SAP BusinessObjects Enterprise XI 4.0\\classes\\";
# Here we are using backtick operators (shift-tilde)
# They tell the perl engine to run the enclosed code as a system command
# BTW, an ampersand is a list or array in perl, basically I am taking the directory and pumping it into a list of values
# The /b causes dir to return nothing but the path and the file name
# The /s causes dir to search sub-directories, it forces the search to be recursive
@dirList = `dir /b/s "$dir*"`;
@iterate through our list and assign each value to $fileforeach $file(@dirList)

{
# Simply stripping the carriage return off the end of the string
chomp($file);
# A regular expression. I am essentially saying give me all files that END with .zip or .jar,
# The dollar sign is what tells it to match at the end of the string
# The =~ is telling it to look at the string \$file,  without it perl would look at the default variable \$_
if ($file =~ /\.jar$/ or $file =~ /\.zip$/)
{
# Again, use the backtick operator to get the information from unzip

@classList = `"${unzipPath}unzip" -l "$dir$file"`;

foreach $class(@classList)
{
#  Push simply puts the value onto the end of the list, it auto increments so no redim or playing around is needed
push @classInventory, "$file:\t$class";
                }

}

}

 

# I didn't strip out the carriage return on the results of the unzip so I don't have to add them back here
# I will just dump the entire list to the screen here.
print @classInventory;

exit;

  • Replace the path between the quotes on the line that starts with "$unzipPath = ". You can search for "unzip.exe" on your drive, be sure to add \\ to the end of the path and make each \ within the path \\ (escapes it so perl knows it is a literal backslash).
  • Replace the path between the quotes on the line that starts with "$dir = ". This is the path that contains the jar files from which you wish to extract the class information. Once again, be sure to add \\ to the end of the path and make each \ within the path \\ (escapes it so perl knows it is a literal backslash).
  • Run the perl script. This can take a while to run.


Additional Information:

  • To use the list, simply replace the "." in your import statement with "/" and search the results of the script. Note that we could have programmatically replaced the "/" with "." in the script using regular expressions.
  • We could also use command line substitutions to set the paths, I don't see the point since I have to modify them text by adding backslashes anyway.
  • Finally, rather than dumping the results to standard out you can always create a file.

 

TIP: When the script is running it will be dumping a line out for every class found in the jar files. The screen print takes a lot of resources. If you minimize the screen or re-size the screen so very few rows are displayed the process will complete much quicker.

 

Result Sample

C:\Program Files (x86)\SAP BusinessObjects\InstallData\InstallCache\setup.core-4.0-core-32\14.1.5.1501\actions\

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar: Archive:  C:/Program Files (x86)/SAP BusinessObjects/SAP BusinessObjects Enterprise XI 4.0/java/lib/activation.jar

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:  Length      Date    Time    Name

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar: ---------  ---------- -----   ----

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:     4013  04/19/2006 08:11   META-INF/MANIFEST.MF

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:     3745  04/19/2006 08:11   META-INF/SUN_MICR.SF

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:     3771  04/19/2006 08:11   META-INF/SUN_MICR.RSA

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:        0  04/19/2006 08:10   META-INF/

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:      292  04/19/2006 08:10   META-INF/mailcap.default

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:      581  04/19/2006 08:10   META-INF/mimetypes.default

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:        0  04/19/2006 08:10   javax/

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:        0  04/19/2006 08:10   javax/activation/

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:     2093  04/19/2006 08:10   javax/activation/ActivationDataFlavor.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:     3611  04/19/2006 08:10   javax/activation/MimeType.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:     3639  04/19/2006 08:10   javax/activation/MimeTypeParameterList.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:      324  04/19/2006 08:10   javax/activation/MimeTypeParseException.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:     1304  04/19/2006 08:10   javax/activation/CommandInfo.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:     1207  04/19/2006 08:10   javax/activation/DataHandler$1.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:     8412  04/19/2006 08:10   javax/activation/DataHandler.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:      346  04/19/2006 08:10   javax/activation/DataSource.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:     2279  04/19/2006 08:10   javax/activation/CommandMap.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:      598  04/19/2006 08:10   javax/activation/DataContentHandler.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:      243  04/19/2006 08:10   javax/activation/DataContentHandlerFactory.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:      254  04/19/2006 08:10   javax/activation/CommandObject.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:      835  04/19/2006 08:10   javax/activation/DataHandlerDataSource.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:     2090  04/19/2006 08:10   javax/activation/DataSourceDataContentHandler.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:     2115  04/19/2006 08:10   javax/activation/ObjectDataContentHandler.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:     1346  04/19/2006 08:10   javax/activation/FileDataSource.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:     1534  04/19/2006 08:10   javax/activation/FileTypeMap.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:     9491  04/19/2006 08:10   javax/activation/MailcapCommandMap.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:     5663  04/19/2006 08:10   javax/activation/MimetypesFileTypeMap.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:      563  04/19/2006 08:10   javax/activation/SecuritySupport$1.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:      699  04/19/2006 08:10   javax/activation/SecuritySupport$2.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:     1173  04/19/2006 08:10   javax/activation/SecuritySupport$3.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:     1088  04/19/2006 08:10   javax/activation/SecuritySupport$4.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:      592  04/19/2006 08:10   javax/activation/SecuritySupport$5.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:     1724  04/19/2006 08:10   javax/activation/SecuritySupport.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:     1201  04/19/2006 08:10   javax/activation/URLDataSource.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:      336  04/19/2006 08:10   javax/activation/UnsupportedDataTypeException.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:        0  04/19/2006 08:10   com/

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:        0  04/19/2006 08:10   com/sun/

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:        0  04/19/2006 08:10   com/sun/activation/

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:        0  04/19/2006 08:10   com/sun/activation/registries/

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:     7029  04/19/2006 08:10   com/sun/activation/registries/MailcapFile.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:      335  04/19/2006 08:10   com/sun/activation/registries/MailcapParseException.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:     3287  04/19/2006 08:10   com/sun/activation/registries/MimeTypeFile.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:      734  04/19/2006 08:10   com/sun/activation/registries/MimeTypeEntry.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:     1862  04/19/2006 08:10   com/sun/activation/registries/LineTokenizer.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:     1605  04/19/2006 08:10   com/sun/activation/registries/LogSupport.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:     3616  04/19/2006 08:10   com/sun/activation/registries/MailcapTokenizer.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:        0  04/19/2006 08:10   com/sun/activation/viewers/

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:     2569  04/19/2006 08:10   com/sun/activation/viewers/ImageViewer.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:      928  04/19/2006 08:10   com/sun/activation/viewers/ImageViewerCanvas.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:     4003  04/19/2006 08:10   com/sun/activation/viewers/TextEditor.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:     1803  04/19/2006 08:10   com/sun/activation/viewers/TextViewer.class

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar: ---------                     -------

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib\activation.jar:    94933                     51 files

Java Enterprise BE12 Get Webi Report Objects

$
0
0

This document provides a way to get the data objects used in a web intelligence document using Report Engine Java SDK.

While running the code, you have to provide a folder id, for which you want all the webi report data objects. This will also bring reports in sub folders.

 

For more scripts and information on how to run these scripts refer to the blog avaiable here:

http://scn.sap.com/people/shawn.penner/blog/2013/06/04/scripts-and-samples

Below is the Java Server Pages (JSP) sample

 

Note:

•You would need to change the userName, password, cmsName  to the values specific to your enterprise server in the provided sample code.

• The sample code will only run with BO XI 3.1 version of SAP BusinessObjects Platform


 

Get Webi Document Objects

<html>

<style>

.table {

  margin-bottom: 15px;

 

  border-collapse: collapse;

  }

  .table_header td {

  background: #294f7f;

  padding: 5px 10px;

  color: rgb(255,255,255);

  border-top: 1px solid #CBD6DE;

  border-bottom: 1px solid #ADBECB;

  font-size: 1.0em;

  font-weight: bold;

  }

  .table_header td {

  border: 1px solid #CBD6DE;

  }

  .row td{

  padding: 5px 10px;

  color: #666666;

  border: 1px solid #CBD6DE;

  }

  .row td {

  background: #ffffff;

  }

 

 

 

 

</style>

</head>

<body>

 

 

<%@ page import="com.crystaldecisions.sdk.framework.*,

               com.crystaldecisions.sdk.occa.infostore.*,

             com.businessobjects.rebean.wi.*,

  java.io.*"

%>

<TABLE id="htmlTable" BORDER="1" cellpadding="0" cellspacing="0"   width="90%"  class="table" align="center">

<tr class="table_header">

   <td>Report ID</td><td>Report Name</td><td>Report Objects</td>

                               

                </tr>

<%

  //Enter Username

  String username = "administrator";

  //Enter User password

  String password = "";

  //Enter CMS Name

  String cmsname = "localhost:6400";

  String authtype = "secEnterprise";

  //Enter the folder if for which you need to retrieve the webi reports objects

  int report_folder_id=2750278;

  IEnterpriseSession oEnterpriseSession=null;

  ReportEngines engines=null;

  ReportEngine widocRepEngine=null;

  try

  {

  oEnterpriseSession = CrystalEnterprise.getSessionMgr().logon(username, password, cmsname, authtype);

  engines = (ReportEngines) oEnterpriseSession.getService("ReportEngines");

  widocRepEngine = (ReportEngine) engines.getService(ReportEngines.ReportEngineType.WI_REPORT_ENGINE);

 

 

 

  getReportObjectsInFolder(oEnterpriseSession,widocRepEngine,report_folder_id,out);

  }

  catch(Exception e)

  {

  out.println(e);

  }

  finally

  {

  widocRepEngine.close();

  engines.close();

  oEnterpriseSession.logoff();

 

  }

%>

</table>

</body>

</html>

<%!

private void getReportObjects(IEnterpriseSession oEnterpriseSession,ReportEngine widocRepEngine,int reportID, JspWriter out) throws Exception

{

 

DocumentInstance wiDoc = widocRepEngine.openDocument(reportID);

 

  ReportDictionary reportDictionary=wiDoc.getDictionary();

  for(int a=0;a<reportDictionary.getChildCount() ;a++)

  {

  String name=reportDictionary.getChildAt(a).getName();

  out.println("<td>"+name+"</td></tr>");

  out.println("<tr class=\"row\"><td>  </td><td>  </td>");

  }

  out.println("<td></td></tr>");

wiDoc.closeDocument();

}

private void getReportObjectsInFolder(IEnterpriseSession oEnterpriseSession,ReportEngine widocRepEngine,int reportFolderID, JspWriter out) throws Exception

{

 

 

IInfoStore oInfoStore = (IInfoStore)oEnterpriseSession.getService("","InfoStore");

 

try

{

  String query = "select si_id from ci_infoobjects where SI_PARENTID="+reportFolderID;

  IInfoObjects oInfoObjects = oInfoStore.query(query);

 

 

  for(int i=0;i<oInfoObjects.size();i++)

  {

  IInfoObject oInfoObject = (IInfoObject) oInfoObjects.get(i);

  String objectKind1=oInfoObject.getKind();

  if(objectKind1.equals("Folder"))

  {

  int folderID=oInfoObject.getID();

  IInfoObjects boReportInfoObjects=oInfoStore.query("SELECT SI_ID FROM CI_INFOOBJECTS WHERE SI_PARENTID="+folderID);

  for(int j=0;j<boReportInfoObjects.size();j++)

  {

  IInfoObject boReportInfoObject=(IInfoObject)boReportInfoObjects.get(j);

  String objectKind=boReportInfoObject.getKind();

  if(objectKind.equals("Folder"))

  {

  getReportObjectsInFolder(oEnterpriseSession,widocRepEngine,boReportInfoObject.getID(),out);

 

  }

  else if(objectKind.equals("Webi"))

  {

  out.println("<tr class=\"row\"><td>"+ boReportInfoObject.getID() + "</td><td>"+ boReportInfoObject.getTitle() + "</td>");

  getReportObjects(oEnterpriseSession,widocRepEngine,boReportInfoObject.getID(),out);

 

  }

 

  }

  }

  else if(objectKind1.equals("Webi"))

  {

 

  out.println("<tr class=\"row\"><td>"+ oInfoObject.getID() + "</td><td>"+ oInfoObject.getTitle() + "</td>");

  getReportObjects(oEnterpriseSession,widocRepEngine,oInfoObject.getID(),out);

 

 

  }

 

 

  }

}

catch(Exception exe)

{

out.println(exe);

}

}

 

%>


Viewing all 39 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>