How do I trigger a user event in Java?

Hi all,

I have the following piece of code:


String sQuery="SELECT * FROM CI_SYSTEMOBJECTS where si_kind='Event' and si_name='myEvent'" ;
IInfoObjects myReportObjects = myInfoStore.query(sQuery) ;
IInfoObject myObject = (IInfoObject)myReportObjects.get(0) ;
IEvent myEvent = (IEvent)myObject ;
myUserEvent = (IUserEvent)myEvent.getEventInterface() ;
myUserEvent.trigger() ;

and in my naive assumption I’d thought this would be enough to trigger a user event called “myEvent”. To my chagrin, it does not…

Any ideas about what am I doing wrong?

Cheers,


broccoli :us: (BOB member since 2005-03-10)

As it turned out, the code above works great.

I simply didn’t use the commit() method on the IInfoObjects returned when I queried the CMC…[/quote]


broccoli :us: (BOB member since 2005-03-10)