How to Add JavaBeans Using Enhanced JavaBean Support
To add JavaBeans to a form:
- In your form, at design time, create a Bean Area as an Item (Item
Type property). The user will see the JavaBean in this item in the user
interface.
- If you simply want to view the JavaBean in the form, use FBEAN.REGISTER_BEAN
to set the name property in the WHEN-NEW-FORM-INSTANCE trigger.
- If communication will be needed with the JavaBean while it is running, code
WHEN-CUSTOM-ITEM-EVENT triggers in your form to send and receive information.
To add JavaBeans to a Forms Application :
- enable the JavaBean in your Form by registering
the bean at runtime with a call to
FBEAN.REGISTER_BEAN
on
the Bean Area
- use get and set methods to manipulate properties
and/or indexed properties on the
JavaBean
- manipulate the JavaBean's functionality by accessing
JavaBean methods
- enable communication between the JavaBean and the Forms application by adding
code that will handle JavaBean events
- output JavaBean properties, warnings, and exceptions to the Java console
by enabling debug mode
- work with complex data types or events by writing
your own custom encoders
- Store the JavaBean so that the WebServer can find it at runtime. The JAR
file or classes for the JavaBean should be placed in, or relative to, the
Forms Codebase.