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

Similar Messages

  • How get the name of calling form

    Hi to All,
    I have 2 forms, for example A_FORM and B_FORM.
    With a button A_FORM call B_FORM.
    How can initialise in B_FORM a variable with the name of calling form A_FORM ?
    Thank You and Best Regards.
    Gaetano

    Hi Meegada
    You have understood right.
    In B_FORM the trigger WHE-NEW-FORM-INSTANCE call a procedure INIT_LIST, like this:
    PROCEDURE Init_List (A_FORMNAME IN VARCHAR2(200)) IS
    Cursor LeRows IS
    Select *
    From MYTABLE
    Where (MYTABLE_CODE = :BL.CODE) AND (MYTABLE_FORM = A_FORMNAME)
    ORDER BY MYTABLE_CODE ;
    BEGIN
    END;
    A_FORMNANE is the name of the calling form A_FORM.
    How can in form B_FORM initialise the var A_FORMNAME ?
    Thank You.
    Greetings..
    Gaetano

  • Timeout javabean and called form?

    I have a 10g form that acts as a menu and calls other forms using the call_form built-in. I would like to add the timeout javabean that is included in the 10g demos, but was wondering if I needed to add it to all of the forms or could I just add it to the main menu form? Does anyone know how this bean works with called forms?

    Hi,
    Would you tell me the steps to add TimeOut PJC to a form? I' have some errors in Oracle Forms Builder when running the form.
    java.lang.NullPointerException
         at oracle.forms.demos.TimeoutPJC._addMouseListeners(TimeoutPJC.java:208)
         at oracle.forms.demos.TimeoutPJC.init(TimeoutPJC.java:180)
         at oracle.forms.handler.UICommon.instantiate(Unknown Source)
         at oracle.forms.handler.UICommon.onCreate(Unknown Source)
         at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
         at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
         at oracle.forms.engine.Runform.startRunform(Unknown Source)
         at oracle.forms.engine.Main.createRunform(Unknown Source)
         at oracle.forms.engine.Main.start(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    thanks for your help.
    best regards,
    TT

  • Is The Current Called Form Running in Query Only Mode?

    How can identify the current called form is running in either QUERY_ONLY / NO_QUERY_ONLY MODE progrmatically?

    You can use :system.form_status to check for this. Be aware that this can change quite frequently throughout navigational processes both visibly and "behind the scenses"
    n

  • Called form crashes, when called with default option

    Here is the problem statement.
    My problem is regarding the called_form built-in function of Oracle forms.
    I am calling call_form within a loop.
    call_form('schdule_task');
    In first iteration it opens the called form and when the user clicks on exit button it comes back to the calling form and starts next iteration.But in next iteration the called form comes up and crashes immediately, causing the application to crash.
    The calling form does not get a chance to become visible because by default call_form executes with 'HIDE'(hide the calling form) option.
    Now if I execute the above mentioned call_form statement with "NO_HIDE" option then the called form does not crash in any of the iteration and the loop runs fine till the end.
    call_form('schdule_task',NO_HIDE);
    What can be the problem? Is it related to call_form call or something else?

    Here is the problem statement.
    My problem is regarding the called_form built-in function of Oracle forms.
    I am calling call_form within a loop.
    call_form('schdule_task');
    In first iteration it opens the called form and when the user clicks on exit button it comes back to the calling form and starts next iteration.But in next iteration the called form comes up and crashes immediately, causing the application to crash.
    The calling form does not get a chance to become visible because by default call_form executes with 'HIDE'(hide the calling form) option.
    Now if I execute the above mentioned call_form statement with "NO_HIDE" option then the called form does not crash in any of the iteration and the loop runs fine till the end.
    call_form('schdule_task',NO_HIDE);
    What can be the problem? Is it related to call_form call or something else?

  • How to give input parameter to application form through se38 program?

    Hi all,
    How can i call my application form from within my se38 program?
    is there any way then please tell me?
    and how to pass input parameters to application form through se38 program?
    Thanks and Regards,
    Arpita.

    Hi you can pass the parameter using application program. You can pass the value using the interface of the function module given below.
    parameter p_matnr type  mara-matnr.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = gc_smart_form 'Name of ur smart form
          variant            = ' '
          direct_call        = ' '
        IMPORTING
          fm_name            = lv_fmname
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      IF sy-subrc NE  0.
        MESSAGE ID sy-msgid TYPE 'E'
                          NUMBER sy-msgno
                            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    CALL FUNCTION lv_fmname
    EXPORTING
      control_parameters         = gs_ssfctrlop
      output_options             = gs_ssfcompop
      user_settings              = ' X'
    **---This is where u can pass ur paramter to the smart form*
      matnr                           = p_matnr.
    called from batch job
    EXCEPTIONS
    formatting_error           = 1
    internal_error             = 2
    send_error                 = 3
    user_canceled              = 4
    OTHERS                     = 5            .
    Thanx and hope this would help.
    Regards,
    Aruna
    Edited by: Aruna Kumari Chekka on Dec 12, 2008 6:24 AM
    Edited by: Aruna Kumari Chekka on Dec 12, 2008 6:29 AM

  • How to Automate the Query Search Upon Return to the Calling Form?

    Greetings Ya’ll Gurus,
    Could you please share with me how to make the Query Search executed automatically each time, when database table is updated, upon return to the “Calling Form” (i.e. FormA in this posting) from the “Called Form” (i.e. FormB from here on)?
    I have FormA call_form to FormB. FormB may return to FormA. FormA allows users to enter the Query parameters and perform query Search to the database table with a list of search results afterward; whereas FormB allows users to add or delete the same database table records. Both form images are as follows:
    FormA:
    !http://dot.state.ak.us/nreg/jtomasic/FormA_DWR_SEL.GIF!
    FormA call_form to FormB by clicking PB “Daily Work Report” (see circled PB "Daily Work Report" in the above image.)
    FormB Image (FormB allows users to add and delete database records):
    !http://dot.state.ak.us/nreg/jtomasic/FormB_DWR.GIF!
    FormB EXIT_FORM and returns to FormA (see circled PB "DWR Selection" in above image).
    Currently, our users must press the PB “Search” on FormA each time to refresh the Query “Search” results after returning to FormA, and they request to have the "Search" done automatically/programmatically upon return to FormA each time when the database table is updated.
    If you have programming code on this and are willing to share or if you have any suggestion or thoughts on this, it would be most greatly appreciated.
    Thanks a lot & Happy Holidays!

    Thanks so much Andreas, and yes, your link for calling a form and passing a context is very helpful. I believe, your suggested use of the global variable for the saved database table will work for the automation of the Query Search. I am, however, not sure how to make the code and the trigger to automatically perform Query PB "Search". The code for our current "WHEN-BUTTON-PRESSED" Trigger for the PB-Search of FormA is as following:
    DECLARE
         alert_button     NUMBER;
         alert_id               ALERT;
      MY_WHERE VARCHAR2(2500);
      MY_DIST_ID         DIST.DIST_ID%TYPE     := :BLK_UPDATE.DIST_ID;
      MY_ORG_ID          DWR.ORG_ID%TYPE       := :BLK_UPDATE.ORG_ID;
      MY_ACTY_ID         DWR.ACTY_ID%TYPE      := :BLK_UPDATE.ACTY_ID;
      MY_ACTY_WORK_ID    DWR.ACTY_WORK_ID%TYPE := :BLK_UPDATE.ACTY_WORK_ID;
      MY_CNTY_ID         DWR.CNTY_ID%TYPE      := :BLK_UPDATE.CNTY_ID;
      MY_ASSET_GRP_ID    DWR.ASSET_GRP_ID%TYPE := :BLK_UPDATE.ASSET_GRP_ID;
      MY_ASSET_ID        DWR.ASSET_ID%TYPE     := :BLK_UPDATE.ASSET_ID;
      MY_RTE             DWR.RTE%TYPE          := :BLK_UPDATE.RTE;
      MY_BEG_MP          DWR.BEG_MP%TYPE       := :BLK_UPDATE.BEG_MP;
      MY_END_MP          DWR.END_MP%TYPE       := :BLK_UPDATE.END_MP;
      MY_FROM_DATE       DWR.DWR_DATE%TYPE     := :BLK_CONTROL.FROM_DATE;
      MY_TO_DATE         DWR.DWR_DATE%TYPE     := :BLK_CONTROL.TO_DATE;
      MY_FLAG_OFFSYS     VARCHAR2(11)          := :BLK_UPDATE.FLAG_OFFSYS;
      MY_FLAG_COMMENTS   VARCHAR2(11)          := :BLK_UPDATE.FLAG_COMMENTS;
      MY_SPECIAL_EVENT_SEQ_NO SPECIAL_EVENT.SPECIAL_EVENT_SEQ_NO%TYPE  := :BLK_UPDATE.SPECIAL_EVENT_DESCR;
      MY_FLAG_ACCDT      VARCHAR2(11)          := :BLK_UPDATE.FLAG_ACCDT;
    BEGIN
    :blk_control.dummy_flag := 1 ;
    :BLK_CONTROL.DUMMY_ERR_FLAG := 'N';
    VALIDATION_SELECTION;     -- Program Unit VALIDATES DWR SELECTION PARAMETERS PRIOR TO
                                                    -- PERFORMING THE SEARCH AND POPULATING THE DISPLAY BLOCK
    if :blk_control.dummy_flag = 1 then
      IF :BLK_CONTROL.DUMMY_ERR_FLAG = 'N' THEN
        MY_WHERE := BUILD_WHERE_CLAUSE(MY_DIST_ID,
                                       MY_ORG_ID,
                                       MY_ACTY_ID,
                                       MY_ACTY_WORK_ID,
                                       MY_CNTY_ID,
                                       MY_ASSET_GRP_ID,
                                       MY_ASSET_ID,
                                       MY_RTE,
                                       MY_BEG_MP,
                                       MY_END_MP,
                                       MY_FROM_DATE,
                                       MY_TO_DATE,
                                       MY_FLAG_OFFSYS,
                                       MY_SPECIAL_EVENT_SEQ_NO,
                                       MY_FLAG_ACCDT,
                                       MY_FLAG_COMMENTS);
        SET_BLOCK_PROPERTY('BLK_DISPLAY', DEFAULT_WHERE, MY_WHERE);
        GO_BLOCK('BLK_DISPLAY');
        CLEAR_BLOCK(NO_VALIDATE);
        EXECUTE_QUERY(ALL_RECORDS);
        IF :BLK_DISPLAY.DWR_SEQ_NO IS NOT NULL THEN
                   SET_ITEM_ON_OR_OFF('BLK_CONTROL.PB_PRINT', TRUE);
        ELSE
                   SET_ITEM_ON_OR_OFF('BLK_CONTROL.PB_PRINT', FALSE);
                   alert_id := FIND_ALERT('no_data_query');
                   IF ID_NULL(alert_id) THEN
                        error_msg(1000);
                   ELSE
                        set_alert_message(alert_id, 1040);
                        alert_button := SHOW_ALERT(alert_id);
                   END IF;
              END IF;
              GO_BLOCK('BLK_UPDATE');
              GO_ITEM('BLK_CONTROL.PB_SEARCH');
         END IF;
    end if;
    END;My questions are:
    After initializing, set and/or reset the global variable for the saved database table,
    do I copy the above code (i.e. the "entire" code in the "WHEN-BUTTON-PRESSED" Trigger for the PB-Search) to the WHEN-NEW-FORM-INSTANCE-trigger, or other trigger(s), of FormA to automate the Query Search whenever there is a successful database commit/save? Or
    is there a simple way to activate the code in the "WHEN-BUTTON-PRESSED" Trigger for the PB-Search of FormA? Or
    is there a simple way to activate the EXECUTE_QUERY(ALL_RECORDS) command in the WHEN-NEW-FORM-INSTANCE-trigger or other trigger(s) of FormA ?
    Thanks and always.

  • When i close called form. i want to refresh calling form.but how?

    i am using call_form ( name_in(':Global.App_Path')|| file_name, hide, Do_replace, no_query_only,pl).
    when i close called form. i want to refresh calling form.
    how can i do it.

    You have a block called : EMP, so you have to re-query-it with the following:
    Go_Block('EMP');
    execute_query ;Francois

  • LOVs again!  How to return multiple fields to calling form

    Hi
    Newbie question, any help GREATLY appreciated :)
    Is there a simple and easy way to return more than one field from a LOV.
    I need this as I have a composite fk comprised of 2 fields, and as such need to return 2 fields from the LOV to the calling form.
    (My environment: JDeveloper 9.0.5.2 build 1618)
    CM

    Thanks, you put me on the right track here. Further investigations show the following sample provided by OTN shows how to use both the session request/response values or a JavaBean to do this:
    http://www.oracle.com/technology/sample_code/products/jdev/10g/ADF_UIX_UserInput.zip
    As such I post my solution to my original post. Hopefully it's useful to someone beside myself. I have to write up my notes anyhow so it's no fuss to submit them to the forum. I must admit I'm a newbie and slightly demented Forms programmer so such solutions aren't so obvious to me. With this in mind please include the "standard disclaimer" here, with the addition "mileage may vary" warranty.
    For these notes I've used the "HR" demo Oracle schema. In particular the tables departments and employees. As you know there is a master-detail relationship between these 2 tables, where each department may have one or more employees.
    We have the requirement on a webpage to:
    1) Provide an input-form-with-navigation to edit the employees.
    2) Display the relating department_name field, rather than just showing the department_id which is meaningless to the user. For example if the employees.department_id = 40, we wish to show the department name "Human Resources" on the employees record.
    3) Provide a LOV for the department ID field to allow the user to change the underlying department_id to a different master departments record.
    4) Update 2) given a change via 3).
    To do this do the following:
    Entity Objects
    1) Create default EO/VOs on both tables.
    2) In the employees EO, create a new field "DepartmentName" to represent the derived department name field.
    3) Set the new EO attribute's selected-in-query field.
    4) In the query-column-expression field, enter a query to derive the department name field for each record in the detail-employees-EO.
    eg. (SELECT dpt.department_name FROM departments dpt WHERE dpt.department_id = employees.department_id)
    Ensure to include the brackets.
    5) Apply the changes and accept the warning to create default data-type settings for the new attribute.
    View Object
    6) In the employees VO, include the new field DepartmentName as a selected attribute from the EO.
    7) Apply the changes and accept the warning to create default data-type settings for the new attribute.
    8) Test the model by running the ADF BC tester. Once running select the employees VO and step through the records, making sure the DepartmentName field has a value and changes appropriately according to the relating parent department_id.
    UIX input-only-form
    9) Create a new UIX web page employeesEdit.
    10) From the data-control pallete, drag in the employees VO as an input-form-with-navigation.
    11) For testing purposes it is also useful to have a create, delete, commit and rollback button, so includes these too.
    12) Within the employees VO data-control, also drag across a messageLovInput for the DepartmentId. Position it under the existing DepartmentId messageTextInput within the UIX page. We'll remove the existing messageTextInput later, but it's useful to leave it in for testing purposes initially when the LOV returns values.
    UIX LOV
    13) Navigate to the default LOV page that has just been created for you.
    14) Within the data-control pallete, expand the departments VO, select department ID then LOV-table from the drop-down, and drag this item onto the LOV page.
    15) Save your changes.
    16) Run your application. For an existing employee, invoke the department LOV and select an alternative department. Note on returning to the employees page the DepartmentID (both the messageTextInput and messageLovInput fields) are updated, but the DepartmentName is not. To do this we need to create a JavaBean to return multiple fields from the LOV to the original form.
    JavaBean
    17) Within your ViewController project, expand the ApplicationSources-View node.
    18) Select the new button, and create a standard JavaBean.
    19) Name the bean DepartmentsLov.
    20) Via the class editor, add 2 private scope fields DepartmentId and DepartmentName with String data-types, ensuring the create get/set method checkboxes are checked.
    21) Make and save your changes.
    22) From the navigator drag the newly created java file into the data-control palette.
    UIX LOV
    23) Return to the LOV webpage.
    24) Your LOV page will have a lovSelect event handler something like the following:
    <event name="lovSelect">
    <set property="inputValue"
    value="${bindings.DepartmentId.inputValue}"
    target="${data.employeesEdit.DepartmentId}"/>
    25) Change the lovSelect as follows:
    <event name="lovSelect">
    <compound>
    <set property="inputValue"
    value="${bindings.DepartmentId.inputValue}"
    target="${data.employeesEdit.DepartmentId}"/>
    <set value="${bindings.DepartmentId.inputValue}"
    property="inputValue"
    target="${bindings.JavaBeanDepartmentId}"/>
    <set value="${bindings.DepartmentName.inputValue}"
    property="inputValue"
    target="${bindings.JavaBeanDepartmentName}"/>
    </compound>
    26) Within the UI model navigator, right-click on the top node, then create-binding, input, text field.
    27) Select the AppModuleDataControl, then DepartmentView, then the DepartmentName field, and then the ok button.
    28) In the UI model select the new field, then in the structure pane rename the field to DepartmentName.
    29) Within the UI model navigator, right-click on the top node, then create-binding, data, iterator.
    30) Select the DepartmentsLovDataControl and name the new iterator DepartmentsJavaBeanIterator.
    31) Again in the UI model navigator, right-click on the top node, then create-binding, input, text field.
    32) Select the DepartmentsLovDataControl then departmentId field, then the ok button.
    33) In the UI model select the new field, then in the structure pane rename the field to JavaBeanDepartmentId.
    34) Again in the UI model navigator, right-click on the top node, then create-binding, input, text field.
    35) Select the DepartmentsLovDataControl then departmentName field, then the ok button.
    36) In the UI model select the new field, then in the structure pane rename the field to JavaBeanDepartmentName.
    UIX input-only-form
    37) Return to the main employeesEdit UIX form.
    38) Your UIX page will have a lovUpdate event handler something like the following:
    <event name="lovUpdate">
    <null/>
    39) Change the lovUpdate as follows:
    <event name="lovUpdate">
    <compound>
    <set value="${bindings.JavaBeanDepartmentId.inputValue}"
    property="inputValue"
    target="${bindings.DepartmentId}"/>
    <set value="${bindings.JavaBeanDepartmentName.inputValue}"
    property="inputValue"
    target="${bindings.DepartmentName}"/>
    </compound>
    </event>
    40) Repeat steps 29 through 36 for this page.
    41) Within the UIX page find the entries for the departmentId LOV, and the DepartmentName. They should look something like the following:
    <messageLovInput id="${bindings.DepartmentId.path}"
    model="${bindings.DepartmentId}"
    destination="lovWindow1.uix"/>
    <messageTextInput model="${bindings.DepartmentName}"
    columns="10"/>
    42) Modify these 2 entries as follows:
    <messageLovInput id="DepartmentId"
    model="${bindings.DepartmentId}"
    destination="lovWindow1.uix"
    partialRenderMode="multiple"
    partialTargets="DepartmentId DepartmentName"/>
    <messageTextInput id="DepartmentName"
    model="${bindings.DepartmentName}"
    columns="10"/>
    43) Finally delete the original DepartmentId messageTextInput field, leaving the DepartmentId messageLovInput.
    Testing
    44) Open your UIX input-only-form.
    45) Call the LOV and change the department for an existing employee record.
    46) Return to the employees page and note that the department ID and name have changed.
    47) Commit your changes.
    48) With your favourite data inspection tool (a'la Toad), check that the employee record's department ID has been appropriately saved to the database.
    <The End>
    Phew!

  • How to validate input fields as the user is filling up a form with jQuery?

    Hello EA friends.
    Someone has experimented on how to validate input fields as the user is filling up a form with jQuery?, if the field is numeric and insert an A for example, an alert appears showing "insert a number" or not allowed to enter anything until a number is entered.
    Thanks and regards.
    Fer

    Hi Sudeshna.
    Sorry for not responding on time, how can I be included in this code?
    sym.setVariable("typeActivity", "input")
    var Element_1=document.createElement(typeActivity);
    $(Element_1).css({"text-align": "center"});
    //Answer
    sym.setVariable("Answer_1", "4");
    sym.$("box_1").append(Element_1)
    This code is on my creationComplete and it works fine.
    Would greatly appreciate your help.
    Regards.
    Fer García

  • How to call forms using Hierarchical Tree in Forms 10g?

    I know how to call forms from menu that attached to a top form.
    I would like to call forms using Hierarchical Tree. Does any one know how where I can find some instructions on using Hierarcical Tree to call other forms? Any discussion is welcome. Thanks.

    Thanks to Francois.
    The exampe with clear instructions and I can build tree that calls forms now.
    I add a OPEN_FORM statement in WHEN-TREE-NODE-ACTIVATED trigger
    Declare
         LN$I Pls_integer ;
    Begin     
    :Ctrl.Node_Activated := Ftree.Get_Tree_Node_Property('BL_TREE.MENU', :SYSTEM.TRIGGER_NODE, Ftree.NODE_VALUE) ;
    If :Ctrl.Node_Activated IS NOT NULL Then
         Set_Alert_Property( 'AL_CALL_FORM', ALERT_MESSAGE_TEXT, 'Calling module : ' || :Ctrl.Node_Activated ) ;
         LN$I := Show_Alert( 'AL_CALL_FORM' ) ;
         open_form(:Ctrl.Node_Activated);
    End if ;
    End ;
    Or call physical form path by:
         open_form('c:\tree\'||:Ctrl.Node_Activated ||'.fmx');
    I enter the VALUE of MENU as the Form fmx name and it works very well.
    Thanks so much.

  • Hi all how to call form

    Hi all
    I have a master form and there are lots of connected forms
    what should i write when i want come back to the master form from other forms
    i wrote this code it just exit the form but did't call the master_form
    EXIT_FORM(NO_COMMIT);
    call_FORM('C:\test_report\final_to_be_added_to_main\MASTER_FORM_TRIAL');please suggest
    Thanks And Regards
    Vikas Singhal
    Edited by: vikas singhal on Jul 21, 2009 6:39 PM

    Hai,
    The form window name means, the name of the window. (Like Window1)
    The form name is the forms name. (Like Form1)
    in the code, the form is not actually closing, but it just hides the calling form. We can't close the calling form, because when we close it, it will close the entire program. So we have to hide it.
    eg.
         HIDE_WINDOW('WI_MAIN');  -- WI_MAIN is the window name.
         CALL_FORM('MASTER_FORM.FMX', NO_HIDE, DO_REPLACE);     -- MASTER_FORM is the forms name.
         EXIT_FORM;Regards,
    Manu.
    If this answer is helpful or correct, please mark it. Thanks.

  • HST50: Unix - How Headstart calls forms and reports uppercase/lowercase from a Menu

    We are migrating a 'in production' Headstart generated application from Windows to Unix.
    We had to a little time in setting the lowercase implementation names, setting the prefs to generate lowercase file.....
    So good so far. When testing the application on Unix, all files are lowercase, the Forms start without a problem but the Reports won't start.... Renaming the report files to uppercase works fine.
    Going through the Headstart code for calling Forms and Reports I noticed the following:
    When calling Forms the qmslib50.qms$form.call procedure is invoked. In this procedure the follwoing statement is used:
    l_form_name := lower(p_form_name) So only lowercase will be found....
    For calling Reports from the Lauch Report Form the qms0012l.qms$report.run procedure is invoked.
    This procedure calls fill_par_list where the l_module_name is set. But in this procedure no uppercase or lowercase is used......
    Not consequent I think !!
    Is this done for a specific reason ?
    PS: Change qms0012l and it works fine.

    Hi,
    cannot use run_report_object here cause I cannot create a report object in menu (like how we can do it in forms).
    Create a generic named Report node in the forms that you reference from the RunReport object request. This way you can run Reports from a menu
    Frank

  • 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);

  • How can i disable/hide the calling form from fnd_function.execute

    Hi,
    How can i disable/hide the calling form from fnd_function.execute.If so can any one give the syntax.
    thanks

    Hi Francesco,
    Are you talking about that ??? )) It will explain you about to get the name of the web page when you are executing an abap function for determining the values of variables...
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/g-i/how%20to%20make%20a%20variable%20even%20more%20flexible%20in%20bw-bps.pdf">How to make a variable even more flexible in BW-BPS?</a>
    This is weird: I wrote that document a few weeks ago, it is theorically published on SDN but this is not possible to find it by using the research tool... Maybe because it applies only to BPS in 3.5. I did not have enough time to migrate that solution to BI-IP 7.0.
    Regards
    Laurent

Maybe you are looking for