Calling parmeter form

Hi All
i have two forms
first form is sale_order and next is order_tracker2 and the structure of table is like that
SQL> desc sale_order;
Name                                      Null?    Type
ID                                        NOT NULL NUMBER
SALE_ORDER_NO                                      VARCHAR2(50)
ORDER_DATE                                         DATE
PARTY_NAME                                         VARCHAR2(100)
DEL_DATE                                           DATE
COMMENT1                                           VARCHAR2(200)
CUST_ID                                            NUMBER
DISCOUNT                                           NUMBER
SEASON_YEAR                                        VARCHAR2(20)
TYPE                                               VARCHAR2(50)
SHOW                                               VARCHAR2(100)
VAT_PERSENTAGE                                     NUMBER
VAT_PRICE                                          NUMBER
PERFORMA_TYPE                                      VARCHAR2(50)
SQL> desc order_tracker2;
Name                                      Null?    Type
SALE_ORDER_NO                                      VARCHAR2(50)
PARTY_NAME                                         VARCHAR2(100)
VIP_CUTOMER                                        VARCHAR2(100)
AGENT_NAME                                         VARCHAR2(50)
DEL_DATE                                           DATE
ITEM                                               NUMBER
VALUE                                              NUMBER
TYPE                                               VARCHAR2(50)
COMMENT1                                           VARCHAR2(200)
PERFORMA_TYPE                                      VARCHAR2(50)
CURRENCY                                           VARCHAR2(15)
COUNTRY                                            VARCHAR2(30)
CITY                                               VARCHAR2(50)
PIN_CODE                                           VARCHAR2(50)
EDIT_DATE                                          DATEin order Tracker Form i write the when-double-click on sale_order_no the code is
DECLARE
  pl PARAMLIST:=GET_PARAMETER_LIST('PL_EDIT_EMP');
BEGIN
   IF NOT ID_NULL(pl) THEN
    DESTROY_PARAMETER_LIST(pl);
  END IF;
   pl:=CREATE_PARAMETER_LIST('PL_EDIT_EMP');
   ADD_PARAMETER(pl, 'P_MODE', TEXT_PARAMETER, 'EDIT');
   ADD_PARAMETER(pl, 'P_SALE_ORDER', TEXT_PARAMETER,:ORDER_TRACKER2.SALE_ORDER_NO);
   CALL_FORM('C:\test_report\final_to_be_added_to_main\sale_order',NO_HIDE,DO_REPLACE,NO_QUERY_ONLY,pl);
  END;
  and in sale_order
when-new-form-instance( form level )
IF :PARAMETER.P_MODE='EDIT' THEN
         GO_BLOCK('sale_order');
    EXECUTE_QUERY;
    SET_BLOCK_PROPERTY('sale_order', INSERT_ALLOWED, PROPERTY_FALSE);
END IF;in the sale_order i declare two parmeter p_mode and p_sale_order
and the where code set in data_block but when i run form and call the sale_order then it is not showing any data
just picking sale_order_no=1
no data found
Please Guide
Thanks And Regards
Vikas Singhal
Edited by: vikas singhal on Jul 13, 2009 2:27 PM
Edited by: vikas singhal on Jul 13, 2009 3:16 PM

Hai,
In the in order Tracker Form i write the when-double-click on sale_order_no, you didn;t specified the P_EMPLOYEE_ID parameter.
So When you EXECUTE_QUERY, the parameter will be NULL. So there won;t be any data.
Regards,
Manu.
If this answer is helpful or correct, please mark it. Thanks.

Similar Messages

  • Error while calling a form from another form's menu item

    I created a main form and menu module for this form.
    I am calling another form from main form menu item.
    i moved both the forms and menu and compiled them.
    But, when i run this form i am getting an error saying
    FRM 92100: Your connection to the server was interrupted
    This may be the result of a network error, or a failure on the server.
    You will need to establish your session.
    I set the seperateframe = true
    networkentries = 30
    But still getting the same error.
    Is there any parameter that i am missing.
    I will greatly appreciate if anybody can direct me to the solution.
    Thank you.
    Navya.

    Hi guest,
    the data definition is:
    DATA: XVBKD LIKE VBKDVB OCCURS 0 WITH HEADER LINE.
    the assignment:
    XVBKD-PRSDT = likp-erdat.
    Thanks,
    Hagit

  • Urgent: is threre any term called "quick forms" in ABAP

    hello experts,
                       Is there any term called "quick forms" in ABAP. if yes please give me details regarding it.
    its very urgent.
                                                                    thnaks in advance,

    Don't think there is anything by that name in abap namespace. Have heard of Interactive forms, smartforms, and abap quickviewer
    http://www.sap-basis-abap.com/sapqu004.htm

  • Returning multiple values from a called tabular form(performance issue)

    I hope someone can help with this.
    I have a form that calls another form to display a multiple column tabular list of values(needs to allow for user sorting so could not use a LOV).
    The user selects one or more records from the list by using check boxes. In order to detect the records selected I loop through the block looking for boxes checked off and return those records to the calling form via a PL/SQL table.
    The form displaying the tabular list loads quickly(about 5000 records in the base table). However when I select one or more values from the table and return back to the calling form, it takes a while(about 3-4 minutes) to return to the called form with the selected values.
    I guess it is going through the block(all 5000 records) looking for boxes checked off and that is what is causing the noticeable pause.
    Is this normal given the data volumes I have or are there any other perhaps better techniques or tricks I could use to improve performance. I am using Forms6i.
    Sorry for being so long-winded and thanks in advance for any help.

    Try writing to your PL/SQL table when the user selects (or remove when deselect) by usuing a when-checkbox-changed trigger. This will eliminate the need for you top loop through a block with 5000 records and should improve your performance.
    I am not aware of any performance issues with PL/SQL tables in forms, but if you still have slow performance try using a shared record-group instead. I have used these in the past for exactly the same thing and had no performance problems.
    Hope this helps,
    Candace Stover
    Forms Product Management

  • How to call a form from one form to another form with parameter..

    i'm having a from that will shows the info about the orders that the client has. and i want to show the information of the client. for that i have created one form and i want to call the form from my current form with the given client name as a parameter. then the client_info form has to query with the given parameter. so im passing the :client_order_info.client_name as parameter to the call_form('client_info.fmx',:client_order_info.client_name); but my question is how to access that parameter in the client_info form.. plz help me.. i tried a lot ..

    Create a parameter (object navigator -> parameters) with the name client_name and you can access that value in your client info form using :PARAMETER.client_name.
    P.S. while calling you can pass parameter using 'cilent_name =>' to make sure that the correct parameter is getting assigned to the value.

  • How to call a form in report

    How can i call a form in a report?

    try this
    declare
       AppID PLS_INTEGER;
    begin
         AppID := DDE.App_Begin('ifrun60 module=myform.fmx userid=scott/tiger@mydb maximize=no', DDE.App_Mode_Maximized);
    exception when others then
          srw.message(1,'Errror');
    end;Baig
    [My Oracle Blog|http://baigsorcl.blogspot.com/]

  • How to call a form on 9i from a jsp?

    Hi
    I have a form running on forms 9i server.
    I want to call this form from a jsp page . I have developer suite 9i installed on my system. LEt me know how this can be done .
    thanks
    sirisha

    Hi ,
    I think yes...but under some circumstances....
    In your formsweb.cfg file you should define a named configuration alias... such as:
    [TEST]
    workingDirectory=C:\TEST_DIR
    form=C:\TEST_DIR\MY_NEWFORM.FMX
    Then , after stopping , starting your OC4J instance..... you call that as (in a button , for example):
    web.show_document('http:<your_server>:<port>/forms/frmservlet?config=[TEST]',_blank);
    I have not tested it.....
    Regards,
    Simon

  • How to call a form from report? in 6i

    How to call a Form from Report? In Developer 6i of oracle. Plz tell me tex.

    try this
    declare
       AppID PLS_INTEGER;
    begin
         AppID := DDE.App_Begin('ifrun60 module=myform.fmx userid=scott/tiger@mydb maximize=no', DDE.App_Mode_Maximized);
    exception when others then
          srw.message(1,'Errror');
    end;Baig
    [My Oracle Blog|http://baigsorcl.blogspot.com/]

  • 4.5 to 6i migration or report calling from forms in XE???

    Hi Friends,
    I really appreciate your helping tendency. Let me explain the whole scenario.
    My application basically consists of
    Forms [32 Bit] Version 5.0.6.8.0 (Production)
    Report Builder 3.0.5.8.0
    Oracle Enterprise Edition Release 9.2.0.1.0 - Production
    Now we migrated our database into Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production. After the migration all the existing forms and report individually were running without any problem. But there was a huge problem. Whenever I tried to call any report from any form the report engine appeared and then stopped responding. So report calling from forms was not possible after the database migration. I was suggested by someone from OTN forum to migrate my forms and reports into 6i. I have started doing the migration using ifcmp60. WIth forms 6i, reports can be called from forms. But I am facing problem in every other steps. There are many things are not working after the migration though the migration log shows no error. For example, COMMIT_FORM, EXECUTE_QUERY (for detail table), LOV, TOOL.GETVAR lots of things are not working.
    My application has 200 forms and 250 reports.
    Please help and advise on:
    How to call reports from form when the database is XE Or
    How to overcome the stated migration problem
    Rgds,
    Luther

    Dear Mark:
    I have two choices. I can either migrate to 6i or I can go with the existing 4.5. If I go with 4.5 ......the reports are not being called from forms. This problem is happening after I changed the database from 9i to XE. Please advise what to do so that I can keep my forms in 4.5, database in XE and can call reports from forms.
    Rgds,
    Luther

  • Calling a Form

    Hi,
    I want to Call a form from my menu. I remember that in FORMS 6i, you could use "Call Form", "Open Form" and "New Form".
    Is there any equivalent in FORMS 10g, or is there another way to do this ?
    Cheers,
    Marc.

    Use the same built-ins... they are the same.
    the least you could do is check the online help of your forms builder or search the Forum.
    Tony

  • Calling a form on HTree Node Click

    i need a help on calling a form on HTree Node Click.
    the details as follows
    ### THIS IS MY TABLE ###
    SQL> DESC MENU_OPTION
    Name Null? Type
    NAME_CODE NOT NULL VARCHAR2(20)
    OPTION_NAME NOT NULL VARCHAR2(50)
    LINK_NAME_CODE NOT NULL VARCHAR2(20)
    MAIN_OPTION VARCHAR2(20)
    DATAID NOT NULL NUMBER
    FORM_NAME VARCHAR2(50)
    ### THIS IS MY TREE ###
    DECLARE
    htree ITEM;
    v_ignore NUMBER;
    rg_emps RECORDGROUP;
    BEGIN
    htree := Find_Item('tree_block.htree4');
    rg_emps := Find_Group('emps');
    IF NOT Id_Null(rg_emps) THEN
    DELETE_GROUP(rg_emps);
    END IF;
    rg_emps := Create_Group_From_Query('rg_emps',
    'select -1, level, OPTION_NAME, NULL, to_char(NAME_CODE) ' ||
    'from MENU_OPTION '||'connect by prior NAME_CODE = LINK_NAME_CODE '||
    'start with MAIN_OPTION = ''TOP_MENU''');
    v_ignore := Populate_Group(rg_emps);
    Ftree.Set_Tree_Property(htree, Ftree.RECORD_GROUP, rg_emps);
    END;
    ### WHAT I WANT IS ####
    The Tree is working fine
    when i click on the node i want to call_form where
    FORM_NAME matches with the OPTION_NAME
    I Tried below code.. but i don't know how to call_form
    WHEN-TREE-NODE-ACTIVATED
    Declare
    LN$I Pls_integer ;
    LC$Node Varchar2(60);
    Begin     
    IF :SYSTEM.TRIGGER_NODE_SELECTED = 'TRUE' THEN
         LC$Node := FTREE.GET_TREE_NODE_PROPERTY('TREE_BLOCK.HTREE4', :SYSTEM.TRIGGER_NODE, FTREE.NODE_VALUE);
    -- how to call the form????? .....
    End if ;
    End;
    Anyone can help

    Dear Sis,
    I'm posting the code again
    ### THIS IS MY TABLE ###
    SQL> DESC MENU_OPTION
    Name Null? Type
    NAME_CODE        NOT NULL VARCHAR2(20)
    OPTION_NAME      NOT NULL VARCHAR2(50)
    LINK_NAME_CODE   NOT NULL VARCHAR2(20)
    MAIN_OPTION               VARCHAR2(20)
    DATAID           NOT NULL NUMBER
    FORM_NAME                 VARCHAR2(50)### THIS IS MY TREE ###
    DECLARE
    htree ITEM;
    v_ignore NUMBER;
    rg_emps RECORDGROUP;
    BEGIN
    htree := Find_Item('tree_block.htree4');
    rg_emps := Find_Group('emps');
    IF NOT Id_Null(rg_emps) THEN
    DELETE_GROUP(rg_emps);
    END IF;
    rg_emps := Create_Group_From_Query('rg_emps',
    'select -1, level, OPTION_NAME, NULL, to_char(NAME_CODE) ' ||
    'from MENU_OPTION '||'connect by prior NAME_CODE = LINK_NAME_CODE '||
    'start with MAIN_OPTION = ''TOP_MENU''');
    v_ignore := Populate_Group(rg_emps);
    Ftree.Set_Tree_Property(htree, Ftree.RECORD_GROUP, rg_emps);
    END;### WHAT I WANT IS ####
    The Tree is working fine
    when i click on the node i want to call_form where
    FORM_NAME matches with the OPTION_NAME
    I Tried below code.. but i don't know how to call_form
    WHEN-TREE-NODE-ACTIVATED
    Declare
    LN$I Pls_integer ;
    LC$Node Varchar2(60);
    Begin
    IF :SYSTEM.TRIGGER_NODE_SELECTED = 'TRUE' THEN
    LC$Node := FTREE.GET_TREE_NODE_PROPERTY('TREE_BLOCK.HTREE4', :SYSTEM.TRIGGER_NODE, FTREE.NODE_VALUE);
    -- how to call the form????? .....
    End if ;
    End;

  • Calling a form in Update form

    Hi,
    I'am calling a form from another form but passing one of the parameters to the second form. The second form is only showing the query and reset button, no matter what i do it's not showing the update button. can anyone help me.
    i wrote thIS code in the second form before displaying the form
    p_session.set_value(p_block_name => 'DEFAULT',p_attibute_name => '_FORM_STATE',p_value => 'UPDATE_AND_DELETE');
    but it's giving me an error saying , wrong number of parameters.
    Can anyone help.
    Thanks.

    Hi,
    You should call the form in the query mode. Here is a sample which will call the form for a deptno 10.
    portalschema.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=1280222922&p_arg_names=_show_header&p_arg_values=YES&p_arg_names=deptno&p_arg_values=10&p_arg_names=_deptno_cond&p_arg_values=%3D
    The deptnocond is required for the form in query mode. If you want to query for empno and not deptno then it should be empnocond
    Thanks,
    Sharmila

  • Error within Workflow calling a form

    Hey,
    I have made a workflow with a form getting some values, transmited to a WF attribute, then i call another form which use this value.
    First i used a subprocess to call the form and i had this error:
    "com.waveset.util.WavesetException: Suspended case with no WorkItems!"
    Then i put the Call form activity in the original workflow and i still have the error while another form call in the same workflow works great.
    Do someone know about this error?
    Thanks,
    Adrien

    Check the transition logic in all the activities to make sure there are no infinite loops. You'd see this error messages if there are any infinite loops. Your subprocess may not be getting the variables used for transition. If you are referencing any WF variables inside the SP, declare them as external or pass them.

  • Calling infobus form from another.

    Hi
    Here is a brief description of the problem.
    A simple data form is created using JDeveloper2.0's wizard. It is an Infobus based dataframe,which has a simple gridcontrol fetching data from the dept table. This form is in the pacakge,
    package1.
    Another form is made with a master detail relationship between dept and employee table, in the package, package2.
    Now a button control is added on the first form( which is in package1) and the following code is added to the actionperformed event.
    void buttonControl1_actionPerformed(ActionEvent e) {
    Frame f = new package2.Frame1();
    f.show();
    Essentially, it calls the form in package2 when the button is pressed. Once this action is performed, the login dialog box of the form in package2 appears. After which it throws the following error and shows a blank form.
    DAC-405: SessionInfo: Application module creation failed; className: ConnectionTrade
    JBO-00200: A Generic exception occurred during loading Customizations.
    null
    If I add a button in the second form, (ie. the one in pacage2 having a master detail relationship) and call dept form (in package1) from here, it works.
    We are stuck with this problem, and unable to proceed with deploying the application. As each form need to be called and invoked from a menu.
    Thanks in advance.
    Ravi

    Hi,
    You can do like this :
    mainApplication(Menu)
    +------------ Frame1
    |
    +------------ Frame2
    In MainApp you call your frame, and remove from code the
    windowListener of the frame. Replace the dispose(); in frame
    methods fileExit(ActionEvent e) & processWindowEvent(WindowEvent
    e), by try { finalize(); } catch (java.lang.Throwable ex) {
    ex.getMessage(); }
    It works great.
    Bart
    Gopal (guest) wrote:
    : Hi,
    : I am calling an infobus form from another one. Once I close the
    : called form, I want the control to go back to the calling one.
    : I tried dispose in the called form. It doesnot work. (Gives a
    : null pointer exception and crashes everything). Both the frames
    : are extended from infoframe. What is the right way to do this?
    : Thanx,
    : --Gopal
    null

  • Calling a form from the main form

    Hello,
    As you can see here , i want to open a form, when i click on a subitem of ELEVI menu. so i did that, but that form is shown in the back of the main form.. i wanna that form being shown as a child form of the main form, or something like that..
    also, i cannot close the second form, why?
    the code for opening that form when clicking a submenu item is:
    begin
         call_form('elevi', no_hide, no_replace, query_only);
    end;Greets,

    well, the menu for the called form does not exist, so i don't have any menu on this second form, just buttons. the code for calling the form when clicking the submenu item, is:
    begin
         call_form('elevi',no_hide, no_replace, query_only);
    end;but i still can open multiple times.. why? can u be please more explicitly on how to do this?
    edit:
    it worked like this: (didn't know if it's a good solution, but it works)
    begin
         if id_null(find_form('elevi')) then
         call_form('elevi',no_hide, no_replace, query_only);
         else go_form('elevi');
         end if;
         end;Thanks for replies :)
    Edited by: Roger22 on 15.03.2009 10:41

Maybe you are looking for

  • Java.lag out of memory error

    my x2 cannot work with the pdf reader i downloaded from nokia store as there is java.lag out of memory error what should i do

  • MSI GT72 2QE Dynamic Contrast

    The dynamic contrast on my laptop is driving me crazy, and I can't seem to find a way to disable it.  I disabled both adaptive brightness in power settings, as well as dynamic contrast enhancement and color enhancement in nvidia control panel, to no

  • This document has expired/not connected to the internet

    We have a set of documents that we are not able to access lately due to these 2 errors: "This document is locked. Your permissions to view it has expired. If you want to open this document, contact the person who sent it to you and ask them to extend

  • Serial number won't work.  What do I do?

    Purchased Adobe Acrobat X Standard online in 2012.  Downloaded again to computer today.  The serial number won't work.  What do I do?

  • Mail isn't showing on start-up

    ....though it's unchecked to hide and I should see its window. Safari (which is also uncheck) launches in an open window mode. What's then the matter with Mail? Is it a bug?