Adsense Ad

Displaying Icon on Button in Oracle Forms 12c

Icon Buttons in Oracle Forms 12c Fusion Middleware.

Solution 1: Invoking .jar file for icons

1. Start the all forms related Services i.e AdminServer / Weblogic / WLS_Forms

2. Copy the icons folder in following path
D:\Oracle\Middleware\<ORACLE_HOME>\forms\java

3. Switch to command Prompt
cd D:\Oracle\Middleware\<ORACLE_HOME>\forms\java\icons

now apply the following command
D:\Oracle\Middleware\<ORACLE_HOME>\forms\java\icons>D:\Oracle\Middleware
<ORACLE_HOME>\oracle_common\jdk\bin\jar -cvf frmicons.jar *.gif

4. Copy the icons.jar file into D:\Oracle\Middleware\<ORACLE_HOME>\forms\java

5. Edit/update formsweb.cfg file: (Don’t Forget to take back up File)
Path=D:\Oracle\Middleware\<ORACLE_HOME>\user_projects\domains\<my_domain>\config\fmwconfig\servers\WLS_FORMS\applications\formsapp_12.1.1\config\formsweb.cfg

to update/include:

Forms applet parameter
codebase=/forms/java
# Forms applet parameter
imageBase=codebase

# Forms applet archive setting for other clients (Sun Java Plugin…etc)
archive=frmall.jar,frmicons.jar
# Forms applet archive setting for JInitiator
archive_jini=frmall_jinit.jar,frmicons.jar


6. Edit/update Registry.dat file: (Don’t Forget to take back up File)
Path=D:\Oracle\Middleware\<ORACLE_HOME>\user_projects\domains\<my_domain>\config\fmwconfig\servers\WLS_FORMS\applications\formsapp_12.1.1\config\forms\registry\oracle\forms\registry\Registry.dat

default.icons.iconpath=icons/
default.icons.iconextension=gif


7. At the end of CLASSPATH parameter in DEFAULT.env add the following value:
";D:\Oracle\Middleware\<ORACLE_HOME>\forms\java\icons.jar"

8. A block message appear from java, press do not block

9. Now run your forms.

Exception
If icons are unable to load please restart all services again.

Note:
Please path and drive location where you install the oracle your oracle forms 12c.

Solution 2: Usinfg.gif files for icons

1. Copy the all .gif extension icons files in following path
D:\Oracle\Middleware\<ORACLE_HOME>\forms\java

2. Edit/update formsweb.cfg file: (Don’t Forget to take back up File)
Path=D:\Oracle\Middleware\<ORACLE_HOME>\user_projects\domains\<my_domain>\config\fmwconfig\servers\WLS_FORMS\applications\formsapp_12.1.1\config\formsweb.cfg 

to update/include:

Forms applet parameter
codebase=/forms/java
# Forms applet parameter
imageBase=codebase


3. Edit/update Registry.dat file: (Don’t Forget to take back up File)
Path=D:\Oracle\Middleware\<ORACLE_HOME>\user_projects\domains\<my_domain>\config\fmwconfig\servers\WLS_FORMS\applications\formsapp_12.1.1\config\forms\registry\oracle\forms\registry\Registry.dat

default.icons.iconpath=icons/
default.icons.iconextension=gif

No comments: