Forms 10g  menu image

Hii,
I am using forms 10g in which i am having a image showing my application information. I want this image to be displayed all the time. Is there ant thing such as menu can be having image.
One solution i have that is i am using a form in full size which is having image and i am displaying this form with no close allowed property.
But when i am opening a another form and i clicks on the form with image the form i have opened hides behind this form with image. How can i handle this situation.
please help

There is a solution in MetaLink. See Subject: "Drop Downs Don't Work With Dual Monitors (Extended Desktop)".
Symptoms
When Forms application is dragged from a monitor to another in a dual monitor system, the drop down lists stops working
Cause
This issue was caused both by the lack of Multi-screen Setup Support in Java versions prior to JDK1.2 and by Bug 2772796 - Apps6: Drop Down Menus Invisible When Using Dual Or Multiple Monitor Setup
The bug is fixed in Forms 10.1.2.2 and beyond. It allowed the bounds to be calculated fine across the now available displays.
Solution
If using Forms version 9.0.4.3 then you can apply Patch 2772796 on top of it.
If using Forms 10.1.2.0.2 then upgrade to Forms version 10.1.2.2 or beyond.
Note: If using Oracle Applications 11i, please consult the solution rather in the Note 430179.1 - Drop Down Menus Invisible When Using Dual Or Multiple Monitors

Similar Messages

  • Forms 10G menu not showing submenus

    I have a forms 10G application that is showing the main menu items but wont display the submenu items. The application works correctly on both a Linux (OAS 10.1.2.0.1) and a Windows (OAS 10.1.2.3) testserver.
    After placing and compiling (without any errors) the application on a clients server the main screen is shown with the main menu items. However, clicking on the menu items won't open the submenus. The only menu item that works is the exit option which is not of command type "menu" but of command type "PL/SQL".
    The menu's use security property is set to no.
    Has anybody experienced this behaviour? What is going wrong?

    There is a solution in MetaLink. See Subject: "Drop Downs Don't Work With Dual Monitors (Extended Desktop)".
    Symptoms
    When Forms application is dragged from a monitor to another in a dual monitor system, the drop down lists stops working
    Cause
    This issue was caused both by the lack of Multi-screen Setup Support in Java versions prior to JDK1.2 and by Bug 2772796 - Apps6: Drop Down Menus Invisible When Using Dual Or Multiple Monitor Setup
    The bug is fixed in Forms 10.1.2.2 and beyond. It allowed the bounds to be calculated fine across the now available displays.
    Solution
    If using Forms version 9.0.4.3 then you can apply Patch 2772796 on top of it.
    If using Forms 10.1.2.0.2 then upgrade to Forms version 10.1.2.2 or beyond.
    Note: If using Oracle Applications 11i, please consult the solution rather in the Note 430179.1 - Drop Down Menus Invisible When Using Dual Or Multiple Monitors

  • Form 10g with image cause FRM-40105, after FRM-92101.

    I have a form with image.
    I open another form in new window.
    When return to first form, clicking in image, causes this error.
    If click in another field, the error is not shown.
    does solution exist?
    tks.
    Martonio.
    Edited by: martonio on 15/10/2009 14:33

    Hi!
    Is there any when-mouse-click or when-new-item-instance on your image-item?
    Regards

  • Forms 10g Menu Issues

    I am attempting to migrate from 6i client/server to 10g forms. I am having difficulty with the menu's. I am ok with the DEFAULT&SMARTBAR. The users are used to seeing this from the 6i. When the forms are launched from the builder the default menu includes a Window item. When the same fmx is run using the "run a form on the web", the Windows menu item is gone. Because my forms launch more forms, having the Window item would be very nice. How can I keep the Window Item when run from the web?

    I am also having similar issues. I am using developer suite 10g release 2. so i guess its forms_path and not forms90_path. but that is set, plls are attaching well, but mmb/mmx is a problem. all the objects (pll, mmb, mmx) are in the path specified in the forms_path variable. after stating that it could not find menu (frm-10221), it also gives 92101 forms server message and i have to reboot the system. (stopping and restarting oc4j instance does not help).
    Any help would be greatly appreciated. Thank you.

  • Calling Report from Menu (Oracle Forms 10g)

    We have the applications in Forms6i & Reports 6i (Client Server) and migrating to Forms 10g and Reports 10g. We have the menu, from that menu we are calling all the forms and Reports. For especially Reports earlier we user RUN_PRODUCT but now 10g it is not working. How can call the report using RUN_REPORT_OBJECT
    Important things we have some dynamic parameters (input) to the each report. That means when i called the report from the menu i need to get first parameter form to take the parameters and then can be run the report.

    Here is the code to call report from menu in 10g
    DECLARE
    pl_id ParamList;
    repid REPORT_OBJECT;
    v_rep varchar2(100);
    v_server VARCHAR2(100);
    rep_status varchar2(100);
    v_host VARCHAR2(100);
    BEGIN
         select rep_server into v_server from reports_data;
         select machine into v_host from reports_data;
    pl_id := Get_Parameter_List('tmpdata');
         IF NOT Id_Null(pl_id) THEN
         Destroy_Parameter_List( pl_id );
         END IF;
         pl_id := Create_Parameter_List('tmpdata');           
    Add_Parameter(pl_id,'P_C_CODE',TEXT_PARAMETER,:GLOBAL.COMPANY);
    Add_Parameter(pl_id,'P_B_CODE',TEXT_PARAMETER,:GLOBAL.BRANCH);
         repid := find_report_object('REPORTOBJ');
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,getpath||'E_VOUCHER_ENTRY.RDF');
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'htmlcss');
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,v_server);
              v_rep := RUN_REPORT_OBJECT(repid, pl_id);
              rep_status := REPORT_OBJECT_STATUS(v_rep);
              WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
                   LOOP
                        rep_status := report_object_status(v_rep);
                             message('Running');
                   END LOOP;
              IF rep_status = 'FINISHED' or rep_status is NULL THEN
                   --Display report in the browser
                   WEB.SHOW_DOCUMENT('http://'||v_host||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server='||v_server,'_blank');
              ELSE
                   null;
         END IF;
    END;

  • Load Image in Forms 10g

    Dear All
    I want to load image from hard Disk to data base in forms 10g.
    I have a Image item and Browse button in my forms and in database it is a BLOB column.
    I need when i click on Browse Button then it will open the browse window and you can select on that.
    How to do ? Urgent , please help me .
    Thank you.

    or
    try this.
    declare
    l_file_name varchar2(383);
    begin
    l_file_name := webutil_file.file_open_dialog( );
    if
      l_file_name is not null
    then
      if
        :block.rowid is not null
      then
        create_record;
      end if;
      client_image.read_image_file ( l_file_name, substr ( l_file_name, instr ( l_file_name , -1 ) ), 'images.images' );
    end if;
    end;Note:- u have to attach webutil.pll without library it will not work.
    Sarah

  • How to display an image in FORM 10g/11g data recovered through Web Services

    I need to show in a FORM 10g/11g an image that is recovered from a Web Service (XML format).
    (The Web Service retrieves several images from SQL Server database).
    versions previous 6i... one use field type ActiveX Control, and there showed the respective images, even with previous and next controls. Aspect that new versions of form 10g & 11g is obsolete.
    Any help thank you.
    Edited by: 859272 on 16/05/2011 03:06 PM
    Edited by: 859272 on 17/05/2011 07:15 AM

    I tried it doing it this way and it worked -
    1. copy the image into the directory aliased in 9iAS configuration file as '/images/'.
    2. In the PL/SQL code section after header, I write the following code -
    begin
    htp.p('<img src="/images/pobexp.gif"/>');
    end;

  • How to replace the forms6i menu parameter in forms 10g after migration

    Hai,
    We have forms6i application and we are going to migrate forms6i into forms 10g .The forms 6i have the menu userdefine parameter.But forms 10g don't have the option. so please send me the suggesstion what we can do .Is there any alternative way.How to bring the same funtionality in forms 10g after the migration.pls reply me
    THANKS

    We had the same problem - you could develop a new form just to accept the necessary user input, but that might be overkill. We used Forms Editors, displaying them with an appropriate startup text e.g. 'Parameter1='. The user then types in the parameter, then we check the new Editor text and pull out the info we need.

  • How to display image in oracle forms 10g

    hello good morning
    I need to display an image in forms 10g
    I can use READ_IMAGE_FILE ('imagen_name', 'URL', 'block.image_item');
    ok if I have my forms stored in a directory -----> */ FORMS / MYSAPP* here are all my fmx
    HERE ARE MY PICTURES ---> */ FORMS / MYSAPP / IMAGES*
    As I can put the URL to access an image that is in that directory
    slds

    Hi,
    You should have the webutil
    see this post
    http://sheikyerbouti.developpez.com/tutoforms10g/tutoforms10g.htm

  • Forms 10G – Replacing Oracle Logo in Menu Bar

    Hello:
    Forms 10G – Replacing Oracle Logo in Menu Bar
    We use “lookAndFeel=oracle” which gives Oracle Logo in the Manu Bar at top right corner.
    What is the simplest way to replace this with our own logo?
    Thanks

    Here you go. (foroms.conf, formsweb.cfg)
    Forms.conf
    # $Id: forms.conf 22-nov-2004.03:29:38 osingh Exp $
    # Name
    # forms.conf
    # Purpose
    # Apache mod_oc4j and mod_jserv configuration file for Forms Services.
    # This file should be included into the Oracle Apache HTTP Listener
    # configuration file (typically by adding an include statement to the
    # oracle_apache.conf file)
    # Remarks
    # If Forms is to be used with JServ, the jserv.properties file needs editing
    # to add the "forms" servlet zone with properties file forms.properties
    # Notes
    # Virtual paths: We use AliasMatch when defining virtual paths for
    # security reasons (prevents directory browsing).
    # Virtual path mapping for Forms Java jar and class files (codebase)
    AliasMatch ^/forms/java/(..*) "E:\oracle\FRHome_1/forms/java/$1"
    # Virtual path for JInitiator downloadable executable and download page
    AliasMatch ^/forms/jinitiator/(..*) "E:\oracle\FRHome_1/jinit/$1"
    # Virtual path for runform.htm (used to run a form for testing purposes)
    AliasMatch ^/forms/html/(..*) "E:\oracle\FRHome_1/tools/web/html/$1"
    # Virtual path for webutil
    AliasMatch ^/forms/webutil/(..*) "E:\oracle\FRHome_1/forms/webutil/$1"
    # Configuration for JServ (if mod_jserv.c is available and not mod_oc4j.c)
    <IfModule mod_jserv.c>
    # Only configure for JServ if mod_oc4j is NOT available:
    <IfModule !mod_oc4j.c>
    # Virtual path mapping for FormsServlet and ListenerServlet.
    # Purpose: paths to invoke the servlets should be /forms/frmservlet
    # and /forms/lservlet respectively.
    # We map frmservlet to servlet.frm, and lservlet to servlet.frml.
    # The apJServAction directives (below) will then remap those.
    AliasMatch ^/forms/frmservlet(.*) "/servlet.frm"
    AliasMatch ^/forms/lservlet(.*) "/servlet.frml"
    ApJServMount /forms/servlet /forms
    # Let the servlets be called by file extension (e.g /servlet.frm)
    ApJServAction .frm /forms/servlet/frmservlet
    ApJServAction .frml /forms/servlet/lservlet
    # Prevent access to the Forms Servlets by paths other than
    # /forms/frmservlet and /forms/lservlet.
    # 1. Prevent access via the .frm and .frml file extensions:
    <LocationMatch ^.*\.frm.*>
    order deny,allow
    deny from all
    </LocationMatch>
    # 2. Stop access by class (by paths like
    # /forms/servlet/oracle.forms.servlet.FormsServlet)
    <LocationMatch ^/forms/servlet/oracle\.forms.*>
    order deny,allow
    deny from all
    </LocationMatch>
    </IfModule>
    </IfModule>
    # Config. for OC4J
    <IfModule mod_oc4j.c>
    Oc4jMount /forms OC4J_BI_Forms
    Oc4jMount /forms/frmservlet OC4J_BI_Forms
    Oc4jMount /forms/frmservlet/* OC4J_BI_Forms
    Oc4jMount /forms/lservlet OC4J_BI_Forms
    Oc4jMount /forms/lservlet/* OC4J_BI_Forms
    </IfModule>
    formsweb.cfg
    # $Id: formsweb.cfg 15-apr-2005.13:17:30 pkuhn Exp $
    # formsweb.cfg defines parameter values used by the FormsServlet (frmservlet)
    # This section defines the Default settings. Any of them may be overridden in the
    # following Named Configuration sections. If they are not overridden, then the
    # values here will be used.
    # The default settings comprise two types of parameters: System parameters,
    # which cannot be overridden in the URL, and User Parameters, which can.
    # Parameters which are not marked as System parameters are User parameters.
    # SYSTEM PARAMETERS
    # These have fixed names and give information required by the Forms
    # Servlet in order to function. They cannot be specified in the URL query
    # string. But they can be overridden in a named configuration (see below).
    # Some parameters specify file names: if the full path is not given,
    # they are assumed to be in the same directory as this file. If a path
    # is given, then it should be a physical path, not a URL.
    # USER PARAMETERS
    # These match variables (e.g. %form%) in the baseHTML file. Their values
    # may be overridden by specifying them in the URL query string
    # (e.g. "http://myhost.mydomain.com/forms/frmservlet?form=myform&width=700")
    # or by overriding them in a specific, named configuration (see below)
    [default]
    # System parameter: default base HTML file
    baseHTML=base.htm
    # System parameter: base HTML file for use with JInitiator client
    baseHTMLjinitiator=basejini.htm
    # System parameter: base HTML file for use with Sun's Java Plug-In
    baseHTMLjpi=basejpi.htm
    # System parameter: delimiter for parameters in the base HTML files
    HTMLdelimiter=%
    # System parameter: working directory for Forms runtime processes
    # WorkingDirectory defaults to <oracle_home>/forms if unset.
    workingDirectory=
    # System parameter: file setting environment variables for the Forms runtime processes
    envFile=default.env
    # Forms runtime argument: whether to escape certain special characters
    # in values extracted from the URL for other runtime arguments
    escapeparams=true
    # Forms runtime argument: which form module to run
    form=test.fmx
    # Forms runtime argument: database connection details
    userid=
    # Forms runtime argument: whether to run in debug mode
    debug=no
    # Forms runtime argument: host for debugging
    host=
    # Forms runtime argument: port for debugging
    port=
    # Other Forms runtime arguments: grouped together as one parameter.
    # These settings support running and debugging a form from the Builder:
    otherparams=buffer_records=%buffer% debug_messages=%debug_messages% array=%array% obr=%obr% query_only=%query_only% quiet=%quiet% render=%render% record=%record% tracegroup=%tracegroup% log=%log% term=%term%
    # Sub argument for otherparams
    buffer=no
    # Sub argument for otherparams
    debug_messages=no
    # Sub argument for otherparams
    array=no
    # Sub argument for otherparams
    obr=no
    # Sub argument for otherparams
    query_only=no
    # Sub argument for otherparams
    quiet=yes
    # Sub argument for otherparams
    render=no
    # Sub argument for otherparams
    record=
    # Sub argument for otherparams
    tracegroup=
    # Sub argument for otherparams
    log=
    # Sub argument for otherparams
    term=
    # HTML page title
    # HTML attributes for the BODY tag
    HTMLbodyAttrs=
    # HTML to add before the form
    HTMLbeforeForm=
    # HTML to add after the form
    HTMLafterForm=
    # Forms applet parameter: URL path to Forms ListenerServlet
    serverURL=/forms/lservlet
    # Forms applet parameter
    codebase=/forms/java
    # Forms applet parameter
    imageBase=DocumentBase
    # Forms applet parameter
    width=750
    # Forms applet parameter
    height=600
    # Forms applet parameter
    separateFrame=false
    # Forms applet parameter
    splashScreen=
    # Forms applet parameter
    background=
    # Forms applet parameter
    lookAndFeel=Oracle
    # Forms applet parameter
    colorScheme=teal
    # Forms applet parameter
    logo=
    # Forms applet parameter
    restrictedURLparams=HTMLbodyAttrs,HTMLbeforeForm,HTMLafterForm,log,allow_debug,allowNewConnections
    # Forms applet parameter
    formsMessageListener=
    # Forms applet parameter
    recordFileName=
    # Forms applet parameter
    serverApp=default
    # Forms applet archive setting for JInitiator
    archive_jini=frmall_jinit.jar
    # Forms applet archive setting for other clients (Sun Java Plugin, Appletviewer, etc)
    archive=frmall.jar
    # Number of times client should retry if a network failure occurs. You should
    # only change this after reading the documentation.
    networkRetries=0
    # Page displayed to Netscape users to allow them to download Oracle JInitiator.
    # Oracle JInitiator is used with Windows clients.
    # If you create your own page, you should set this parameter to point to it.
    jinit_download_page=/forms/jinitiator/us/jinit_download.htm
    # Parameter related to the version of JInitiator
    jinit_classid=clsid:CAFECAFE-0013-0001-0022-ABCDEFABCDEF
    # Parameter related to the version of JInitiator
    jinit_exename=jinit.exe#Version=1,3,1,22
    # Parameter related to the version of JInitiator
    jinit_mimetype=application/x-jinit-applet;version=1.3.1.22
    # Page displayed to users to allow them to download Sun's Java Plugin.
    # Sun's Java Plugin is typically used for non-Windows clients.
    # (NOTE: you should check this page and possibly change the settings)
    jpi_download_page=http://java.sun.com/products/archive/j2se/1.4.2_06/index.html
    # Parameter related to the version of the Java Plugin
    jpi_classid=clsid:CAFEEFAC-0014-0002-0006-ABCDEFFEDCBA
    # Parameter related to the version of the Java Plugin
    jpi_codebase=http://java.sun.com/products/plugin/autodl/jinstall-1_4_2-windows-i586.cab#Version=1,4,2,06
    # Parameter related to the version of the Java Plugin
    jpi_mimetype=application/x-java-applet;jpi-version=1.4.2_06
    # EM config parameter
    # Set this to "1" to enable Enterprise Manager to track Forms processes
    em_mode=1
    # Single Sign-On OID configuration parameter
    oid_formsid=%OID_FORMSID%
    # Single Sign-On OID configuration parameter
    oracle_home=E:\oracle\FRHome_1
    # Single Sign-On OID configuration parameter
    formsid_group_dn=%GROUP_DN%
    # Single Sign-On OID configuration parameter: indicates whether we allow
    # dynamic resource creation if the resource is not yet created in the OID.
    ssoDynamicResourceCreate=true
    # Single Sign-On parameter: URL to redirect to if ssoDynamicResourceCreate=false
    ssoErrorUrl=
    # Single Sign-On parameter: Cancel URL for the dynamic resource creation DAS page.
    ssoCancelUrl=
    # Single Sign-On parameter: indicates whether the url is protected in which
    # case mod_osso will be given control for authentication or continue in
    # the FormsServlet if not. It is false by default. Set it to true in an
    # application-specific section to enable Single Sign-On for that application.
    ssoMode=false
    # The parameter allow_debug determines whether debugging is permitted.
    # Administrators should set allow_debug to "true" if servlet
    # debugging is required, or to provide access to the Forms Trace Xlate utility.
    # Otherwise these activities will not be allowed (for security reasons).
    allow_debug=false
    # Parameter which determines whether new Forms sessions are allowed.
    # This is also read by the Forms EM Overview page to show the
    # current Forms status.
    allowNewConnections=true
    # EndUserMonitoring
    # EndUserMonitoringEnabled parameter
    # Indicates whether EUM/Chronos integration is enabled
    EndUserMonitoringEnabled=
    # EndUserMonitoringURL
    # indicates where to record EUM/Chronos data
    EndUserMonitoringURL=
    # Example Named Configuration Section
    # Example 1: configuration to run forms in a separate browser window with
    # "generic" look and feel (include "config=sepwin" in the URL)
    # You may define your own specific, named configurations (sets of parameters)
    # by adding special sections as illustrated in the following examples.
    # Note that you need only specify the parameters you want to change. The
    # default values (defined above) will be used for all other parameters.
    # Use of a specific configuration can be requested by including the text
    # "config=<your_config_name>" in the query string of the URL used to run
    # a form. For example, to use the sepwin configuration, your could issue
    # a URL like "http://myhost.mydomain.com/forms/frmservlet?config=sepwin".
    [sepwin]
    separateFrame=True
    lookandfeel=Generic
    # Example Named Configuration Section
    # Example 2: configuration forcing use of the Java Plugin in all cases (even if
    # the client browser is on Windows)
    [jpi]
    baseHTMLJInitiator=basejpi.htm
    # Example Named Configuration Section
    # Example 3: configuration running the Forms ListenerServlet in debug mode
    # (debug messages will be written to the servlet engine's log file).
    [debug]
    serverURL=/forms/lservlet/debug
    # Sample configuration for deploying WebUtil. Note that WebUtil is shipped with
    # DS but not AS and is also available for download from OTN.
    [webutil]
    WebUtilArchive=frmwebutil.jar,jacob.jar
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    WebUtilDispatchMonitorInterval=5
    WebUtilTrustInternal=true
    WebUtilMaxTransferSize=16384
    baseHTMLjinitiator=webutiljini.htm
    baseHTMLjpi=webutiljpi.htm
    archive_jini=frmall_jinit.jar
    archive=frmall.jar
    lookAndFeel=oracle
    [devBala]
    envFile=E:\Khamel\conf\devBala.env
    WIDTH=832
    HEIGHT=662
    pageTitle=Khameleon DEV-Bala Environment
    separateFrame=True
    splashScreen=No
    Background=No
    #lookAndFeel=oracle
    colorScheme=BLAF
    form=sylogin.fmx
    logo=/ksfiles/kham_log.gif
    [devBala1]
    envFile=E:\Khamel\conf\devBala.env
    WIDTH=1000
    HEIGHT=850
    #pageTitle=Khameleon DEV-Bala1 Environment
    separateFrame=True
    splashScreen=/ksfiles/Khameleon.gif
    Background=/ksfiles/Khameleon1.gif
    #lookAndFeel=oracle
    colorScheme=BLAF
    form=sylogin.fmx
    logo=/icons/kham_log.gif

  • Forms 10g Migration : Menu attached to form appears on MDI Window.

    Hi All ,
    On migration of forms 5/6i into forms 10g observed that the Menu Module attached to a form appears on MDI window and not attached to the main window of the form.
    How do we ensure that the Menu and the Horizontal toolbar attached to the form appear on the main window of the form and not on the MDI Window ?
    Kindly help please ...
    Thanks ,

    Hi,
    I have same issue. Did you find any solution ?
    Please let me know.
    Thanks.

  • FRM : 41067 Cannot find menu item id ( forms 10g Menus/Forms Conversion )

    Hi All ,
    We have menus converted into forms 10g using the forms migration assistant FMA ( frmplsqlconv ) . Now , we had the menus (.mmb) which had used Shared Menus.
    After conversion observed that there were some duplicate copies of the shared menus created automatically and each reference where this shared menu was used was replaced by the newly created ones.
    Now , when I open the form that uses the menu I get the following error :
    FRM : 41067 Cannot find menu item id
    On debuggin observed the the above error was generated at :
    set_menu_item_property(SHARED_MENU.ITEM,.... )
    Not sure how this worked in forms earlier version and not working in 10g now.
    Could anyone please let me know how to go about to fix this issue and why is this happening at the first point.
    Is re-creating the menu from scratch the only option to resolve the issue ?
    Please advise ..
    Thanks ,

    Hi
    Error Message: FRM-41067: Cannot find Menu Item: invalid ID.
    Error Cause:An invalid ID was passed to a built-in subprogram.
    Action:Verify that a proper call to FIND_MENU_ITEM will be performed. Level: 20 Type: Errori think c1 returns null pls check ur Query in the cursor ; run & test if it returns data or not & check the name of the menu that should actually match with the name stored in the db.
    If the error still existing then u can get reide of it with a simple line check using FIND_MENU_ITEM as follow...
    PROCEDURE disable_menu_items IS
    mi_id MenuItem;
    val varchar2(10);
    BEGIN
    IF :Global.user_code '01' THEN
    IF :GLOBAL.VC_ROLE_CODE '01' THEN
    declare
    cursor c1 is
    select vc_menu_code,vc_menu_name from
    makess.mk_module_menu a where
    vc_module_code='06' and
    not exists(select vc_menu_code
    from makess.mk_roles_menu_inv b
    where vc_comp_code=:global.vc_comp_code
    and a.vc_menu_code=b.vc_menu_code
    and ch_role_code=:global.vc_role_code);
    BEGIN
    for crec in c1
    mi:=FIND_MENU_ITEM('MENU.MENUITEM');
      IF NOT ID_NULL(mi) THEN
    loop
    set_menu_item_property(crec.vc_menu_name,ENABLED,Property_false);
    end loop;
    END IF;
    END;
    :global.check:='N';
    END IF;
    END IF;
    END;Hope this helps...
    Regards,
    Abdetu...

  • Loading image from jars only once in oracle forms 10g

    Hi,
    I have an oracle forms 10g application which loads image from a jar. Every time i click on a button "A" that loads the image "image" on another button "B" in the same screen, a message is displayed in the java console "Loaded image: jar:https://+IP+/forms/java/+myjar+.jar!/image.gif". So after 10 clicks, i get the same message displayed 10 times. In the form, i've called:
    SET_CUSTOM_PROPERTY(p_object_name, 1, 'IMAGE_NAME_ON', '/'||p_image_name);My question is the following:
    - is there a way to load this image once and use it later without having to load it every time i clik on "A"? if yes, how?
    P.S.: if this thread shouldn't be posted in this forum, please redirect me to the right one.
    Thanks in advance

    Ah okay.
    I'm using the rolloverbutton.jar (RollOver Button PJC) [RolloverButton.java -> authors: Steve Button, Duncan Mills].
    Here is the part concerning the IMAGE_NAME_ON function:
    // make sure we are in rollover mode
    enableRollover();
    log("setProperty - IMAGE_NAME_ON value=" + value.toString());
    // load the requested image
    m_imageNameOn = (String) value;
    loadImage(ON,m_imageNameOn);
    // reset the currrently drawn image if needed
    setImage(ON,m_state);
    return true;where loadImage function is:
        URL imageURL = null;
        boolean loadSuccess = false;
        //JAR
        log("Searching JAR for " + imageName);
        imageURL = getClass().getResource(imageName);
        if (imageURL != null)
          log("URL: " + imageURL.toString());
          try
            m_images[which] = Toolkit.getDefaultToolkit().getImage(imageURL);
            loadSuccess = true;
            log("Image found: " + imageURL.toString());
          catch (Exception ilex)
            log("Error loading image from JAR: " + ilex.toString());
        else
          log("Unable to find " + imageName + " in JAR");
        //DOCBASE
        if (loadSuccess == false)
          log("Searching docbase for " + imageName);
          try
            if (imageName.toLowerCase().startsWith("http://")||imageName.toLowerCase().startsWith("https://"))
              imageURL = new URL(imageName);
            else
              imageURL = new URL(m_codeBase.getProtocol() + "://" + m_codeBase.getHost() + ":" + m_codeBase.getPort() + imageName);
            log("Constructed URL: " + imageURL.toString());
            try
              m_images[which] = createImage((java.awt.image.ImageProducer) imageURL.getContent());
              loadSuccess = true;
              log("Image found: " + imageURL.toString());
            catch (Exception ilex)
              log("Error reading image - " + ilex.toString());
          catch (java.net.MalformedURLException urlex)
            log("Error creating URL - " + urlex.toString());
        //CODEBASE
        if (loadSuccess == false)
          log("Searching codebase for " + imageName);
          try
            imageURL = new URL(m_codeBase, imageName);
            log("Constructed URL: " + imageURL.toString());
            try
              m_images[which] = createImage((java.awt.image.ImageProducer) imageURL.getContent());
              loadSuccess = true;
              log("Image found: " + imageURL.toString());
            catch (Exception ilex)
                    log("Error reading image - " + ilex.toString());
          catch (java.net.MalformedURLException urlex)
            log("Error creating URL - " + urlex.toString());
        if (loadSuccess == false)
          log("Error image " + imageName + " could not be located");In this case, what shall i modify?
    Thanks in advance

  • Retrieve image file from FORMS 10G using BLOB

    Dear all,
    i inserted one record in a table for the following procedure.
    Create Or Replace Procedure Blob_Xl Is
    l_blob Blob;
    l_bfile Bfile;
    Begin
    Insert Into LOB_TABLE Values ( 'TEST1', Empty_Blob() )
    Returning BLOBDATA Into l_blob;
    l_bfile := Bfilename( 'TEST1', 'I.JPG');
    dbms_lob.fileopen( l_bfile,dbms_lob.file_readonly );
    dbms_lob.loadfromfile( l_blob, l_bfile, dbms_lob.getlength( l_bfile ) );
    dbms_lob.fileclose( l_bfile );
    Commit;
    End Blob_Xl;
    after that
    record also inserted, i check thro count.
    i try to retrieve that image from that table for using following procedure, in that procedure i called from one button in forms 10g and wrote in when button pressed , when i clicked it wont show any images.
    where i am wrong?
    Create Or Replace Procedure get_img As
    vblob Blob;
    buffer Raw(32000);
    buffer_size Integer := 32000;
    offset Integer := 1;
    Length Number;
    Begin
    owa_util.mime_header('image/JPG');
    Select BLOBDATA Into vblob From LOB_TABLE Where No = 'TEST1';
    Length := dbms_lob.getlength(vblob);
    While offset < Length Loop
    dbms_lob.Read(vblob, buffer_size, offset, buffer);
    htp.prn(utl_raw.cast_to_varchar2(buffer));
    offset := offset + buffer_size;
    End Loop;
    Exception
    When Others Then
    htp.p(Sqlerrm);
    End;
    /

    hi
    try something like this for retrieve.May it helps u.
    DECLARE
    directions CLOB;
    directions_1 VARCHAR2(300);
    directions_2 VARCHAR2(300);
    chars_read_1 BINARY_INTEGER;
    chars_read_2 BINARY_INTEGER;
    offset INTEGER;
    BEGIN
    --Retrieve the LOB locator inserted previously
    SELECT falls_directions
    INTO directions
    FROM waterfalls
    WHERE falls_name='Munising Falls';
    --Begin reading with the first character
    offset := 1;
    --Attempt to read 229 characters of directions, chars_read_1 will
    --be updated with the actual number of characters read
    chars_read_1 := 229;
    DBMS_LOB.READ(directions, chars_read_1, offset, directions_1);
    --If we read 229 characters, update the offset and try to
    --read 255 more.
    IF chars_read_1 = 229 THEN
    offset := offset + chars_read_1;
    chars_read_2 := 255;
    DBMS_LOB.READ(directions, chars_read_2, offset, directions_2);
    ELSE
    chars_read_2 := 0;
    directions_2 := '';
    END IF;
    --Display the total number of characters read
    DBMS_OUTPUT.PUT_LINE('Characters read = ' ||
    TO_CHAR(chars_read_1+chars_read_2));
    --Display the directions
    DBMS_OUTPUT.PUT_LINE(directions_1);
    DBMS_OUTPUT.PUT_LINE(directions_2);
    END;
    sarah
    Edited by: S@R@h on Oct 7, 2009 11:29 PM

  • Jpeg images not displayed in forms 10G

    We have images (of different formats) stored in our Oracle 9i database. When we retrieve the images through a form, they display just fine using Forms 6i (client server) but the jpeg images (file extension .jpg originally) do not always display in our Forms 10G front end. What is most disconcerting is that the first image we display does display in the form, but trying to display multiple images at once does not work. The subsequent images display only as a dot in the middle of the space. Note that we also display thumbnails in the same form and this works. And if we retrieve the image from the database and "send" it to a third party product such as Image Pro or MS Photo Editor, it also displays fine. Any suggestions?

    Hi,
    can you re-create teh images. I remember having similar issues once, which then went away after I recreated the images. If you don't have other images soures than the gif, convert them from gif to jpeg and back. At least it is worth a try.
    If you open the icon jar file with winzip, does it show a path with the three icons? Sometimes when creating the jar, it happens that a path gets added with the icons.
    Frank

Maybe you are looking for