Overblog Suivre ce blog
Editer l'article Administration Créer mon blog
9 mars 2015 1 09 /03 /mars /2015 21:12


Here is a Java bean that allows to have an enhanced Web Browser able to display and handle Google maps.
It is a full Web browser that can handle Javascript.

The enhanced Web browser JAR comes from the JDIC sourceforge project.


Web Browser to handle Google maps

The implementation class of the Bean Item


The methods you can call

  • Get the Forms Window

Set_Custom_Property( 'BL.BEAN', 1, 'INFOBEAN', '' ) ;

This mathod is used to retrieve the Forms window that handles the webBrowser, then synchronize its position when the windows is moved.
This must be the first property set (in the When-New-Form-Instance trigger).


  • Set the HTML content

Set_Custom_Property( 'BL.BEAN', 1, 'SET_HTML_CONTENT', '<html>...</html>' ) ;

In the case of this bean, that method is used to initialise the Google map.


  • Set a javascript command 

Set_Custom_Property( 'BL.BEAN', 1, 'SET_JAVASCRIPT', 'javascript code' ) ;

e.g. :

Set_Custom_Property('BL.BEAN', 1, 'SET_JAVASCRIPT', 'map.panBy(100,60);' )


  • Set the URL/File

Set_Custom_Property( 'BL.BEAN', 1, 'SET_URL', 'url | file_name' ) ;

e.g. :

Set_Custom_Property('BL.BEAN', 1, 'SET_URL', 'http://www.developpez.com/' ) ;         

Set_Custom_Property('BL.BEAN', 1, 'SET_URL', 'd:/mypage.htm' ) ;


  • Set the border of the bean

Set_Custom_Property( 'BL.BEAN', 1, 'SET_BORDER', 'true | false' ) ;

When you want to use this bean to display a Flash image (*.swf), you would probably prefer not to have any border bounding the image.
In this case, set the border to false.


  • Basic navigation

Set_Custom_Property( 'BL.BEAN', 1, 'SET_NAVIGATION', 'back | forward | refresh' ) ;

The sample dialog

Download the gmapbrowser.zip file

     . Unzip the files
     . copy the
JDICplus.jar and GMapBrowser.jar files in the <ORACLE_HOME>/forms/java directory
     . Edit your /forms/server/formsweb.cfg file to add these 2 jar files to the archive tags
     . Add the 2 .dll files 
jdicArc.dll and jdicWeb.dll (from the JDICplus-0.2.2-bin-win32.zip file) to your Windows/system32 directory
     . Open the GMapBowser.fmb module (Oracle Forms 10.1.2)
     . Compile all and run the module

     The .jar files must be signed
     The GMapBrowser.jar and JDICplus.jar files provided with the .zip file are already signed



Partager cet article

Repost 0
Published by Oracle Forms community - dans Bean - general
commenter cet article


Yellow Jacket Broadband 23/02/2017 06:46

These are so adorable! My husband's birthday is coming up in a few weeks and I need some unique gift ideas for him. I don't have a ton of money to spend but I want to get him something that will last.

Samir 18/11/2016 14:05

Nice Article, could you please suggest how this can be used in Oracle Application forms?
Where the dll files need to be placed if I want to use this for Oracle Apps forms?


Mobile application development companies India 25/09/2016 08:33

We can get code for Google map location finding

ahmad 10/08/2016 14:43

I am trying to use javabean for the first time

the form gives error

frm-13008 cannot find javabean with name 'oracle.forms.fd.gmapbrowser'. Please reply on ahmadnjwn@gmail.com

reemo 06/07/2016 06:15