Trouble displaying icon on push button in 6i Forms

Hi,
I'm having trouble displaying an icon on a button at both design and run times. I'm using Forms 6i with client/server enviornment. I have tried to follow several forums regarding icon setup and the Whitepaper articles. I have tried different suggestions but am still unable to get the icon. Here's my latest attempt:
1. Copied .jar file to C:\Oracle_Developer_9i\forms90\java folder
2. Modified formsweb.cfg (in the serverApp=default section) and included the following:
archive_jini=f90all_jinit.jar,myAppIcons.jar
imagebase=codebase
3. In button's properties I set:
iconic = 'Yes'
icon filename = C:\Oracle_Developer_9i\forms90\java\myAppIcons.jar
My guess is that I didn't copy the icon files (from the .jar file) correctly. As suggested in the Whitepaper, I don't have the c:\ myApp\ icons directory. I did a search for an icon directory and found multiple icons folders (due to other oracle projects installed on my pc) but don't know which one to use. Being that I'm using 6i and the instructions were for 9i I didn't know if the directory/folder name is different. Is there another directory/folder (using 6i) where I should copy all the .gif files from in addition to storing the .jar file in the C:\Oracle_Developer_9i\forms90\java directory?
Also, I feel that I'm not calling it correctly from the location in step 3. Being that the icon exists in the jar file, how would I reference it within the file? Does anybody have any suggestions? Any help would be greatly appreciated.
Thank you,
Eric

Robin,
I tried your suggestions but am still unable to view the icon. Here's what I now have tried.
1. I've created UI_ICONS in the windows registry under the form's oracle home and am calling c:\icons from that variable.
2. In c:\icons, I copied the .jar file's contents (search.gif) into this folder. This is where I may have a problem in addition to my next step in calling the filename. You mentioned in your first post to put my .ICO files there. Should I rename my .gif to .ico? Not sure if I followed you there.
3. In the button property, I set icon = yes and icon filename = c:\icons\search.gif -- Not sure if I used the right syntax for the filename. I've tried renaming it to .ico and it still does not display.
Sorry about all the questions but I really appreciate your help. Do you see anything else that I did that may cause it to not display?
Thanks again,
Eric

Similar Messages

  • Displaying Icons on Push Buttons in forms 10g

    How can i Display Icons on Push Buttons in forms 10g ?

    Set the property "Iconic" of the button to "Yes" and enterthe iconname in the Property "Icon Name" (without path and extension).
    About how to make items accesible in forms, have a look at this http://download.oracle.com/docs/cd/B14099_19/web.1012/b14032/configure009.htm

  • Displaying Icons on Push buttons --Urgent Help Please

    Hi All,
    I have been trying to display icons on push buttons. This is what I did after reading the white papers. Still it does not work. Please help.
    1. Created a folder on my Oracle home called images
    2. From Ms Dos ran d:\OracleHome\jdk\bin\jar.exe -cvf d:\OracleHome\forms90\java\images.jar *.gif
    3. Changed the formsweb.cfg
    imageBase=codeBase
    archive_jini=f90all_jinit.jar,images.jar
    ( here I even tried Flip flopping the two values. The Jinitior part wored but the image still does not show.)
    4. Saved the file , started the listner and ran the test form.
    5. Named the Icon file name to Aflist (no extensions)
    DOES NOT WORK.
    Pleaseeeeeeeeeeeeeeee Help.
    Many thanks in Advance.

    Nirav,
    images.jar should be in the forms90/java directory
    Frank

  • Displaing Icons on Push Button

    Hello Everyone,
    Can someone help me how to display icons on push buttons?
    Thanks

    Oh come on,
    don't do this to me. I was under the impression that this paper I wrote was easy to understand and contains all information needed to get this running ;-(
    Lets try and find the trouble maker:
    The Whitepaper works for Forms on the Web, are you on the Web or client/server?
    If client/server use icons in .ico format and set the directory path for the icons in teh UI_ICON registry variable.
    If you are on the Web and use Forms6i, follow the instructions regarding referencing the icon location in the registry.dat file and map the directory you refer to in teh httpd.conf file of the Apache HTTP Server
    If you are on Forms9i then the paper is all you need.
    Fran

  • How to display JPG Icons on push buttons

    Hi there,
    I have come to know that some changes are required in registry.dat file to get jpg images displayed on a push button. Please let me know about the changes required in detail.
    Thanks

    Ali,
    for the registry dat file all the required informationm is in there. Create a virtual directory in your HTTP server to reference the physical directory that holds your images.Open registry.dat and scroll down a bit. You find the section where you can set the image type to use jpg or gif and the virtual path. Add your virtual path as shown in the examples in this file.
    Just add the name of the jpg file, with no extension, to the button's icon name property.
    Alternatively you can use jar files to hold icons too. If you do a search ion this forum then you'll find a lot of comments on that.
    frank

  • How to create icon on Push button

    Hai All
    I have a button, when the user press the button i will display the calander. So now i need to place a small calander picture in that so Pls tell me the steps to create a iconic button.
    Pls explain me the steps...
    Any Help is highly appricatable
    regards
    Srikkanth.M
    Edited by: Srikkanth.M on Apr 28, 2010 11:00 AM

    Hi,
    you have to create a jar file of the pic and have to place it in java folder .
    Also have to edit cfg file in server folder .in that you have to include the jar file name in parameter archive_jini =
    iconic property of button should set yes
    give the name of jar file without any extension( suppose list.jar you just give list ) in the iconic name property
    cheers
    Rinz

  • Error in applying gif icon on a button in 10g forms

    Dear users...I wanna apply a gif image on a push button named "Pb_Ext" in my form but I'm being failed in this simple task :( For this purpose I've taken the following steps.
    1: I made Iconic property to "Yes" and in icon filename property I gave the gif file name, in my case that is "bdone", which I got from 10g forms directory. (Is it necessary to write file extension with file name? Although I've tried both ways.)
    2: I set up icons path value in registry.dat file as: default.icons.iconpath=H:\10g_Tst\03\03
    default.icons.iconextension=gif
    3: In formsweb.cfg file registry.dat file is defined as:
    serverApp=default
    So is there anything else remaining to be set up? Can u guess that where is the fault?

    One of this may help
    Re: icons not displaying in oracle forms.
    Re: Icon deploy issue in 10g forms
    Re: cannot show icon images
    Re: Step by step creation of iconic buttons

  • How to Enable a Push Button In The Form That Is Always Greyed Out?

    Greetings All,
    I am trying to enable an existing "Return" Push Button(PB) which is always greyed out whenever the form is called in either an update or review mode. After some research, I found that this PB's functional property is "Enabled" (i.e. the enabled value = 'Yes'), and it is coded programatically set 'Off' in 30 places and 'On' in 2 places in the form that I inherit from my predecessor by using the following code:
    SET_ITEM_ON_OR_OFF('BLK_UPDATE.PB_RETURN', <XXXXX>);
    Where <XXXXX> could be either TRUE or FALSE. I've been spending a lot of time in trying to enable this "Return" PB (without modifying the existing programming code) by adding the 'SET_ITEM_ON_OR_OFF' built-in command to set the PB on in WHEN-BUTTON-PRESSED TRIGGER for the PB_RETURN and WHEN-NEW-FORM-INSTANCE Trigger, but all tries in vain. Could you please help me with the following question?
    What is the easiest way to enable a PB that is set programmatically?
    Is there something else I should know to enable a PB, in addition to what I have already mentioned above?
    Thanks in advance,
    Jinlan
    --

    Thanks all for your information and help. I included the following code, as suggested by Manu, in WHEN-MOUSE-DOWN TRIGGER for the PB_RETURN and WHEN-NEW-FORM-INSTANCE TRIGGER:
    SET_ITEM_PROPERTY ('BLK_UPDATE.PB_RETURN_WORK_REQ', ENABLED, PROPERTY_TRUE);
    and I made sure there was no " SET_ITEM_ON_OR_OFF('BLK_UPDATE.PB_RETURN_WORK_REQ', FALSE);" statements after the above code, but, the "Return" PB is still in grey; in other words, it is still not accessible when my form is called.
    Perhaps, I need to place the above SET_ITEM_PROPERTY code in a different trigger other than the triggers mentioned above, uh? Any thoughts on this?
    Manu,
    You are absolutely right that the "SET_ITEM_ON_OR_OFF" is an ih-house written procedure which is defined/stored in the Attached Libraries. (I should have checked before making the "built-in" assumption. Thanks for catching and clarifying this.) Please help me with the following questions:
    How do I view the procedure in the Attached Libraries???
    Thanks in advance,
    Jinlan
    --

  • Icon with push button on application tool bar

    hi
    how we place icon along with pushbutton on application tool bar on selecteion screen.
    thanks in adv

    Hi,
    you can check the code below for test,
    TYPE-POOLS icon.
    TABLES sscrfields.
    DATA functxt TYPE smp_dyntxt.
    Parameters: test(1) TYPE C.
    SELECTION-SCREEN: FUNCTION KEY 1.
    INITIALIZATION.
      functxt-icon_id   = ICON_GRAPHICS.
      functxt-quickinfo = 'graphics'.
      functxt-icon_text = 'Graphics'.
      sscrfields-functxt_01 = functxt.
    AT SELECTION-SCREEN.
      CASE sscrfields-ucomm.
        WHEN 'FC01'.
    Message 'Button 1 pressed' TYPE 'I'.
        WHEN OTHERS.
      ENDCASE.
    START-OF-SELECTION.

  • To set access key for push button in oracle forms 11g

    Dear Team,
    I have following setup:-
    We are using oracle database 11gR2
    Oracle Forms & reports : 11.1.2
    O.S : Windows 7 Professional
    We have migrated oracle forms version from 6i to 11g
    In oracle forms 6i in save button's property palette we set access key as 'S', so when we press alt+S cursor move to save button, same is not working in oracle forms 11g.
    What changes I have to made in new version so that after pressing alt+S cursor will move to save button.
    Any help is appreciated.
    Thanks in Advance.

    You will need to define your custom key map in the key mapping file you use. Typically fmrweb.res or fmrpcweb.res. Edit the file in a text editor and take a look to figure out where you need to make the change.This is wrong! The OP is talking about the Access Key (key mnemonic's) of a button. This has nothing to do with the mapping of keys in the frmweb.res, etc., files.
    @parapr, You don't mention the Java version installed and you don't mention if your OS is 32-bit or 64-bit. Likely, this issue could be related to an incompatible Java version. We use Access Keys in our 11g R2 application and they work just fine. Our Java version is 1.6.0_31. If you are using Java 1.7.0 - this version is not yet certified with Oracle Forms and I would recommend you downgrade to 1.6.0 (latest version).
    Craig...
    Edited by: CraigB on Dec 3, 2012 9:09 AM

  • Displaying Icons on buttons --Urgent Help Please

    Hi All,
    I have been trying to display icons on push buttons. This is what I did after reading the white papers. Still it does not work. Please help.
    1. Created a folder on my Oracle home called images
    2. From Ms Dos ran d:\OracleHome\jdk\bin\jar.exe -cvf d:\OracleHome\forms90\java\images.jar *.gif
    3. Changed the formsweb.cfg
    imageBase=codeBase
    archive_jini=f90all_jinit.jar,images.jar
    ( here I even tried Flip flopping the two values. The Jinitior part wored but the image still does not show.)
    4. Saved the file , started the listner and ran the test form.
    5. Named the Icon file name to Aflist (no extensions)
    DOES NOT WORK.
    Pleaseeeeeeeeeeeeeeee Help.
    Many thanks in Advance.

    Frank,
    Thanks for the reply.
    I have opened the .jar file and saw that it is having the full path. myImages.jar is created in oracle_home/forms90/java directory. No luck.
    Now, I have some question about formswerb.cfg file, I do not see any section pertaining to the form that I developed and deployed. How is this config file referenced when my FORM is running on the browser?
    # 1) Runform arguments:
    #form=test.fmx
    form=EMP1.fmx
    userid=I changed the form to EMP1.fmx, but even with test.fmx file in place, my EMP1.fmx runs just fine. I am baffled with the arrangement here.
    Can you explain or direct to some documentation, where I can find precise information about what the following files do, from a developer stand point, what changes do I need to make in these files before deploying the forms on the browser.
    forms90.conf
    formsweb.cfg
    forms90.propertiesI will be very much thankful for the information.
    Thx,
    Sri

  • Issue with Icons display in PUSH BUTTONS in forms 11g

    Hello,
    This is regarding an issue with the icons background for the push buttons in the forms 11g. When we enable the icons for the buttons (.gif) they are visible on the
    top left corner of the buttons and not in the centre. In one of the forums it was written like this is a common problem in Forms 11g. Is there any way by which we can
    centralize this icons on the Forms buttons. Also I have heard that image editing tools can be used to centralize the icons. I tried with one of the tools but it seems
    like it is not working.
    Can somebody suggest a workaround for this?
    Thanks in Advance
    Ram

    I will assume you are attempting to use the images included in the Forms applet jar. These images are purposely structured so that the subject is off-centered. You should not see that same behavior if you use your own images or edit the ones built-in to Forms. However, keep in mind that the images packaged in the Forms applet jar are intended to be used in a menu toolbar and not custom buttons.
    For more information, refer to MyOracleSupport note 1391073.1 where I explain this in detail.
    Michael Ferrante
    Senior Principal Support Engineer
    Forms Global Technical Lead
    Oracle Corporation
    .

  • Displaying a Push button in the application toolbar for an ALV report

    Hello everyone,
    Query:
    Is it possible to display a custom push button in the application tool bar while displaying an ALV report(1st one)?
    On pressing this custom push button will I be able to display another ALV report(2nd one) based on the selection made on the current ALV report(1st one)?

    Yes u can have pushbutton on application toolbar.
    You just have to use the new pf status in your report program.
    You should copy the 'STANDARD' GUI status from program SAPLKKBL using transaction SE90 >Programming SubObjects> Gui Status.
    Execute this transaction to get to next screen. select status using checkbox. click on GUI Status --> Copy.
    Enter your Z program name and the name you what for this status - you can keep it as 'STANDARD' to be simple.
    Then you can edit the new status to add or delete buttons. This will also bring in the standard SAP ALV functionality.
    Have a look at below code for using the new status.
    TYPE-POOLS: slis.
    DATA: i_qmel LIKE qmel OCCURS 0.
    data v_repid type repid.
    SELECT * FROM qmel INTO TABLE i_qmel.
    v_repid = sy-repid.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = v_repid
    I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
    I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
    i_structure_name = 'QMEL'
    TABLES
    t_outtab = i_qmel
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    form set_pf_status using rt_extab type slis_t_extab.
    set pf-status 'TEST'.
    endform.
    FORM user_command USING ucomm LIKE sy-ucomm
    selfield TYPE slis_selfield.
    data lv_ucomm type sy-ucomm.
    lv_ucomm
    = sy-ucomm.
    CASE lv_ucomm.
    WHEN 'BUTTON'. "Double Click line Item
    **Write ur functinality here
    endcase.
    endform.
    Also have a look at below links.
    http://www.sap-basis-abap.com/abap/add-button-to-alv-toolbar-with-reuse-alv-list-display.htm
    ALV report
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • Display of push button in the application tool bar in an ALV report

    Hello everyone,
    Query:
    Is it possible to display a custom push button in the application tool bar while displaying an ALV report(1st one)?
    On pressing this custom push button will I be able to display another ALV report(2nd one) based on the selection made on the current ALV report(1st one)?

    Hiii..
    I have written a sample code for You
    <b>"Call the below FunctionModule For Displaying The List
    " And see the bolded line in the Below FunctionModule
    " STANDARD_02 and USER_COMMAND are the subroutine Names</b>
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
       i_callback_program             = sy-repid
       <b>i_callback_pf_status_set       = 'STANDARD_02'</b>
      <b> i_callback_user_command       = 'USER_COMMAND '</b>
       i_structure_name               =  'ZST_SCARR'
       is_layout                      = is_layout
       it_fieldcat                    = gt_fieldcat[]
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      is_sel_hide                    = is_sel_hide
      I_DEFAULT                      = 'X'
      I_SAVE                         = ' '
      IS_VARIANT                     =
       it_events                      = e03_lt_events[]
      IT_EVENT_EXIT                  =
      is_print                       = t
      IS_REPREP_ID                   =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
      IR_SALV_LIST_ADAPTER           =
      IT_EXCEPT_QINFO                =
      I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
      TABLES
        t_outtab                       = it_scarr
    EXCEPTIONS
       program_error                  = 1
       OTHERS                         = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
       FORM PF_STATUS_SET
    <b>" Here Set A Button In Application Toolbar Using PF- Status</b>
    FORM standard_02 USING  extab TYPE slis_t_extab.
      SET PF-STATUS 'STANDA02' EXCLUDING extab.
    ENDFORM.                    "STANDARD_02
    *&      Form  USER_COMMAND
          text
         -->R_UCOMM    text
         -->RS_SELFIELDtext
    FORM user_command USING r_ucomm LIKE sy-ucomm
                      rs_selfield TYPE slis_selfield.
      CASE r_ucomm.
    <b> "menubutton with functioncode GOTO's Action</b>
        WHEN  'GOTO'.  
          READ TABLE it_scarr INDEX rs_selfield-tabindex. "cursorposit.
          IF sy-subrc = 0.
            WRITE:/ it_scarr-carrid,
                  /  it_scarr-carrname.
          ENDCASE.
    ENDFORM.                    "USER_COMMAND<b></b>
    Hope it helps..
    Regards,
    Simy

  • Wan to add push button in the output of ALV Grid display.

    Hi Friends,
    I wan to add a Push button in the output of ALV GRID display with STANDARD ikons.
    How to copy standard ikons of GRID output.
    How to apply the copied status into my code.
    Regards,
    Viji

    Hi,
    Goto SE41, create a pf-status for your alv report program.
    On the next screen, click menu EXTRAS --> click option ADJUST TEMPLATES and select radiobutton LIST VIEWER --> you will get all standard buttons of alv in the pf-status.
    Delete the unwanted buttons and also you can add new buttons if reqd.
    Activate pf-status --> and apply in alv program.
    Now to apply this pf-status in your alv report follow code:-
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         i_callback_program                = v_rep_id       " report id
         i_callback_pf_status_set          = 'PF'           " for PF-STATUS
         i_callback_user_command           = 'USER_COMMAND' " for User-Command
         is_layout                         = wa_layout      " for layout
         it_fieldcat                       = it_field       " field catalog
         it_sort                           = it_sort        " sort info
        TABLES
          t_outtab                          = it_final      " internal table
       EXCEPTIONS
         program_error                     = 1
         OTHERS                            = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    *&      Form  pf
    *       SUB-ROUTINE PF IS USED TO SET THE PF-STATUS OF THE SCREEN
    *       ON WHICH THE ALV GRID IS DISPLAYED
    *       -->RT_EXTAB
    FORM pf USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'ZTG_STAT'. "<--pass pf-status name here
    ENDFORM.                    "pf
    *&      Form  USER_COMMAND
    *       SUB-ROUTINE USER_COMMAND IS USED TO HANDLE THE USER ACTION
    *       AND EXECUTE THE APPROPIATE CODE
    *      -->LV_OKCODE   used to capture the function code
    *                     of the user-defined push-buttons
    *      -->L_SELFIELD   text
    FORM user_command USING lv_okcode LIKE sy-ucomm l_selfield TYPE slis_selfield.
    * assign the function code to variable v_okcode
      lv_okcode = sy-ucomm.
    * handle the code execution based on the function code encountered
      CASE lv_okcode.
        WHEN '<function_code>'. "<--to handle user actions
      ENDCASE.
    ENDFORM.                    "USER_COMMAND
    Hope this helps you.
    Regards,
    Tarun

Maybe you are looking for

  • Passing all values to the child report in OpenDoc - XIR3.1

    Hi all in XIR3.1 iam able to write the open document syntax and also able pass some prompts i wanted like month, year, ID,... etc am able to pass and open a child report based on parameters when i select one value of those fields from dropdown in dri

  • Convert report from SAP to Excel

    Hi All, How to convert report from SAP to Excel.Here now taking default text(.txt) format.But we want defualt taking (.xls) format only. Regards Usha

  • Editing Text in SWF file with Flash

    Hio All, I am a flash newbie. I have been asked to edit an existing site and am coming up goose eggs. What I want to do is edit the text in a swf movie. The movie opens up fine in flash, I can add and delete text, but I cannot save the darn thing. Th

  • [Predictive Analysis 1.20] Remove a document

    I am a new user of SAP predictive analysis. Could someone please show me how to remove a document from the item list (see below)? I cannot find this option in the drop-down menus. Thank you for your help in advance.

  • Bind two DataGrids so that a change in one will be refelected in another

    Is there a simple way to bind two DataGrids so that a change in one will be refelected in another?  I have two DataGrids.  One will be editable and the other will be used to display the information from the editable DataGrid in a confirmation section