Additional Blogs by SAP
Showing results for 
Search instead for 
Did you mean: 
0 Kudos

<p>To run a program job that is published to Enterprise you need to set classpath which contains Business Objects or other 3rd party SDK Jars that you may be using in the program object. You will need to update the classpath of the object as well as any recurring scheduled instances if you update the Jars location or update to different set of Jars or migrate from older version of Enterprise to a newer one. The following code can be use to update that in a batch. Also to update the classpath for already existing schedules you can only do it via custom code similar to the following:</p><p>Java SDK Code<br /><textarea cols="75" rows="10"><%@ page import = "com.crystaldecisions.sdk.framework.*,





     IEnterpriseSession enterpriseSession = CrystalEnterprise.getSessionMgr().logon( "administrator", "<password>", "<cmsname>", "secEnterprise");
     IInfoStore infoStore = (IInfoStore)enterpriseSession.getService("", "InfoStore");
     IInfoObjects oInfoObjects = (IInfoObjects)infoStore.query("SELECT TOP 1 si_id, si_processinfo FROM CI_INFOOBJECTS WHERE SI_KIND = 'Program' AND SI_RECURRING=1" );
     IInfoObject programObject = (IInfoObject) oInfoObjects.get(0);