Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

FBEAN not triggering WHEN-CUSTOM-ITEM-EVENTS

donhoytDec 14 2009
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);
}
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 11 2010
Added on Dec 14 2009
0 comments
506 views