Beruflich Dokumente
Kultur Dokumente
Open Form Builder and create a simple form called hyperlink.fmb that uses the
Hyperlink bean. Here are the steps:
DECLARE
hHyperlink ITEM:=FIND_ITEM('CONTROL.HYPERLINK');
BEGIN
FBean.Register_Bean(hHyperlink,1,'oracle.forms.demos.beans.Hyperlink');
FBean.Invoke(hHyperlink,1,'setURL','http://otn.oracle.com/products/forms');
FBean.Invoke(hHyperlink,1,'setLabel','Forms on OTN');
FBean.Enable_Event(hHyperlink,1,'actionListener',true);
END;
The above sample uses the Fbean package, which is a new feature in Forms 9i.
It provides a means to register the properties and methods of Arabians at run
time and make setter and getter methods available from PL/SQL in Forms. As
you can see, the above lines are registering the bean, setting the URL and
Label and enabling a listener.
DECLARE
vcEventData VARCHAR2(256);
BEGIN
vcEventData := Fbean.Invoke_Char('CONTROL.HYPERLINK',1,'getURL');
WEB.SHOW_DOCUMENT(vcEventData,'_blank');
END;
This code simply gets the URL in response to a mouse click and uses the Forms
WEB.SHOW_DOCUMENT to display it.
You will not be able to see the hyperlink in the layout editor. It will only
display when you run the form after configuring your environment to find the
bean.
Step 2: Finding the Bean
Before the bean class files can be found they must be placed in the appropriate
location. Once you have installed the Forms 9i Demos a "demo" directory will be
created under the 9iDS_Home\forms90 directory. This directory contains the
Hyperlink bean as well as a number of others. There are two ways to ensure the
Hyperlink bean's class files can be found by your form when running it from the
9iDS Form Builder:
[hyperlink]
archive_jini=f90all_jinit.jar,hyperlink.jar
width=675
height=480
separateFrame=false
splashScreen=no
lookAndFeel=oracle
colorScheme=blue
http://machine.domain:port/forms90/f90servlet?config=hyperlink
http://machine.domain:port/forms90/f90servlet
Once you have created the form you can see it work from inside Form Builder using
either deployment method by just running the form using the "Run Form" button.
The "Forms on OTN" hyperlink will appear on the form if there are no set up errors.
Clicking on the link should take you to:
http://otn.oracle.com/products/forms.
You also can run the form outside of Form Builder. Here are the ways, depending on
the deployment method:
http://machine.domain:port/forms90/f90servlet?config=hyperlink&form=hyperlink
http://machine.domain:port/forms90/f90servlet?form=hyperlink
Again, the recommended method for deploying is method 1 but either method can
be used to deploy the bean form to a 9iDS Release 2 environment.
Note: The Hyperlink bean also comes with a sample form found in
9iDS_HOME\forms90\demos\hyperlink\forms and documentation, which can be
found in 9iDS_HOME \forms90\demos\hyperlink\doc\hyperlink90.html.
Accepted Solution
04/18/06 06:12 PM, ID: 16483564
KG1973:
Hi Schwertner,
Wow!!!! That's really something for me and I never thought such a quick response.
This is the reason why I joint / subscribe Expert-exchange forum.
I don't know yet whether this will work for me or not.
But I am happy that there is a place for me to discuss my difficulties and get the solution
interactively.
Thanks a million and I will try this once I understood well all those steps.
Sorry before I continue, I am currently using Oracle Develope Suite 10G which I think
not so much different with 9i form. However if there is any major different, will all those
steps that you elaborated be changed as well ?
thanks.
But when I click to the hyperlink, somehow the explorer blocked it. I tought this is just a
small problem. "Popups were blocked in this page, press and hold control......". But after
I set my firewall "allowing all", the problem still remain. Strange ? Is this anything to do
with my form OR just simply my explorer ? Another thing is, what if I want to add
another link ? Do I have to repeat Step1 f ?
Thanks in advance.
05/08/06 12:03 AM, ID: 16628382
schwertner:
Popup blocked -----> It is feature of the browser. Go to the browser properties and allow
popups.
http://unodocs.nmsu.edu/RoboDocs/WebHelp/jinitiator/ji_04.htm
In order for Internet Explorer to download JInitiator automatically, you need to disable
"Pop-up" blocking.
To do this, go to "Tools","Pop Up Blocker", and select "OFF"
After you've successfully installed JInitiator, you can turn Pop-up blocking back on.
To do this, go to "Tools","Pop Up Blocker", and select "ON".
Thanks a million.
---------INFO-----------------
The Forms9i Demos currently do not come with 9iDS Release 2 (9.0.2.0.1) and
must be downloaded from otn. You can download them from:
http://otn.oracle.com/sample_code/products/forms/content.html
On this page you will see the ReadMe and Source for the ?The Oracle9i Forms
Demos.? You can click on the Source link and download them to your computer and
unzip them. Now follow these instructions to install them:
20090114-EE-VQP-51
• About Us|
• Contact Us|
• Member Agreement|
• Internet Rank|
• Privacy Policy|
• Site Map