Overblog Suivre ce blog
Editer l'article Administration Créer mon blog
30 juillet 2009 4 30 /07 /juillet /2009 16:47

Here is a Java Bean from Jesus Vallejo that
returns the date / time of major cities.
It run with JInitiator.
For get the time zone of any city, you can search on: http://www.timezoneconverter.com/cgi-bin/findzone

Time Zones Java Bean

The implementation class of the Bean Item





The Java code







The methods you can call

  • set the country in which is the server

FBEAN.INVOKE ('BL.BEAN',1,'setPaisOrigen','ES');

  • Set the zone to get the date / time

FBEAN.INVOKE ('BL.BEAN',1,'setZona','America/Buenos_Aires');

  • Get the date and time

:BL.DATE := FBEAN.INVOKE_CHAR ('BL.BEAN',1,'fechaHora','');

The sample dialog

Download the TimeZones.zip file
     .  Unzip the TimeZones.zip file
     .  Copy the TimeZone.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 TIMEZONES.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 are already signed

For any question concerning this bean, send a mail to Jesus at vallejo.jesus@gmail.com.

Partager cet article

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