Java Enterprise BE14 Set Publication Report Bursting Method
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.*, try { String userName = “administrator”; //administrator username IEnterpriseSession enterpriseSession = CrystalEnterprise.getSessionMgr().logon(userName, password, cmsName, authType); String query = “select * from ci_infoobjects where si_id=11475”; IInfoObjects oInfoObjects = (IInfoObjects)infoStore.query(query) ; IInfoObject oInfoObject = (IInfoObject) oInfoObjects.get(0); out.println(“Publication Name :”+pub.getTitle()+”<br>”); //Use IPublicationBase.CeDataBurstingMode.ceSinglePass for setting single pass bursting (i.e) One database fetch is executed in a single report processing job pub.setBurstingMode(IPublicationBase.CeDataBurstingMode.cePerRecipientBursting); %> |
Hi,
Thanks for the information. We have to publish the report based on a condition like a Flag in the report 1 or 0. Is that possible? Also we use Windows AD so will it be secWindowsAd?
Arun
I not sure about setting a flag as I haven't done something on similar lines. Regarding Windows AD login, you should use secWinAD as authentication and make sure you have below settings done for your application.
-Djava.security.auth.login.config=c:/windows/bsclogin.conf (or non default path)
-Djava.security.krb5.conf=c:/windows/krb5.ini (or non default path)