Using CALL_FORM

Hello Guys -
I have a very specific question to ask you guys. The reason why I am using CALL_FORM is because CALL_FORM allows the full execution of the calling procedure, vs OPEN_FORM. OPEN_FORM will disable any procedures arranged after the call to OPEN_FORM is done. I use the CALL_FORM built in to call a small calendar which people can double click on the date and populate the calling form's date fields. The problem is people keep clicking on the back on the calling form, which hides the calendar form behind the calling form and makes it appear that the calling form is "frozen". Apparently there is no parameter in the CALL_FORM built in that will disable outside form navigation.
I basically want to keep my client from being able to navigate outside the form that is being called, while showing the calling form at the same time. Does anyone know how to do that? I've looked into using WHEN-FORM-NAVIGATE, but that only fires when the form is navigated to, but not from. Thanks in advance!! Any help would be appreciated.

Hello,
If i understood properly you want to stop navigation between forms after calling the calendar form. Then go to the property of calender form's window and choose Window Style as Dialog and Modal as YES then run your form it will stop navigation after calling the calendar form.
-Ammad

Similar Messages

  • 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.

  • FRM-40010 - Cannot read form when using Call_form on Unix 9iAS

    Hi,
    I'm using 9iAS on a unix server. However, the main form calls several other forms using CALL_FORM('formnam'); but it cannot read any of the forms. I've ensured that they have all been compiled on the server. They compiled successfully.
    I've also ensured that they are all residing in the FORMS60_PATH. Although it can find the main form OK, it cannot read any of the other forms. They are all located in the same directory.
    What can be causing this error?

    Make sure that formname is the name of the .fmx file and that you use the same case as it is in the file system, because UNIX is case-sensitive.
    How are you setting FORMS60_PATH? If you're using the Forms Listener Servlet and are setting the FORMS60_PATH in default.env, be sure that the variable name is spelled correctly. In the early versions of default.env that came out, there was a typo: FORSM60_PATH. So if people didn't notice this and just uncommented the line and set the path, they would get FRM-40010.

  • 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

  • Using Call_Form - want to retain data in existing calling Form

    Hi All,
    I would be grateful for assistance with the following scenario:
    Form A calls Form B and when user presses 'SAVE' (not to commit to the database) button in Form B then customer
    wants the program to return to Form A, commit current pending changes on Form A and then
    return to Form B and commit changes there.
    At the moment when the program goes back to Form A then understandably When New Form instance
    fires and the program will retrieve records from the database however that is not what I want. I want the
    records on the Form to be that which they were prior to calling Form B and as such for a commit to be applied
    to these added/changed records.
    Then, likewise I can call Form B but again I want the current records on Form B to then be applied to the
    database.
    I don't want to use EXIT_FORM in Form B to go back to Form A because the changes in Form B will be lost and
    I don't want to commit changes in Form B prior to committing changes in Form A due to business reasons that the
    customer has given.
    So really I was just wondering if either with Call_Form or another method there was a way of retaining the data on
    the calling form when calling another form?
    Your help would be much appreciated.
    Kind Regards

    At the moment when the program goes back to Form A then understandably When New Form instance firesNo, it does not. Control goes exactly to the codeline after the CALL_FORM
    But anyway, your scenario will not work the way you have it now. If you want to return from B to A you will have to do an EXIT_FORM and therefore loose all outstanding changes in Form B.
    Two possible solution i can think of:
    1. Merge the two forms into one and make the items of Form B appear in a different window. For the user it will look the same, but you can issue one COMMIT_FORM and both changes will be applied. I would go with this approach
    2. Issue a POST in Form A before calling Form B. Then, if users saves in Form B, issue another POST and set some flag. When returning to Form A, check that flag and issue a COMMIT_FORM to make changes permanently. If Form B is left without saving you may have to do a ROLLBACK or leave the form with EXIT_FORM(ROLLBACK);

  • Oracle Forms using call_forms

    I am modifying a form to add call_forms. While running the form in query, it displays an error for calling a form. If I commit the form before calling the
    new form, it works ok. Any idea how to call the form without committing.
    Thanks

    Hello,
    What you mean by running form in query ? As far as i am getting you is that you are opening your form in enter query mode and from there you are trying to call a another form.
    If this is the case then you are lacking in concepts. You can never move out of block in the enter query mode. For performing any other operations besides making query, you have to come out of the query mode.
    You can coem out out of query mode by pressing button with proper code of pressing "X" on the corner of forms window.
    In your case i asume that you are coming out of enter quey mode by pressing the commit button. But this should be displaying message "NO CHANGES TO SAVE". So, by this way you come out of enter query mode and hence able to call a new form.
    For solving this problem first come out of enter query mode and then call other form.

  • Case sensitivity in using OPEN_FORM, CALL_FORM on web deployed forms

    Just A Quick Note,
    Make sure the case of the form name when using CALL_FORM, OPEN_FORM is the same as the case of the filename on the UNIX box.
    We spent quite a bit of time trying to find out why our CALL_FORM and OPEN_FORM command were giving the following error:
    FRM-40010 Cannot read form "XXXXXX"
    It turns out that we were using all caps in the OPEN_FORM build-in, but the filename was in lower case.
    Anton Ochss
    Great Lakes Gas Transmission

    hello,
    check out our product-area on OTN
    http://otn.oracle.com/products/reports
    there you find a whitepaper on integration between forms and
    reports on the web.
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • 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.

  • 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_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.

  • Call_form problem oracle form 10g

    Hi,
    We create some forms. Next Using Call_form in menu bar we call another form, next we call another form.
    Example:
    Form A -> Form B -> Form C
    It's working fine.
    But, 'Form C' did not retrieve all data.
    EXAMPLE:
    'WHEN-NEW-FORM-INSTANCE' - TRIGGER
    Query : "SELECT NO, NAME, MOBILE INTO :EMP.NO, :EMP.NAME, :EMP.MOBILE FROM EMP".
    The above query did not work. Only Display First Record, First Column Data(:EMP.NO).
    If i open the same 'Form C' in directly. It's working fine.
    What is the problem? How can i solve this problem?

    I try Your Solution, it's not working.
    Code:
    Declare
    CURSOR PRE_CUR IS
    SELECT PRE_CHAR_PRODUCT_MASTER,
    PRE_NO_PRODUCT_MASTER,
    PRE_CHAR_CUSTOMER_MASTER,
    PRE_NO_CUSTOMER_MASTER
    FROM PREFIX_MASTER;
    ITEM1 NVARCHAR2(100);
    ITEM2 NUMBER;
    ITEM3 NVARCHAR2(100);
    ITEM4 NUMBER;
    BEGIN
    OPEN PRE_CUR;
    FETCH PRE_CUR INTO ITEM1, ITEM2, ITEM3, ITEM4;
    :PREFIX_MASTER.PRE_CHAR_PRODUCT_MASTER := ITEM1;
    :PREFIX_MASTER.PRE_NO_PRODUCT_MASTER := ITEM2;
    :PREFIX_MASTER.PRE_CHAR_CUSTOMER_MASTER := ITEM3;
    :PREFIX_MASTER.PRE_NO_CUSTOMER_MASTER := ITEM4;
    CLOSE PRE_CUR;
    END;
    . I have another form. In this form Master/Detail . Detail have 6 Column.
    When i click 'When-Button-Pressed' Trigger. I am using Cursor(Select Statement) and FOR Loop(Fetch data to fields).
    The Detail block only display first 2 column data.
    If i open same Form, directly(Using Form Builder) , it's working fine. Retrieve all record and displayed all column.
    Why? How to solve this problem.

  • Execution process CALL_FORM

    When we are using call_form('form_name') what are the steps that the forms runtime will follow?
    Will it execute the form level trigger and then bolck level triggers? Can i know the steps involved when we use call_form('form_name').
    Please let me know of any documentation that explains this.
    My scenario is
    I have a form with a button. when i click on the button a button trigger is fired and it will call another form using call_form. the called form is having one form level trigger WHEN-NEW-FORM-INSTANCE . i gave some alerts to be displayed in the PL/SQL block of the tirgger. but when i run the form . I am not able to see the alerts poped out.
    Is there any way to know what query is fired to the database when we use execute_query on a block.
    Many Thanks
    Suresh
    Edited by: user2359946 on 02-Oct-2009 09:18

    hi try this.
    on-error trigger.
    DECLARE
    errcode NUMBER := ERROR_CODE;
    dbmserrcode NUMBER;
    dbmserrtext VARCHAR2(200);
    BEGIN
    IF errcode = 40508 THEN
    ** Form Builder had a problem INSERTing, so
    ** look at the Database error which
    ** caused the problem.
    dbmserrcode := DBMS_ERROR_CODE;
    dbmserrtext := DBMS_ERROR_TEXT;
    IF dbmserrcode = -1438 THEN
    ** ORA-01438 is "value too large for column"
    Message(’Your number is too large. Try again.’);
    ELSIF dbmserrcode = -1400 THEN
    ** ORA-01400 is "Mandatory column is NULL"
    Message(’You forgot to provide a value. Try again.’);
    ELSE
    ** Printout a generic message with the database
    ** error string in it.
    71
    Message(’Insert failed because of ’||dbmserrtext);
    END IF;
    END IF;
    END;
    On-error trigger.
    DECLARE
    errnum NUMBER := ERROR_CODE;
    errtxt VARCHAR2(80) := ERROR_TEXT;
    errtyp VARCHAR2(3) := ERROR_TYPE;
    BEGIN
    IF errnum = 40301 THEN
    Message(’Your search criteria identified no matches...
    Try Again.’);
    ELSIF errnum = 40350 THEN
    Message(’Your selection does not correspond to an
    employee.’);
    ELSE
    ** Print the Normal Message that would have appeared
    ** Default Error Message Text Goes Here
    Message(errtyp||’-’||TO_CHAR(errnum)||’: ’||errtxt);
    RAISE Form_trigger_Failure;
    END IF;
    END;
    sarah

  • Urgent help needed(call_form in the web_form)

    Dear College,
    I have scussfully set up the form run in the web using
    Jinitiator.
    However, after I started a form in the client browser,
    I can not call another form using call_form.
    Can anyone advise me how to do it?
    Thanks in advance
    Ming Liu
    null

    If the system really needs to go in for service to remove the CD, then you don't need to sent it to Apple, you can simply take it to an Apple dealer, or a local Apple Approved Service Provider (usually listed in the phone book, but you can also locate them (in the UK) via the page at http://www.apple.com/uk/buy/locator/ changing 'you want to:' to 'find service' and then entering your postcode.
    You may, however, be able to get the stuck CD out yourself. You describe the system as sounding as if it's trying to eject, which sounds like the disc may be fouling the inside of the casing. When that happens, the system then tries to suck the disc back in because it can't eject it. Using something thin but fairly stiff (a business card sometimes works) insert that about half an inch, angled a little upwards to see if you can help guide the disc back out when it ejects. If that doesn't work, angle it downward and try again.

  • Forms 6i debug and call_form

    In Forms 6i, I have a form that calls another form using call_form. When debugging, I can set breakpoints in the calling form, but there seems to be no way to continue debugging into the called form.
    Or is there...? Can you help...?

    Hi,
    you can use the message level for tracing your call_form issue in order to know the business flow of your form how it works.
    such as:
    message(' ');
    fnd_message.debug(' ');
    Regards
    Omar

  • Call_form,how to recognis input by called form

    I am using call_form.
    I am making a parameter list in calling form and passing it to a other form. But how the other form will recognize those parameter? please tell me.

    Hi,
    You need to create the parameter(s) on your target form and some code to make use of it:
    1.- Open the form module and find the Parameters node
    2.- Create the Parameter(s) needed. make sure the parameter name is the same used in the caller form and set the data type and maximum length as required.
    3.- Add a code snippet to trigger when-new-form-instance:
    begin
         if :parameter.YOUR_PARAMETER is not null then
         go_block('YOUR_DATA_BLOCK');
         execute_query;
         end if;
    Exception
    when others then
    message('Error setting form parameters. '||sqlerrm, no_acknowledge);
    end;
    4.- On YOUR_DATA_BLOCK pre-query trigger add:
    begin
    If :Parameter.YOUR_PARAMETER is not null then
    :YOUR_DATA_BLOCK.BLCOK_ID := TRIM(:Parameter.YOUR_PARAMETER);
    End if;     
    Exception
    when others then
    message('Error setting parameters. '||sqlerrm, no_acknowledge);
    end;
    Regards,
    Hugo

Maybe you are looking for

  • My iPod cannot work with Windows Vista

    I've updated iTunes to version 7.1.1. But my computer is hung up when I connected my iPod to it. I can do nothing except restart the computer and disconnect iPod from it. Can anyone tell me why? HP v7058hk   Other OS   OS is Widows Vista Home Premium

  • Issue in Call Forward to Voicemail

    Hi, I am facing an issue in my cisco telephony while making one phone forward to another phone. Below is the Scenario. I have 2 phones, A & B , i have forwarded all calls of Phone A to Phone B. So when i call Phone A its gets forwarded and rings on P

  • Can we automate Cost recognision in Standard SAP in automated way

    Hi SAP Gurus, We have activated Deferred Revenue in our system which is working fine and we can analyze the deferred revenue.Now we want to analyze deferred cost for the same automatically-we have activated COPA as well Requirement – Cost should be b

  • IMac G4 Booting Problem

    After 6 years of trouble-free service, my iMac (17" G4, 1.25 Ghz) won't boot past the gray screen with the apple and the spinning ball. It was running on 10.5.8. I've tried everything I could find in the Apple troubleshooting articles, including rese

  • Using ChooseFromList when form is in Find mode

    Hello, I'm trying to use a ChooseFromList to select a Sales Person (there is also an Udo in the form). It works fine when the form is in add mode or in update mode, but when I change to find mode, the form to select doesn't appear. How could I show t