A bean to read the Forms applet parameters
By francois degrelle on Friday, March 27 2015, 14:32 - PJC - Javabean - Permalink
Purpose
Here is a Java Bean component to read the Forms applet parameters
The java code
Get the source code here
Forms configuration
Copy the appletproperties.jar file in the /forms/java directory
Edit the /forms/server/formsweb.cfg file to add the jar file to the archive_jini variable
archive_jini=f90all_jinit.jar,……,appletproperties.jar
Implementation Class property
oracle.forms.fd.AppletProperties
Properties you can set
The parameter you want to read
Set_Custom_Property( 'BLOCK.BEAN_AREA', 1, 'SET_PARAM', 'param_name' ) ;
e.g.
Set_Custom_Property( 'BL.BEAN', 1, 'SET_PARAM', 'colorScheme' ) ;
Properties you can read
Get all the properties in a string
Varchar2 := Get_Custom_Property( 'BLOCK.BEAN_AREA', 1, 'GET_INFOS' ) ;
Get a particular property
Varchar2 := Get_Custom_Property( 'BL.BEAN', 1, 'GET_PARAM' ) ;
(assume that you have just set this property before with the SET_PARAM ID.)
The sample dialog
. Download the appletproperties.zip file
. Unzip the file
. Edit your /forms/server/formsweb.cfg file
. Open the APPLETPROPERTIES.fmb module (Oracle Forms 9.0.2)
. Compile all and run the module