Call_form('theformname')

How can I use only 'theformname' without hardcoding the drive letter and path for the fmx file in the call_form command?

What I do : I store my path in a table and write a stored function GET_PATH(). GET_PATH() read my table and return my value.
Then : call_form(GET_PATH()| |'theformname');
Or best : create a procedure call_my_form :
PROCEDURE CALL_MY_FORM(FORMNAME IN VARCHAR2) IS
BEGIN
CALL_FORM(GET_PATH()| |FORMNAME,HIDE,DO_REPLACE);
END;
and call this procedure : call_my_form('theformname');

Similar Messages

  • Calling form in query mode

    Hello friends,
    I want to call a form B from Form A in query mode.
    And my all atributes r like
    new_record_instance of block
    IF :a.order_no IS NOT NULL AND :SYSTEM.RECORD_STATUS = 'QUERY' THEN
         SELECT COUNT(1)
         INTO n_cnt
         FROM a
         WHERE order_no = :a.order_no
         AND twp_po_no IS NOT NULL;
         --message(:SYSTEM.RECORD_STATUS ||' '||n_cnt);
         IF n_cnt > 0 THEN
    SET_ITEM_PROPERTY ('a.order_no', UPDATE_ALLOWED, PROPERTY_TRUE);
    SET_ITEM_PROPERTY ('a.order_date', UPDATE_ALLOWED, PROPERTY_TRUE);
    SET_ITEM_PROPERTY ('a.delivery_date', UPDATE_ALLOWED, PROPERTY_TRUE);
    end if
    And the calling the form in order_no(validate_item) with no_qery.
    Plz help me..
    thanx

    Did you try
    CALL_FORM(theformname,
    hide,
    no_replace,
    query_only,
    pl_id);
    Or any other combination with querY_only option ..

  • Startup

    I'm a new in Oracle Form. If I developed a few Oracle forms, how can I set one form as Startup ?

    it can be the login/root form that further calls other forms
    /* Example 1: ** Call a form in query-only mode.
    BEGIN
    CALL_FORM('empbrowser', no_hide, no_replace, query_only);
    END;
    /* Example 2:
    ** Call a form, pass a parameter list (if it exists)
    DECLARE
    pl_id PARAMLIST;
    theformname VARCHAR2(20);
    BEGIN
    theformname := 'addcust';
    /* Try to lookup the 'TEMPDATA' parameter list */
    pl_id := GET_PARAMETER_LIST('tempdata');
    IF ID_NULL(pl_id) THEN
    CALL_FORM(theformname);
    ELSE
    CALL_FORM(theformname,
    hide,
    no_replace,
    no_query_only,
    pl_id);
    END IF;
    CALL_FORM('lookcust', no_hide, do_replace, query_only);
    END;

  • Create a Menu Form

    Hi,
    I had create 13 Forms, but i want to create a First Form for when i "run form" appear this Form where i can choose what form i want to open, its possible?How?
    thank you
    Diana

    /* Example 1:
    ** Call a form in query-only mode.
    BEGIN
    CALL_FORM(’empbrowser’, no_hide, no_replace, query_only);
    END;
    /* Example 2:
    ** Call a form, pass a parameter list (if it exists)
    DECLARE
    pl_id PARAMLIST;
    theformname VARCHAR2(20);
    BEGIN
    theformname := ’addcust’;
    /* Try to lookup the ’TEMPDATA’ parameter list */
    pl_id := GET_PARAMETER_LIST(’tempdata’);
    IF ID_NULL(pl_id) THEN
    CALL_FORM(theformname);
    ELSE
    CALL_FORM(theformname,
    hide,
    no_replace,
    no_query_only,
    pl_id);
    END IF;
    CALL_FORM(’lookcust’, no_hide, do_replace, query_only);
    END;

  • Form path in call_form and compilation error and status bar.

    Dear all,
    what should be the path in the call_form?
    my forms (developed in form 6i) give error when i run it in forms 9i. i have already compiled. with the form 9i.
    the status bar is invisible when running in the browser.
    i am new to developer 9i.
    thanks
    Muhammad Nadeem

    Hi:
    When you call the forms in the subdirectories, you need to use the full path. Example:
    CALL_FORM('c:\forms\D1\some_form');
    Of course, you realize that this makes your forms less portable and could in the future cause more problems than it solves. Is there any reason you cannot just keep all your forms in one directory and possibly use a prefix to manage them if they belong to different sub-applications?
    Thomas

  • Forms 10.1.2.0.2: Web Form does not appear at Runtime with CALL_FORM

    Hello there,
    We have a number of forms we're executing as web forms using Oracle JInitiator 1.3.1.22. We have one form in particular that, when a button is pressed, is supposed to call another form via the CALL_FORM built-in.
    We are passing a parameter list to the new form, and executing the CALL_FORM built-in with these Setting Parameters:
    CALL_FORM( formmodule_name => '<OUR_FORM_NAME>',
               display         => NO_HIDE,
               switch_menu     => NO_REPLACE,
               query_mode      => NO_QUERY_ONLY );When we run the starting form as a web form (via JInitiator 1.3.1.22), and press the button to call the other form, all buttons on the starting form are greyed-out/disabled. The called form does not appear.
    I have carried out a number of checks with my own debugging tool (stored procedure writing messages to a table via an autonomous transaction), and forms focus is definitely been transferred to the called form. For example, the WHEN-NEW-FORM-INSTANCE trigger in the called form is definitely being executed.
    I suspect this problem is JVM-related rather than Forms-specific. My current plan of attack is to request the Application Server Logs tomorrow morning (I don't currently have access to them) and see if I can find any Java-related error messages. However, if any of you reading this have experience of this type of problem and can offer any assistance, please don't hesitate to let me know your suggestions/advice.
    Cheers.
    James

    You could check the settings of the window in the calling form. If its set to "Modal" or "Dialog", and the window in the called form has other settings, the new window might be opened "behind" the old window.

  • File upload demo / call_form / exit_form

    I have the file upload bean demo form working properly. Now I want to open the fileupload form as a modal window.
    However, if I call the fileupload form using call_form then the application hangs after uploading a file and then exiting the fileupload form.
    If I open the fileupload form using the open_form command then the exit_form works fine.
    Why won't call_form allow me to exit_form without hanging the application?

    If you install the 9i demos from OTN, they include the fileupload sample and the installation does all the setup for you including the classpath etc.

  • Webutil bean not found when using call_form with no_share_library_data

    Hi,
    I have two Forms modules and i navigate from Form A to Form B using a call_form.
    If i call Form B with NO_SHARE_LIBRARY_DATA param, i get a webutil error: "oracle.forms.webutil.file.filefunctions bean not found"
    If i call it with SHARE_LIBRARY_DATA, there no error and my webutil function works as expected.
    Webutil is used in our application are works well so i don't think that it's webutil config problem.
    Any idea?
    Tx

    Thanks for your answer.
    Now I'am a little bit further with my debugging but it's more strange! forget the share_library_data...
    I start a common form with webutil.pll attached and i will use the Webutil_File.File_Exists function for example
    if i call it in the WNFI or WNBI, i get the error
    if i call it via a push-button WBP for example, it works!
    below the java console ouput when i get the error and after pushing ok on the error
    Loading http://sdp6:7778/sdp-jar_dev/frmwebutil.jar from JAR cache
    Loading http://sdp6:7778/forms/java/frmall_jinit.jar from JAR cache
    RegisterWebUtil - Loading WebUtil Version 10.1.2.2
    Loading http://sdp6:7778/sdp-jar_dev/hst65.jar from JAR cache
    Loading http://sdp6:7778/sdp-jar_dev/sdpimage.jar from JAR cache
    Loading http://sdp6:7778/sdp-jar_dev/host.jar from JAR cache
    Loading http://sdp6:7778/sdp-jar_dev/jacob.jar from JAR cache
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    La version Forms Applet est : 10.1.2.2
    2008-janv.-10 18:02:24.711 WUI[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2008-janv.-10 18:02:24.727 WUI[VBeanCommon.getIPAddress()] 172.22.35.17
    2008-janv.-10 18:02:24.727 WUF[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2008-janv.-10 18:02:24.727 WUF[VBeanCommon.getIPAddress()] 172.22.35.17
    2008-janv.-10 18:02:24.743 WUH[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2008-janv.-10 18:02:24.743 WUH[VBeanCommon.getIPAddress()] 172.22.35.17
    2008-janv.-10 18:02:24.743 WUS[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2008-janv.-10 18:02:24.743 WUS[VBeanCommon.getIPAddress()] 172.22.35.17
    2008-janv.-10 18:02:24.758 WUT[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2008-janv.-10 18:02:24.758 WUT[SessionFunctions.init()] Max Transfer chunk size set to 4048
    2008-janv.-10 18:02:24.758 WUT[VBeanCommon.getIPAddress()] 172.22.35.17
    2008-janv.-10 18:02:24.977 WUO[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2008-janv.-10 18:02:24.977 WUO[VBeanCommon.getIPAddress()] 172.22.35.17
    2008-janv.-10 18:02:24.977 WUL[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2008-janv.-10 18:02:24.977 WUL[VBeanCommon.getIPAddress()] 172.22.35.17
    2008-janv.-10 18:02:24.977 WUB[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2008-janv.-10 18:02:24.977 WUB[VBeanCommon.getIPAddress()] 172.22.35.17
    AFTER PUSH OK on the error
    2008-janv.-10 18:07:12.977 WUI[getProperty()] Getting property WUC_BEAN_VERSION
    2008-janv.-10 18:07:12.977 WUI[getProperty()] Value of WUC_BEAN_VERSION=10.1.2.2
    2008-janv.-10 18:07:12.993 WUT[setProperty()] Setting property WUC_SRV_LOGGING to 0
    2008-janv.-10 18:07:12.993 WUT[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.jacob.dll
    2008-janv.-10 18:07:12.993 WUT[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
    2008-janv.-10 18:07:13.08 WUT[loadSettings()] Local properties file loaded
    2008-janv.-10 18:07:13.08 WUT[getProperty()] Value of WUC_GET_LOCAL_PROPERTY=1.0
    2008-janv.-10 18:07:13.08 WUT[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.JNIsharedstubs.dll
    2008-janv.-10 18:07:13.08 WUT[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
    2008-janv.-10 18:07:13.08 WUT[getProperty()] Value of WUC_GET_LOCAL_PROPERTY=1.0
    2008-janv.-10 18:07:13.08 WUT[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.d2kwut60.dll
    2008-janv.-10 18:07:13.08 WUT[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
    2008-janv.-10 18:07:13.08 WUT[getProperty()] Value of WUC_GET_LOCAL_PROPERTY=1.0
    2008-janv.-10 18:07:13.24 WUB[setProperty()] Setting property WUC_SRV_LOGGING to 0
    AFTER PUSH ON THE BUTTON THAT CALL THE SAME FUNCTION
    2008-janv.-10 18:07:34.758 WUF[setProperty()] Setting property WUF_FILENAME to c:\temp\1.txt
    2008-janv.-10 18:07:34.758 WUF[setProperty()] Setting property WUF_FILE_ATTRIBUTE to 1
    2008-janv.-10 18:07:34.758 WUF[getProperty()] Getting property WUF_FILE_ATTRIBUTE
    2008-janv.-10 18:07:34.758 WUF[getProperty()] Value of WUF_FILE_ATTRIBUTE=TRUE

  • Problem with Call_Form to Return to the Previous Screen with Saved Results

    Hello All,
    I have two forms (e.g. Form A & Form B) both forms have options to call one another with a Push Button included in the form. Our users want to be able to return to Form B from Form A with a previous search result and parameters saved in Form B. I was able to use the following code to make this happen:
    1. In Form B, I added the following code in the When-Button-Pressed Trigger for the 'PB_Return_2_Form_A' item:
    CALL_FORM('Form_A', HIDE,NO_REPLACE, NO_QUERY_ONLY);
    2. In Form A, I used the following code in the When-Button-Pressed Trigger for the 'PB_Return_2_Form_B' item:
    EXIT_FORM;
    The above code works beautifully when I enter form B first and search the database with all the required parameters entered, the parameters and search results were displayed upon return from Form A. But the problem is when I enter Form A first, the form exits abruptly. I tried to use pre-condition testing in Form A such as the following code:
    IF :GLOBAL.DWR01_First_Call = 'Y' THEN
    NEW_FORM('DWR_SEL', NO_ROLLBACK);
    :GLOBAL.DWR01_First_Call := 'N';
    ELSE
    EXIT_FORM;
    END IF;
    (BTW, I initialize the :GLOBAL.DWR01_First_Call variable to 'Y' in the 'When-New-Form-Instance' Triggers in the form level.) But the above code does not work. For some reason this :GLOBAL.DWR01_First_Call = 'Y' condition always gets executed such that the working part of code is by-passed.
    If any of you can help me on resolving my problem asap, I would really appreciate it.
    Thanks to you all in advance,
    Jinlan
    --

    Thanks all for the information and help. I have read through the information provided in the links above, and modified the global variable accordingly in both the calling and called forms, but all tries failed. From my failed attempts, I realize that my current design might not work because the value of GLOBAL.DWR01_First_Call seems to be 'Y' each time when Form A is called as such the 'EXIT_FORM' statement in the ELSE condition will never be executed. This intrigues me with the following questions:
    I. How do I use the debug in Forms 6i to step thru the values of a variable at a given execution state? (Although, I am pretty certain that the :GLOBAL.DWR01_First_Call value is always going to be a 'Y' each time when Form A is called, it would be nice if I could see it myself and not just guessing. :) )
    II. By now, I am pretty sure my current design may not work... How do I make my code to work for the situation I described above? For your convenience, I restate my situation again below and hopefully it will clarify my needs:
    Both Form A and Form B have options to call one another with a Push Button included in each form. Our users want to be able to return to Form B from Form A with a previous search result and parameters saved in Form B, and the following code works:
    1. In Form B, I added the following code in the When-Button-Pressed Trigger for the 'PB_Return_2_Form_A' item:
    CALL_FORM('Form_A', HIDE,NO_REPLACE, NO_QUERY_ONLY);
    2. In Form A, I used the following code in the When-Button-Pressed Trigger for the 'PB_Return_2_Form_B' item:
    EXIT_FORM;
    But, the above code kicks the user out of the application completely if the user enter Form A first and then select Form B by pressing the 'PB_Return_2_Form_B' push button(BTW, this access mechanism is most commonly used by our users). So, how do I allow users to enter Form A first and allow them to call Form B and proceed with entering parameters and search query, without exiting the form.
    Any and all the help you can provide on this will be greatly appreciated.
    Thanks millions in advance,
    Jinlan Tomasic
    [email protected]
    1(907)458-6899

  • Is it possible to override built-in forms procedures like call_form?

    hi, is it possible to override built-in forms procedures like call_form? i want to override an existing built-in procedure so i don't need to change all my .fmbs. thanks in advice

    Hi,
    You cannot override them. However, you can create a procedure within the package with the name call_form and use it as package_name.call_form instead of call_form (use the search and replace functionality to replace the call_form with package_name.call_form).
    -Arun

  • Web forms w/ patch 1 tree & call_form crash

    Hi there:
    I've done my homework and haven't come across anyone else w/ the same problem, so let me see if I can start a grass roots movement here.
    I've got a tree item in a 6i patch 1 web form that acts as a forms launcher. If you double-click a particular node I execute a call_form that looks something like this:
    call_form(form_name,NO_HIDE,NO_REPLACE,NO_QUERY_ONLY,SHARE_LIBRARY_DATA);
    That's what I want: a modal form w/ the calling form in the background. So far, so good, but while I was trying to break the system while having the called-form in focus, I clicked back in the tree item area (single-click, so no custom trigger was getting executed at all), and then everything disappears as if I exited both the called and calling form (client-end).
    The log gives me a dump w/ an excerpt like:
    [Thu Feb 15 18:02:06 2001 EST]::Client Status [ConnId=455, PID=27864]
    >> ERROR: Abnormal termination of connection, Error Code: 6
    FORM/BLOCK/FIELD: MAIN_DEFENDANT:GLANCE.GLANCE_TREE
    Last Trigger: WHEN-TREE-NODE-ACTIVATED - (Execution Suspended)
    Msg: <NULL>
    Last Builtin: CALL_FORM - (Successfully Completed)
    ------------- Call Stack Trace [ConnId = 455, ProcId = 27864] -------------
    Anyone else seen or more importantly overcome this?
    Thanks,
    Charlton

    I knew this would happen . . . came up w/ a solution by making the called forms' window modal=yes.
    I will see if this is what I really want, but I still think something may be wrong w/ the fact that the client simply crashes when navigating from a called_form to a tree object.

  • Execute query not working  in CALL_FORM

    Hi,
    I am opening FormA from FormB, when clicking a button, and pass the values to Form B,
    by using the global variables, and assigned these values in the pre-query of Form B, When clicking button Form B is
    opening, but nothing displaying, I need to click on Execute Query to get the data displayed.
    I am calling Form B by using CALL_form('FORMB.FMX');
    Statment In the WHEN-NEW-FORM-INSTANCE of Form B
         EXECUTE_QUERY; << This not working >>           
         GO_BLOCK('NRT_HEADER');
    Oracle & Forms Verison : 10g
    Thanks in advance
    Rizly

    Thanks Francois & Tony.
    The problem got solved by using NO_HIDE
    CALL_form('POPUP_NRT_FILE_HEADER.FMX',NO_HIDE);
    Now the data & form is visible, But when I click on the any other field ( other than the first field), the screen is becoming blank, again I need to click on the Execute Query button, but after that I can click on any other field it wont go invisible.
    THanks in advance
    Edited by: RizlyFaisal on Sep 25, 2008 2:30 AM

  • Call a form from another form using call_form,open_form,new_form

    I HAVE TWO FORMS 1)KOPT_MODULE WHICH IS CALLED FORM
    2)KOPT_SUB_MODULE WHICH IS CALLING FORM
    IN KOPT_SUB_MODULE I HAVE ONE TRIGGER
    1)WHEN BUTTON PRESSED
    DECLARE
    List_id ParamList;
    BEGIN
    List_id:= GET_PARAMETER_LIST('input_params');
    IF NOT ID_NULL(List_id) THEN
    DESTROY_PARAMETER_LIST(list_id);
    END IF;
    List_id := Create_Parameter_List('input_params');
         ADD_PARAMETER(list_id, 'emp_query', TEXT_PARAMETER, :MOD_ID);
    CALL_FORM('KOPT_MODULE', NO_HIDE, DO_REPLACE, NO_QUERY_ONLY, list_id);
    END;
    IN KOPT_MODULE I HAVE ONE TRIGGER
    1)WHEN NEW FORM INSTANCE
    if :parameter.cparam_cond is not null then
         BEGIN
              set_block_property('KOPT_MODULE',default_where,:parameter.cparam_cond);
              --:SYSTEM.MESSAGE_LEVEL:='25';
              execute_query;
         END;
         END IF;
    BOTH THE FORMS ARE AT SAME LOCATION "D:\Documents and Settings\Administrator\My Documents\PROJECT WORK"
    I DON'T WANT TO USE CALL_FORM('D:\Documents and Settings\Administrator\My Documents\PROJECT WORK');
    BUT WHEN I USE ABOVE TRIGGER A MESSAGE FRM-40010: CANNOT FIND FORM KOPT_MODULE
    PL TELL ME ELABORATELY WHAT TO DO IN KOPT_MODULE FORM WHICH IS CALLED FORM
    AND IN KOPT_SUB_MODULE WHICH IS CALLING FORM.
    SHALL I WRITE ANY OTHER TRIGGER OR CHANGE THE CODE?
    PL HELP ME TO SOLVE PROBLEM

    First of all, stop shouting. Writing everything in uppercase is regarded as shouting.
    Second, you didn't mention any version number, so please tell us your forms-version.
    Depending on your version, you have to set the environment variable FORMS45_PATH, FORMS60_PATH, FORMS90_PATH or FORMS_PATH either in the registry or in your env-file.

  • Function to change all form_specification within call_form

    Dear all,
    I am trying to find a solution to change all form_specification within call_form for an entire application, is there any possibility to create a function or what..it not efficient to do it by hand.
    Thank you!
    Micro
    LE: the puropse of this is to move my aplication from Win to Linux server
    Edited by: user10423661 on Aug 4, 2011 11:47 PM

    I came back wit the solution i used, i dev a function in order to call the form path..and call this function in every form. The same works with rdf and bmp.
    CREATE OR REPLACE FUNCTION x.s_forms(name varchar2)
    RETURN varchar2 IS
    vhost_name_actual varchar2(200);
    vbase_name s.base_name%type;
    vrute_name s.rute_name%type;
    str varchar2(100);
    BEGIN
    select SYS_CONTEXT('USERENV','HOST') into vhost_name_actual from dual;
    select s.base_name, s.rute_name into vbase_name, vrute_name
    from s
    where vhost_name_actual=s.host_name
    and s.activ='Y';
    str:=vroute_name||'fmx/'||name;
    return str;
    exception
    when others then
    return null;
    END s_forms;

  • Call_form problem in Forms 10g

    I am using Developer 10g R2. I tried to call a form named form1 from another form. But it can not open the form and shows the following error:
    FRM 40010: Can not read form form1.
    Then I tried other functions open_form, Go_form. But it does not work.
    I tried to find the solution from this forum, I found some posts but nothing helped.
    Oracle relases complex version day by day. Can anyone please help me?

    If you use CALL_FORM OPEN_FORM or NEW_FORM oracle needs to find the according fmx-file in the file-system. To not have to scan the whole servers file-system, you configure the directores where your forms are located in the env-file of your application (asuming you use forms10g). By default, this file is located in $ORACLE_HOME/forms/server/default.env (where $ORACLE_HOME is the directory you installed the developer-suite to). In tihs file, there is a setting FORMS_PATH. There you have to put the directory where your fmx's are located.

Maybe you are looking for