Solved

Oracle 9i ICON Image PB

Posted on 2004-09-08
2
2,850 Views
Last Modified: 2008-01-09
Hello,

I am migrating an Oracle Forms/Reports 6i application to Oracle 9i using the iDS.
I have 3 toolbars using a number of ICON image files.

During the migration to ORacle 9i, Only a SAVE and PRINT images appear in my toolsbar.  At runtime in Oracle 9i, no images are displayed in the toolbar.

I converted all ICO files to GIF files and generated an JAR file are indicated in the DOC.
I was carefull with respect to case upper/lower.

Any ideas how I can resolve this issue ?

PT
0
Comment
Question by:ptreves
2 Comments
 
LVL 5

Accepted Solution

by:
FBIAGENT earned 500 total points
ID: 12011333
The following is from Oracle Metalink Note:203846.1

PURPOSE
=======
 
This document describes how to implement gif/jpeg icons on buttons in Forms  
9.0.x. This is done by defining a virtual  
directory containing the icons and directing the Forms application to use that  
directory.  
 
SCOPE & APPLICATION
====================
Audience: Forms Developers
 
This document ONLY describes the steps required for deploying icons in the  
Forms 9.0.x  
For information on deploying icons for Forms 9i in Oracle9i Application Server  
Release 2, refer to:
 
Note 208272.1 How to Display Iconic Images Using Forms 9i Services (9iAS Rel 2)?
 
When running an Oracle Forms 9i application the icon files used must be in
a web enabled format such as JPG or GIF (GIF is the default format) (This is
unlike older versions of forms running in client-server mode when the file  
format is .ico.)  
 
Icon image files can either be retrieved by Forms as individual files on the  
filesystem or from a Java Archive (JAR file).  If an application uses lots of  
icon images it is recommended that they are stored in a JAR file to reduce the  
number of HTTP round trips. This type of tuning, however, primarily applies to  
deployment of the application in a production environment i.e Oracle 9iAS Rel 2
 
Reference:
Note 232413.1 How to Deploy Iconic Images via a JAR File in Forms 9i?
 
The example below details steps to configure the former. It is an approach  
recommended for initial testing and understanding in a development environment.
 
Example
=======
 
This example applies to Windows and UNIX operating systems:  
Windows will use the "\" character to delimit directories and UNIX uses
the "/" character. Any other differences will be pointed out.
 
1. In the form you have a button with the following properties set -  
    Iconic         -       Yes
    Icon Filename  -       save  (Where save.gif is the gif file to be used as icon)
 
2.  Copy the icon to the desired directory on the file system.  
    o In <9iDS_HOME>\forms90\ create a directory by the name of 'image'  
      (<9iDS_HOME>\forms90\image).  
 
    OR
 
    o Create or find a directory on the file system to place the icons. For this
      example, assume that a directory C:\icons exists on the file system.  
 
    NOTE:
    The "Icon Filename" property is case sensitive. When the icon is saved, make  
    sure the case of the name in the file system and in the form property is the
    same.  
 
3. Open the orion-web.xml file in a text editor like Wordpad or vi. This file
   can be found in:  
   <9iDS_home>\j2ee\Oracle9iDS\application-deployments\forms\forms90web
 
   Find the following section in orion-web.xml:  
 
   <context-param-mapping name="configFileName">d:\9iDS/forms90/server/formsweb.cfg</context-param-mapping>
   <virtual-directory virtual-path="/html" real-path="d:\9iDS/tools/web90/html" />
   <virtual-directory virtual-path="/java" real-path="d:\9iDS/forms90/java" />
   <virtual-directory virtual-path="/jinitiator" real-path="d:\9iDS/jinit" />
         
   Add the line after the virtual directory defined for "/jinitiator".  
 
   o The "images" virtual directory is defined as follows:  
     <virtual-directory virtual-path="/image" real-path="d:\9ids/forms90/image" />
 
   o The "icons" virtual directory is defined as follows:
     <virtual-directory virtual-path="/icons" real-path="c:\icons" />
 
4. Stop and restart the OC4J instance to pick up the changes made in the  
   orion-web.xml file.
 
   Windows:
   --------
   Select the Start/Stop OC4J Instance in:
   
   Start>>Programs>>Oracle 9i Developers Suite>>Forms Developer
 
   UNIX:
   -----
   To stop the 9iDS OC4J process on UNIX:
   $ORACLE_HOME/j2ee/Oracle9iDS/stopinst.sh
 
   
   To start the 9iDS OC4J process on UNIX:
   $ORACLE_HOME/j2ee/Oracle9iDS/startinst.sh
 
5. Verify that the image virtual directory has been mapped correctly by using
   the following URL in your browser:
   http://abc.oracle.com:8888/forms90/image/save.gif  
   OR  
   http://abc.oracle.com:8888/forms90/icons/save.gif  
 
   This should display the gif image. If not, the virtual directory has not been
   defined properly and your form will not display the icon. See the "Check List"
   section for debugging information.  
 
7. When the icons can be displayed via the browser, the Registry.dat file used
   by Forms can be modified to point to the location of your icon files. The  
   Registry.dat file is in <9iDS_home>\forms90\java\oracle\forms\Registry. Note
   that for UNIX, both the path name and file name are case sensitive. You must  
   specify "Registry.dat".
 
    o To use the "images" virtual directory described in this example:  
      default.icons.iconpath=image/    (The image will be read relative to forms90 virtual path)
      default.icons.iconextension=gif
 
    o To use the "icons" virtual directory described in this example:  
      default.icons.iconpath= http://abc.oracle.com:8888/forms90/icons  
      default.icons.iconextension=gif
 
8. Run the form from the Form Builder and the icon should be displayed.
 
 
Troubleshooting
===============
 
Icons do not appear in the browser using the URL:  
 
o Verify that you are using the correct machine name and port for the 9iDS
  OC4J.
 
o Check the virtual directory name to make sure that there are no typographical
  errors.  
 
o Check for typographical errors in the orion-web.xml for the virtual directory.  
 
o Check the name of the icon on the file system. If the file is saved as  
  Save.gif, then it will not be found using the URL  
  http://abc.oracle.com:8888/forms90/<your virtual directory>/save.gif
 
o As the example shows above overall be careful about case sensitivity  
 
When icons do not appear on the form:              
 
1) Test to see that the icon appears on your form by running the form in the  
   Form Builder. If the icon does not appear:  
 
   o Check the Registry.dat for typographical errors for the "default.icons"  
     entries.
 
   o Verify the name specified in the "Icon Filename" property of the form  
     matches the case of the icon on the file system.  If the property contains
     "SAVE", but the icon on the file system is named save.gif, the icon will  
     not appear when you run the form.  
 
2) If icons are still not appearing on the form try these suggestions:  
   a) Close all your existing, running forms and browser windows.
      Delete all the old cached files from  
      C:\Program Files\Oracle\JInitiator 1.1.8.16\jcache
       
      For JInitiator 1.3.1.X:  
      Go to Control Panel->Jinitiator 1.3.1.X->Cache Tab ->Click Clear Cache
 
 
      Clear the browser cache:
      ------------------------
      For IE       : Tools menu->Internet Option->Delete all files
      For Netscape : Edit Menu->Preferences->Advanced->Cache->Clear Disk and  
                     Memory cache
 
     Close all your browser sessions and open a new browser window. Execute  
     the URL to bring up from the Form Builder runtime or from the browser.
 
 
  b) Disable applet caching by setting or adding the jinit_appletcache="off"  
     in the HTML files:  
     $ORACLE_HOME/forms90/server/base.htm
     $ORACLE_HOME/forms90/server/basejini.htm
     $ORACLE_HOME/forms90/server/basejpi.htm
     $ORACLE_HOME/forms90/server/baseie.htm
 
     Close all your browser sessions and open a new browser window. Execute  
     the URL to bring up from the Form Builder runtime or from the browser.
 
 
RELATED NOTES
=============
 
Note 208272.1 How to Display Iconic Images Using Forms 9i Services (9iAS Rel 2)?
Note 232413.1 How to Deploy Iconic Images via a JAR File in Forms 9i?
 
[PDF] Oracle9iForms Services - How to Deploy Icons
http://otn.oracle.com/products/forms/pdf/webicons.pdf
 
KEYWORDS
=========
9i forms9i 9.0.2 9iDS Rel2 R2 builder windows ms web webforms www internet intranet migrate upgrade  
implement deploy displayed display show shown appear visible icon icons iconic  
image images gifs gif jpeg jpegs jpg ico OC4J http listener
.
0
 

Author Comment

by:ptreves
ID: 12023048
Hello again,

Take a note that I am working a a local Windows XP Pro client machine where I installed Oracle 9i IDS.
I noticed through trial and error that typing http://192.9.200.100:8888/forms90/image/SAVE.gif I can display my converted gif file.

However , when I get into Oracle Forms/Reports 9i, nothing is displayed neither at runtime.

I get the fillling that I need to use the IP address of my PC in someway in Forms/Reports ?

Can you explain to me what I am experiencing ?

PT

PS: Reading the notes I noticed: http://abc.oracle.com:8888/forms90/image/SAVE.gif.\
That makes no sense to me ..............Can you give me more details ?


0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Article by: Swadhin
From the Oracle SQL Reference (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm) we are told that a join is a query that combines rows from two or more tables, views, or materialized views. This article provides a glimps…
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now