
here we will explain how to use a java bean in the forms to get the currecny exchange rates from webservice provided by a website on the internet
first step for implementing this java bean is
1- put the jar file CurrencyExchange.jar in the path form
2- add the path of this jar file with the full name in the archivjinit paramter in your working section in the Fromsweb.cfg file
3-add the full path in step 2 also in classpath parameter in Default.env file
4- create new form and create a bean item and set its implementation class to
oracle.forms.jvr.CurrencyExchange
5- create items that hold from currency and to currency with the values of standard currency symbol
6- call the following code
fbean.invoke('yourblock.yourbean',1,'setFrom',:fromcurrencybindvariable);
fbean.invoke('yourblock.yourbean',1,'setTo',:tocurrencybindvariable);
:bindvariableforresult:=fbean.invoke_char('yourblock.bean',1,'change','');
the jar file link
http://www.4shared.com/file/146643242/9c8e15e6/CurrencyExchange.html
first step for implementing this java bean is
1- put the jar file CurrencyExchange.jar in the path form
2- add the path of this jar file with the full name in the archivjinit paramter in your working section in the Fromsweb.cfg file
3-add the full path in step 2 also in classpath parameter in Default.env file
4- create new form and create a bean item and set its implementation class to
oracle.forms.jvr.CurrencyExchange
5- create items that hold from currency and to currency with the values of standard currency symbol
6- call the following code
fbean.invoke('yourblock.yourbean',1,'setFrom',:fromcurrencybindvariable);
fbean.invoke('yourblock.yourbean',1,'setTo',:tocurrencybindvariable);
:bindvariableforresult:=fbean.invoke_char('yourblock.bean',1,'change','');
the jar file link
http://www.4shared.com/file/146643242/9c8e15e6/CurrencyExchange.html