2011-01-27

how to replace the oracle logo in a webform

How to Replace the Oracle Logo in the Menu of a Webform [ID 135164.1]


 


Checked for relevance on 11-Mar-2009. 

Problem Description
-------------------
You are running your form over the web using the CGI method or the Forms 
Servlet.  When the form is displayed there is an Oracle logo on the menu bar at the 
right hand side.

How do you remove this logo or replace it with a logo or an image of your own?



Solution Description
--------------------
You may either replace this oracle logo with your own or disable it.
By default, no value for logo will display the Oracle logo:
logo=


In the formsweb.cfg file:
o To disable the logo, set logo=no in the formsweb.cfg file.

o To include your own gif, set: 
  logo=http://machine.domain:port/images/name_of_gif.gif.  

As an alternative, this can also be changed in the .htm file that is called by
formsweb.cfg. To find out which .htm file you are using, open the formsweb.cfg 
file in wordpad and find what baseHTML and baseHTMLJinitiator is pointing to.


If you are using the default file and jinitiator to view your webform, then
you will want to modify the basejini.htm.  If you are using Native IE without the
jinitiator you will want to modify either the baseie.htm, or base.htm.
  
Steps to Change Logo for 6i CGI /Forms Servlet implementation:
(this is an example if you are using JInitiator to view your form)
------------------------------------------------------------------
1.  Place the .gif file in the physical directory which is defined for the virtual
directory /images/ on your web listener:

            example: $ORACLE_HOME\webdb\images  /images/

2.  Locate the .htm file you are using.  These files are located under in the 
    ORACLE_HOME for Forms: 
    
    - $ORACLE_HOME\forms60\server (6i Forms)
    - $ORACLE_HOME\forms90\server (9.0.2 / 9.0.4 Forms)
    - $ORACLE_HOME\forms\server.  (10.1.2.x Forms)

    There will be three files:  basejini.htm, baseie.htm, and base.htm.
    For this example we will be modifying the basejini.htm since we are using 
    JInitiator.

3.  Open basejini.htm in an editor (wordpad, vi).

4.  If the logo parameter isn't present (it is there in Forms 10g) , add logo = to the list of available 
    parameters: 
       For Internet Explorer:
                ...
                PARAM NAME="lookAndFeel"  VALUE="%lookAndFeel%"
                PARAM NAME="colorScheme"  VALUE="%colorScheme%"
                PARAM NAME="serverApp" VALUE="%serverApp%"
add this one->  PARAM NAME="logo"  VALUE='%logo%

       For Netscape:
                ...
                lookAndFeel="%lookAndFeel%"
                colorScheme="%colorScheme%"
                serverApp="%serverApp%"      
add this one->  logo="%logo%"

5.  Open the formsweb.cfg file in an editor. 
    - $ORACLE_HOME\forms60\server (6i Forms)
    - $ORACLE_HOME\forms90\server (9.0.2 / 9.0.4 Forms)
    - $ORACLE_HOME\forms\server.  (10.1.2.x Forms)


6.  If the logo parameter isn't present, Add logo= to the file under - 
    for the Forms applet parameters:
                .....
                archive_jini=frmall_jinit.jar 
                archive=frmall.jar
add this one->  logo=http://machine.domain:port/images/name_of_gif.gif

or for no image or logo:
                .....
                archive_jini=frmall_jinit.jar
                archive=frmall.jar
add this one->  logo=no

    NOTE: The .jar file names for 6i / 9.0.x / 10.1.2 are f60all[_jinit].jar /
    f90all[_jinit].jar / frmall[_jinit].jar, respectively. 

7.  Now save all files and attempt to run your form again. The Oracle logo no 
longer appears in the upper right hand corner of the menu. The new image (if one 
was specified), is seen in it's place.

Explanation
-----------
  When using CGI or the Forms Servlet to call your form, the formsweb.cfg file 
is used to modify the values that are passed to the .htm file.  In this case, 
"logo=", is not included or it is pointing to the Oracle logo. Pointing the
"logo" parameter to the desired reference allows you to bring up no logo or a 
custom logo if it desired. 

References
----------
NOTE:276651.1 How To Change or Disable Logo, Background and SplashScreen
NOTE 730216.1 How To Display Iconic Images Using Forms
  --> This note includes how to add the .gif file to your .jar file.
  
Additional Search Words:
------------------------
  CGI, oracle, logo, image, web form, servlet formsweb.cfg

Niciun comentariu:

Trimiteți un comentariu