Forum Stats

  • 3,770,165 Users
  • 2,253,079 Discussions
  • 7,875,353 Comments

Discussions

SET_TAB_PAGE_PROPERTY('Reports', ICON_NAME, 'c:\erp\image\Report.gif');

SANPAT
SANPAT Member Posts: 1,086 Silver Badge

Dear Friends

Where i should write this property , currently i am using Forms [64 Bit] Version 12.2.1.4.0 (Production).

SET_TAB_PAGE_PROPERTY('Reports', ICON_NAME, 'c:\erp\image\Report.gif');

Tried to write in When-new-form-instance , but there is no effect , as i was thinking that it will show the gif icon on tab.

Please suggest where i can write this line so that when i will run the form in tab it will show the icon in exchange of Name.

Sanjay

Tagged:

Best Answer

Answers

  • Frank Hoffmann
    Frank Hoffmann Member Posts: 796 Gold Badge
    edited Dec 6, 2020 6:54AM

    Sanjay,


    it depends how you want to program it. I have a block with applications and switch the icons there.

    So I placed it on the when-new-record-instance on this block and call a pl-sql procedure in forms like this.

    You need to address every tabpage you want to switch. The graphics need to be 16*16 Pixel iin order to fit.

    Example

    I have placed my icons on a file system under oracle_home/forms/webutil/icons so I can adress them.

    You might fail, if you use a directory that the FMW Server can not find or if the graphic is larger that 16*16 pixel.

    Try it with my example above

    PROCEDURE pl_tabicon IS

    begin

    declare

    tab_id TAB_PAGE;

    begin

       tab_id := FIND_TAB_PAGE('GLIEDERUNG');

      SET_TAB_PAGE_PROPERTY (tab_id,ICON_NAME,'gliederung.gif');

        tab_id := FIND_TAB_PAGE('STAMMDATEN'); 

      SET_TAB_PAGE_PROPERTY (tab_id, ICON_NAME, 'stammdaten.gif');

    end;

    end;