Pluggable Java Components (PJC) / Beans in Forms
I am looking for some sources of PJCs or beans that can be used in Forms beyond those listed on OTN. Specifically, I'd like to find a much more feature rich tree control that supports drag and drop to move tree branches, and more of the windows-like native functionality.
Thanks!
Hi
I am also looking for an alternative way to implement Drop and Drag functionality in Forms 9i.
Regards
Janet
Similar Messages
-
Can Designer10gR2 generate Forms with Pluggable Java Components and WebUtil
I know that Forms 10g supports Pluggable Java Components and WebUtil. Designer 10g R2 provides Design Capture of Forms to Modules. Can Designer capture a Form with Pluggable Java Components and WebUtil and then regenerate Form from within Designer? IF yes, would you give me more details. Thanks.
Hi
I am also looking for an alternative way to implement Drop and Drag functionality in Forms 9i.
Regards
Janet -
ANNOUNCEMENT: New How-To on Debugging Pluggable Java Components
Forms Product Management are pleased to announce a new How-To document demonstrating how you can debug Forms Pluggable Java Components running "live" in a Form, from within JDeveloper.
The direct URL is:
http://otn.oracle.com/products/forms/htdocs/howto_debug_pjc.html
Or from the OTN Forms Homepage:
http://otn.oracle.com/products/formsHow to debug pjc by passing Different config otpion
I have separate config for webutil so my forms with runs like localhost:8889/forms/f90servlet?config=webutil.......
I want to debug pjc used in one of the webutil form how do i achive that
when I run with abouve example look like is not usign frmwebutil.jar which i try to place all over and i gets error "frm-47023 No such parameter name WEBUTILCONFIG exists in form <formname>."
here is my debug_pjc.html
<HTML>
<!-- FILE: debug_pjc.htm (Oracle Forms) -->
<!-- -->
<!-- This is a HTML file used for debugging Pluggable Java Components -->
<!-- update the serverArgs parameter to include your test module -->
<!-- name and any other required Forms arguments -->
<!-- Amend references of localhost:8889 to the correct server and -->
<!-- Port number if you are using a remote server -->
<HEAD><TITLE>Debug My PJC</TITLE></HEAD>
<BODY>
<APPLET CODEBASE="http://localhost:8889/forms90/java"
CODE="oracle.forms.engine.Main" WIDTH="1040"
HEIGHT="738"
HSPACE="0"
VSPACE="0">
<PARAM NAME="serverURL" VALUE="http://localhost:8889/forms90/l90servlet">
<PARAM NAME="serverArgs" VALUE="module=gzipidc">
<PARAM NAME="ARCHIVE" VALUE="banicons.jar,bannerui.jar,banspecial.jar,banorep.jar,f90all_jinit.jar,frmwebutil.jar" >
<PARAM NAME="serverURL" VALUE="http://localhost:8889/forms90/l90servlet?ifcfs=http://localhost:8889/forms90/f90servlet?config=dvl&separateFrame=false&acceptLanguage=en-us">
<PARAM NAME="networkRetries" VALUE="30">
<PARAM NAME="lookAndFeel" VALUE="Oracle">
<PARAM NAME="colorScheme" VALUE="blaf">
<PARAM NAME="serverApp" VALUE="default">
<PARAM NAME="logo" VALUE="no">
<PARAM NAME="imageBase" VALUE="codeBase">
<PARAM NAME="heartBeat" VALUE="1">
<PARAM NAME="formsMessageListener" VALUE="">
<PARAM NAME="recordFileName" VALUE="">
<PARAM NAME="config" VALUE="webutil">
<PARAM NAME="WebUtilArchive" VALUE="frmwebutil.jar,jacob.jar,fjtable.jar ">
<PARAM NAME="WebUtilLogging" VALUE="server">
<PARAM NAME="WebUtilLoggingDetail" VALUE="Detailed">
<PARAM NAME="WebUtilErrorMode" VALUE="server">
<PARAM NAME="archive_jini" VALUE="banspecial.jar,f90all_jinit.jar,banicons.jar,bannerui.jar,frmwebutil.jar,jacob.jar,fjtable.jar">
<PARAM NAME="baseHTML" VALUE="webutilbase.htm">
<PARAM NAME="baseHTMLjinitiator" VALUE="webutiljini.htm">
<PARAM NAME="baseHTMLjpi" VALUE="webutiljpi.htm">
<PARAM NAME="pageTitle" VALUE="Vipul's forms server-webutil">
<PARAM NAME="escapeparams" VALUE="true">
<PARAM NAME="form" VALUE="gzipidc.fmx">
<PARAM NAME="envFile" VALUE="webutil.env">
<PARAM NAME="WebUtilMaxTransferSize" VALUE="16384">
</APPLET>
</BODY>
</HTML> -
JDev3.0 - Creating Forms Pluggable Java Components
I am trying to create my own version of the checkbox for
deployment on web within Forms6.
From the Forms6 help it seems the best way to do this is to
subclass the oracle.forms.ui.VCheckbox item.
However, when using the JDev wizards to create this I hit a
problem. I start by doing the following:
File, New Project, Next,
'A Project containing a new...', 'Oracle Forms PJC',
Next buttons until Finish, then select the
oracle.forms.ui.VCheckbox from the Extends drop down list., OK
At this point the java file is created, but is empty.
The wizards dialog box remains up but Ok and Cancel buttons are
greyed out.
What next?
Also is there any better documentation than the Forms Help which
only really explains Beans.
nullHi,
Jdeveloper 10.1.3 doesn't have the PJC wizard installed. If you want to use JDeveloper 10.1.3 for your PJC development then you need to add frmall.jar (or f90all.jar) to your project and copy and paste an existing PJC template into an empty Java source file. You can also create a code template in the JDeveloper preferences so that the PJC code is added using a keyboard shortcut
Frank -
Need help.I am getting this error
Field Dosent understand the Operation error.
When i tried to run the RolloverButton Demo
[email protected]
JaganHi
I am also looking for an alternative way to implement Drop and Drag functionality in Forms 9i.
Regards
Janet -
I just got the rollover button working. I haven't been this excited about Oracle forms for quite some time! Amazing potential here. Does anyone know of a good resource fo PJC's? I am looking fo a poplist type control which auto reduces as the user types.
Thanks,
Dangday dan -
glad you were able to make the PJC work. Did you come across any problems or difficulties in the setup?
I'm not aware of any existing PJC component that provides the functionality you are looking for. It's a good idea.
We'll put this on the list of possible examples for the future.
We're currently working on a feature for 6i that will allow you to call out to server side Java from Forms PL/SQL..... stay tuned for more info!
cheers!
-steve-
null -
Understanding Pluggable java components
Hello
i read several example and actually sucessfully implemeted them, however, i have not found a single document that explains the lifecycle of a java bean.
i mean, there is an init(), that seems to be called automatically , more importantly when exactly is the bean instentiated. if i make a call to set_custom_property and passed a separate property each time, is the bean instentiated twice, or it is a call to the same object. because i need to actually pass several properties to my bean
rgds
ammar sajdi
amman - jordanHello,
You are right, this kind of documentation is hardly inexistent.
From what I Observed, the Java Bean is created or initialized only when it is physically displayed on the screen, reason why you can get a Java error if you want to use the Set_Custom_Property() built-in on a Java Bean that has not been displayed yet.
I also think that the Java Bean is destroyed when the windows that holds it is destroyed too.
Francois -
Forms 6i and Portable Java Components
Hello
Where do I have to place my Java classes (PJCs) for the Forms 6i to find them.
Now i place them in c:\ora\FORMS60\java but Forms 6i cant load them and my bean areas are empty.
Can somebody help please.
I cant run PJC demos for forms 6i for the same reason
Bye.Joro,
the location is correct. Did you add the jar file name to teh archive tag in formsweb.cfg ?
archive_jini=f60all_jinit.jar, <pjc_archive_name>.jar
Frank -
Can we Return values from Java Bean to Form
Hi All,
I have a Bean area defined on a Form. The Bean Area consists of a Text field which gets populated by path of a file selected using Browse button.
Can I return this path as a parameter from the Java Bean to the form? Is there any function for this?
Regards,
Prathima.If you designed your bean to offer the ability to exact info/data from it, then yes you can get a value from the bean into the form (pl/sql) - using Get_Custom_Property
Refer to the following which is a good example of how to build a bean. Specifically look at page 12 where is shows how to use Get_Custom_Property.
This is NOT an Oracle supported or provided document or web site, but it is a very good example.
http://forms.pjc.bean.over-blog.com/ext/http://sheikyerbouti.developpez.com/forms-pjc-bean/first-bean/first_bean.pdf -
Pluggable Java Beans examples using Native IE mode
Hello
I would like to know if anybody has tested JPC using IE=NATIVE
setting to avoid using JInitiator
I have tried and done the following
I downloaded a JPC from http://forms.pjc.bean.over-blog.com/categorie-453384.html to try add File chooser functionality
I tried it useing Jinitiator and it works perfectly.
i then added the jar file to ARCHIVE_IE
archive_ie=f90all.cab,GetImageFileName.jar
The java console gave a message indicating that the JAR has been skipped.
I figured that i need to convert the jar file into a CAB file
I Used cabarc.exe to create MS archive cabinets
1- I extracted the GetImageFileName.jar file to an oracle directory
2- Archived again to MS format
cabarc -r -p n GetImageFileName.cab oracle\*.*
3- I included the cab file in the formsweb.cfg as follows
archive_ie=f90all.cab,GetImageFileName.cab
4- I ran the form, no error was generated, but at the same time the
function was not executed (no dialog poped up).
If you are wondering why i am not using webutil, it is because the user
does not want to use Jinit. Webutil does not work without Jinit.
thanks
Regards
Ammar Sajdi
www.e-ammar.com
www.realsoft-me.com
www.palco-me.comWhile trying to work with PJC on Forms REL 2, i noticed that the default FORMWEB.CFG does not have all setting related to Native IE
Can anybody confirm if NATIVE IE is no more support in REL 2
Ammar Sajdi -
Implementing java beans in forms 10g [Problem]
Hi All,
I am trying to implement the java bean in the forms 10g
I performed the following steps, but no luck.. Could anybody please help me in this?
I have created a simple java class
package mypackage1;
public class MyClass
public String GetString(String a)
return a;
Make a jar myjar.jar out of it.
Copy this jar files in $ORACLE_HOME/forms/java directory
and set the archive.jini parameter in formsweb.cfg to
archive_jini=frmall_jinit.jar,Myjar.jar
Created a simple form having one button, one textbox
Set the implementation class property of text item to mypackage1.MyClass
on button pressed trigger, I wrote
set_custom_property('block2.text_item4',1,'GetString','Hello World');
Ideally, on button pressed, it should show the text "Hello World" in the etxt box. But on button pressed nothing is happening and in java console on error is appearing.
My java console output is
Loading http://asst104253:8889/forms/java/frmall_jinit.jar from JAR cache
Loading http://asst104253:8889/forms/java/Myjar.jar from JAR cache
proxyHost=null
proxyPort=0
connectMode=HTTP, native.
Forms Applet version is : 10.1.2.0
Could anyone please tell me what I am doing wrong?? And how do I achieve this functionality??
Please, any help appreciated !!Hi there
The is plenty wrong with this code:
1. MyClass is not extending VBean
2. There is no public boolean setProperty(ID ID, Object args) method and no property IDs have been defined so set_custom_property('block2.text_item4',1,'GetString','Hello World'); will not execute anything
3. If you're hoping to return values back from the bean, you need to define a custom event and associated ID.
If you're just looking for some java code to return values in a similar manner as normal Oracle functions then you may want to consider using forms java stored procedures which are based on static java methods. Beans are really more for interaction type stuff with other applications.
But any way if you want to do it this way (i.e. using beans) then at very least you class should look something like (Note, I have not compiled is so there may be a few errors):
package mypackage1;
import oracle.forms.handler.IHandler;
import oracle.forms.ui.CustomEvent;
import oracle.forms.properties.ID;
import oracle.forms.ui.VBean;
import oracle.forms.engine.Main;
import oracle.forms.engine.*;
import oracle.forms.handler.*;
public class MyClass extends VBean
// initiating event id
protected static final ID pgetString = ID.registerProperty("GetString");
// return value id
private static final ID preturnValue = ID.registerProperty("returnValue");
// return event id
protected static final ID preturn = ID.registerProperty("returnEvent");
static IHandler mHandler;
public String GetString(String a)
// may do some string manipulation here.
return a;
public boolean setProperty(ID ID, Object args)
if (_ID== pgetString)
if (_args instanceof String)
String myArg = (String)_args;
mHandler.setProperty(preturnValue,getString(myArg));
CustomEvent ce = new CustomEvent(mHandler, preturn);
dispatchCustomEvent(ce);
Keep your button as is and then to return the value back into forms place a WHEN-CUSTOM-ITEM-EVENT trigger on the bean area with something like this:
DECLARE
BeanValListHd1 PARAMLIST;
ParamType NUMBER;
EvenName Varchar2(20);
CurrentValue Varchar2(2000);
BEGIN
BeanValListHd1 := get_parameter_list(:SYSTEM.CUSTOM_ITEM_EVENT_PARAMETERS);
IF :SYSTEM.Custom_Item_Event = 'returnEvent' THEN
IF iD_NULL(BeanValListHd1) THEN
MESSAGE('NO PARAMETER FOUND FOUND');
ELSE
GET_PARAMETER_ATTR(BeanValListHd1,'returnValue',ParamType,CurrentValue);
MESSAGE('IN CUSTOM EVENT THE STRING RETURNED IS '|| CurrentValue);
END IF;
ELSE
MESSAGE('no value');
END IF;
END;
hope this helps
Q -
Embedding Java bean in Forms 6i
Hi,
Can anybody guide me to embed java bean in forms 6i . I need steps to embed. I tried the steps given in oracle site for KnobBean steps are confusing. Can anybody pls help me
thanks in advance
IlamHi
Following is the result of Jinitiator Java Consol.......
Oracle JInitiator version 1.1.8.19
Using JRE version 1.1.8.19
User home directory = C:\Documents and Settings\Administrator
JAR caching enabled.
Cache directory: C:\Program Files\Oracle\JInitiator 1.1.8.19\jcache
Maximum cache size: 50000000 bytes
Opening http://202.163.88.194:6777/forms60java/f60all_jinit.jar no proxy
Loading http://202.163.88.194:6777/forms60java/f60all_jinit.jar from JAR cache.
Opening http://202.163.88.194:6777/forms60java/java/awt/KeyboardFocusManager.class no proxy
Opening http://202.163.88.194:6777/forms60java/oracle/forms/engine/MainBeanInfo.class no proxy
Opening http://202.163.88.194:6777/forms60java/sun/beans/infos/MainBeanInfo.class no proxy
Opening http://202.163.88.194:6777/forms60java/oracle/ewt/swing/JBufferedAppletBeanInfo.class no proxy
Opening http://202.163.88.194:6777/forms60java/sun/beans/infos/JBufferedAppletBeanInfo.class no proxy
Opening http://202.163.88.194:6777/forms60java/oracle/ewt/lwAWT/BufferedAppletBeanInfo.class no proxy
Opening http://202.163.88.194:6777/forms60java/sun/beans/infos/BufferedAppletBeanInfo.class no proxy
Opening http://202.163.88.194:6777/forms60java/oracle/ewt/popup/PopupAppletBeanInfo.class no proxy
Opening http://202.163.88.194:6777/forms60java/sun/beans/infos/PopupAppletBeanInfo.class no proxy
Opening http://202.163.88.194:6777/forms60java/oracle/forms/registry/Registry.dat no proxy
Opening http://202.163.88.194:6777/forms60java/oracle/forms/registry/default.dat no proxy
proxyHost=null
proxyPort=0
connectMode=HTTP
Forms Applet version is : 60821
Opening http://202.163.88.194:6777/forms60java/oracle/forms/demos/GetClientInfo.class no proxy
Opening http://202.163.88.194:6777/forms60java/oracle/forms/demos/Utils.class no proxy
Regards
Laila Mac -
Printing Java Bean through Forms
I want to be able to print the contents of a Java bean through forms. Preferably through a popup on right click. Does anyone know how i can do this?
It is the BI Graph example given through oracle.
ThanksHi,
I'd like to be able to do the same thing ... did you find a solution?
Steve -
Java-style buttons in Oracle Forms 6i
Hey there,
Does anyone know how to create buttons with curved edges in Oracle Forms 6i? Something like those Swing components in Java?
Thanks
AlAlex,
for Forms on the web you can use PJCs. The Forms 10g demos (http://download.oracle.com/otn/other/general/forms10gdemos9_0_4_2.zip) and the Forms 9i demos have a sample Java class for this. The same solution should work in 6i as well.
Frank -
Displaying database text to java components
hello everyone!
i d like to ask how i can display database elements in java components.
For instance, i have a textarea and i d like to take the text from the database and display it in the textarea..
In addition, i d like to submit a form and the text user entered in a textarea, to be inserted in a database field.
Any tutorials with such examples would help me!
Thank youThat screencast is already some kind of a tutorial.
Further tutorials and resources:
Swing:
[http://java.sun.com/docs/books/tutorial/ui/index.html|http://java.sun.com/docs/books/tutorial/ui/index.html]
Java:
[http://java.sun.com/docs/books/tutorial/|http://java.sun.com/docs/books/tutorial/]
Beans Binding (JSR 295):
[https://beansbinding.dev.java.net/|https://beansbinding.dev.java.net/]
Java Persistence API (JPA):
[http://java.sun.com/javaee/5/docs/tutorial/doc/bnbpy.html|http://java.sun.com/javaee/5/docs/tutorial/doc/bnbpy.html]
(Maybe you also want to buy some book about this topic...)
-Puce
Maybe you are looking for
-
Western Digital External Drive and a VERY slow computer. Is my HD failing?
Hello, thank you for looking at my question. First off, I am NOT very tech-savvy, but I'm willing to research and learn, I'm just afraid to make a mistake and blow up my computer. I have had my Macbook for 2 years. I have not backed up my hard drive
-
Getting error message 1402 & 1500 could not open key
I cannot download update error message 1500, cannot remove or repair program adobe 9,3,1 error message 1402 could not open key HKEY_LOCAL_MACHINE/SOFTWARE error 1500 canot install update
-
How to debug background job?
Hi, All: How to debug background job. Thanks,
-
HT202305 how to restart blocked outbound emails
Outbound eMails blocked due to exceeding daily limit. How to get that email address working again 3 days later?
-
MS Office Access 2010 - Copy to Oracle?
Hi, Does the "Copy to Oracle" functionality in SQL*Dev 4 work for an Access 2010 database source? Thanks Joel