FBEAN not triggering WHEN-CUSTOM-ITEM-EVENTS
Hello fellow coders!
I am trying to implement a Bean that comunicates back to the Oracle Form using the WHEN-CUSTOM-ITEM-EVENT trigger and the enhanced bean support FBEAN package (as opposed to writing a container, ID.registerProperty approach).
It is registering all bean properties and methods but is NOT firing events. I am either incorrectly using syntax or missing a piece somewhere. The documentation on this is very, very scarse. :(
Can anyone provide clarity? Thanks!
Here are some snippets of my code:
OraForm -
WHEN-NEW-FORM-INSTANCE
--I am "double registering" to eliminate the idea I'm not using the right spelling.
FBEAN.enable_event('BA_WORD_BEAN',1,'customListener',true);
FBEAN.enable_event('BA_WORD_BEAN',1,'CustomListener',true);
WHEN-CUSTOM-ITEM-EVENT trigger (on Bean Area)
BEGIN
message('Firing WHEN-CUSTOM-ITEM-EVENT Trigger');
message(' ');
--I NEVER see this message dialog... :(
JavaClass -
public void init(IHandler handler) {
super.init(handler);
mHandler = handler;
System.out.println("init() finished.");
}
public void calledMethod{
CustomEvent ce = new CustomEvent(mHandler, "Completed");
dispatchCustomEvent(ce);
}