Oracle Forms Community-
Pluggable Java Components & Java Beans' library warning :
The material provided on this site does not come from Oracle and is not supported by Oracle Join us on theforms.pjc.beanforum
IF (eventName='LINK_ACTIVATED') THEN
get_parameter_attr(eventValues,'LINK_NAME',eventValueType, p1);
:CTRL.OPTION := p1;
new_form(p1);
END IF;
END;
The sample
dialog
.Download the breadcrumb.zip file . Unzip the breadcrumb.zip file . Copy the breadcrumb.jar file in your /forms/java/
folder . Add it to the
archive and archive_jini tags of the /forms/server/formsweb.cfg file
e.g.: archive_jini=frmall_jinit.jar,breadcrumb.jar
archive=frmall.jar,breadcrumb.jar . Open the breadcrumb.fmb module (Oracle Forms 10.1.2.0.2)
. Compile all and run the module
IF (eventName='IMAGE_DROPPED') THEN
get_parameter_attr(eventValues,'IMAGE_NAME',eventValueType, p1);
Message('Image dropped:' || p1,no_acknowledge);
END IF;
END;
Here is a PJC that hide parts of a text item. It is usefull to hide the begin or the
end (or any part actually) of a phone number or a credit card.
The implementation class of the PJC
oracle.forms.fd.ConcealTextField
The methods you can call
Set the bounds
Set_Custom_Property( 'BL.TI', 1, 'SET_BOUNDS', '1,6' );
This method indicates what part of the text you want to obfusk. In this example, we want to obfusk the first six charaters.
.Download the concealtextfield.zip file . Unzip the concealtextfield.zip.zip file . Copy the concealtextfield.jar file in your /forms/java/
folder . Add it to the
archive and archive_jini tags of the /forms/server/formsweb.cfg file
e.g.: archive_jini=frmall_jinit.jar,concealtextfield.jar
archive=frmall.jar,concealtextfield.jar . Open the ConcealTextField.fmb module (Oracle Forms 10.1.2)
. Compile all and run the module
The full filemane is transmitted in the EVENT_MSG parameter.
DECLARE
l_eventName varchar2(30) := :system.custom_item_event;
l_eventValues ParamList;
l_eventValueType number;
l_event_msg VARCHAR2(255);
BEGIN
IF l_eventName = 'DROP'
THEN
l_eventValues := get_parameter_list(:system.custom_item_event_parameters);
get_parameter_attr(l_eventValues,'EVENT_MSG',l_eventValueType, l_event_msg);
IF :system.record_status <> 'NEW'
THEN
create_record;
END IF;
:ctrl.file_location := l_event_msg;
END IF;
END;
The sample
dialog
.Download the filedrop.zip file
. Unzip the filedrop.zip file . Copy the FileDrop.jar file in your /forms/java/
folder . Add it to the archive and archive_jini tags of the /forms/server/formsweb.cfg file . Open the FILEDROP.fmb
module (Oracle Forms 10.1.2)
. Compile all and run the module
The implementation class of the PJC (TextItem Item)
forms.CardTextfield
The PJC initialisation
Read the content of the PK_CARDITEM package from the CARDITEM.fmb sample dialog
The sample
dialog
.Download the carditem.zip file
. Unzip the carditem.zip file . Copy the carditem.jar file in your /forms/java/
folder . Add it to the archive and archive_jini tags of the /forms/server/formsweb.cfg file . Compile the
PKG_READ_BLOB_IMAGE.sql script in your database schema . Open the CARDITEM.fmb module (Oracle
Forms 10.1.2.0.2)
. Compile all and run the module
When you migrate to the latest Forms version (10.1.2.3 or 11) and try using a JavaBean created with an older Forms version, you can get the following error, at
runtime, in the Java Console:
Exception in thread "thread applet-oracle.forms.engine.Main-1" java.lang.NoSuchMethodError: oracle.forms.handler.IHandler.getApplet()Ljava/applet/Applet
The reason is you try to use a Java Bean compiled with an older Forms JAR file, like f90all.jar.
So, to correct the issue, you have to change the Java code then re-create the JAR file:
private Main formsMain = null;
Replace:
formsMain = (Main) handler.getApplet();
by:
// getting the Forms Main class try{ Method method = handler.getClass()
.getMethod("getApplet", new Class[0]); Object applet = method.invoke(handler, new Object[0]); if (applet instanceof Main) { formsMain = (Main)applet; } }catch(Exception ex) {;}
Then create and deploy the new JAR file to your /forms/Java folder.
The implementation class of the PJC (PushButton Item)
forms.AccordionButton
The PJC initialisation
Read the content of the PK_AKKORDION.txt file from the zip file
The sample
dialog
.Download the accordion.zip file
. Unzip the accordion.zip file . Copy the accordion.jar file in your /forms/java/
folder . Add it to the archive and archive_jini tags of the /forms/server/formsweb.cfg file . Open the ACCORDION.fmb and
ACCORDION2.fmb modules (Oracle Forms 10.1.2.0.2)
. Compile all and run the module
Here is a Simple Horizontal Scrolling Marquee Java Bean proposed by Omama Khurshid from Taxila Pakistan.
She is working as Software Engineer at Pakistan Revenue Automation Limited Islamabad Pakistan from 3 years and working on PJC from
at least 1.5 years for developing different functionality in Oracle forms 10g.
Email address: omamadr@yahoo.com
.Download the marqueePJC.zip file
. Unzip the marqueePJC.zip file . Copy the banner.jar file in your /forms/java/
folder . Add it to the archive and archive_jini tags of the /forms/server/formsweb.cfg file . Open the banner.fmb module (Oracle Forms 10.1.2)
. Compile all and run the module
The jar file must be signed
The jar file provided with the .zip file is already signed
.Download the KeyPressed.zip file . Unzip the file
. copy the keypressed.jar file in the <ORACLE_HOME>\Middleware\as_1\forms\java directory . Edit your formsweb.cfg file to add the
keypressed.jar to the archive tag. <WEBLOGIC_HOME>\Middleware\user_projects\domains\ClassicDomain\config\fmwconfig\servers\WLS_FORMS\applications\formsapp_11.1.1\config\formsweb.cfg
. Open the KEYPRESSED11g.fmb module (Oracle Forms11g)
. Compile all and run the module