A Java Bean to get the client machine information
By francois degrelle on Friday, March 27 2015, 15:20 - PJC - Javabean - Permalink
Purpose
Here is a Java Bean that allows to get some client machine information.
The Java code
ClientInfos.java
The implementation class of the Bean Item
oracle.forms.fd.ClientInfos
The methods you can get
Get all client information
Get_Custom_Property('BLOCK.ITEM',1GET_CLIENT_INFOS');
e.g.:
-- get all information --
:BL.INFOS := Get_Custom_Property('BL.BEAN', 1, 'GET_CLIENT_INFOS' ) ;
Get a particular client information
Get_Custom_Property('BLOCK.ITEM',1property');
where property could be one of the following:
OPERATING : Operating System
ARCHITECTURE : architecture
OSVERSION : OS version
IP : IP address
MAC : MAC address
JAVAVERSION : Java version
JAVAVENDOR : Java vendor
JAVAVENDORURL : Java vendor URL
JAVAHOME : Java vendor home page
JAVAVMSPECIFICATIONVERSION : Virtual machine version
JAVAVMSPECIFICATIONVENDOR : Virtual machine vendor
JAVAVMSPECIFICATIONNAME : Virtual machine name
USERNAME : user name
USERHOME : user home
e.g.:
-- get MAC address --
:BL.INFOS := Get_Custom_Property('BL.BEAN', 1, 'MAC' ) ;
The sample dialog
. Download the clientinfos.zip file
. Unzip the file
. copy the clientinfos.jar file in the <ORACLE_HOME>/forms/java directory
. Edit your /forms/server/formsweb.cfg file to add the clientinfos.jar .
. Open the CLIENTINFOS.fmb module (Oracle Forms 9.0.2)
. Compile all and run the module
The JAR file has to be signed.