on 05-06-2013 9:55 PM
Hello Everyone,
I have created a Publication with couple of Crystal reports in it. I have created a Custom Event as well. How to I attach the Custom Event to the Publication via the Java SDK API calls similar to how it's done in the "Events" tab under "Publication --> Properties" via the GUI.
This is BO 3.1 using Enterprise Java SDK.
Thank you!
Hi Sandesh,
Use the following code snippet:
IInfoObjects oInfoObjects = (IInfoObjects)infoStore.query("SELECT * FROM CI_INFOOBJECTS WHERE SI_NAME='<publication name>' and si_recurring=1");
for(int i=0;i<oInfoObjects.size(); i++)
{
IInfoObject oInfoObject = (IInfoObject) oInfoObjects.get(i);
// For events that this schedule waits for:
oInfoObject.getSchedulingInfo().getDependencies().clear();
oInfoObject.getSchedulingInfo().getDependencies().add(<new event SI_ID>);
// For events that this scheducle triggers
oInfoObject.getSchedulingInfo().getDependents().clear();
oInfoObject.getSchedulingInfo().getDependents().add(<new event SI_ID>);
}
infoStore.commit(oInfoObjects);
Hope it helps.
Regards,
Anchal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.