Call a form by name

We have a Portal form on multiple servers. The form name is identical however the module id numbers are different. When calling the form from a page, it is necessary to hard code the module id into the button or link requiring three sets of code; one for each server instance.
Is there a method or API available whereby I can obtain the module ID of a form? This will make the code more portable and not require hardcoding of module values. Thanks.

HI,
There is an api called wwv_utlmod.get_module_id. This takes two parameters, module name and owner.
owner is optional.
Usage
wwv_utlmod.get_module_id (p_module_name => 'TEST_FORM',
p_owner => 'PORTAL30_DEMO');
If the dbuser does not have privileges to run wwv_utlmod then grant it to that user.
Thanks,
Sharmila

Similar Messages

  • 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

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

  • Urgent:Error While calling one form from another form

    Hi,
    i am using a form in which zoom functionality is enabled.From this form if i am clicking view->zoom it should open another form which should accept two parameters from the first form.But whenever i am clicking on zoom its giving the following error.
    FRM-47023:No such parameter named G_QUERY_FIND exists in form
    XX_EMPLOYEE_CONVERSION(Name of the form which i am calling from first form)
    When i am clicking 'ok' then it shows the error
    FRM-40105:Unable to resolve reference to item PARAMETER.G_QUERY_FIND
    Eventhough i have developed my form using template.fmb which uses the parameter G_QUERY_FIND why this error is coming?
    Can anyone suggest a solution for this.
    Thanks in advance

    PARAMETER.G_QUERY_FIND is one of he objects in the APPSTAND.fmb. You will need to Subclass all of the objects in APPSTAND.fmb in your custom form. If you do not have a copy of this file in your FORMS60_PATH, I suggest you put a copy there. If you don't have a FORMS60_PATH specified then I would highly suggest adding this entry to your Forms Home in the Registry. Also, you will want all of the libraries in the AU_TOP/Resources folder as well.
    I also suggest looking at the Oracle Applications Developer's Guide (http://download.oracle.com/docs/cd/B25284_01/current/acrobat/115devg.pdf) as it outlines all of the required objects you must have in your form and reports.
    Hope this helps.
    Craig...

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

  • What are the 3 ways to call a form from another form?

    What are the 3 ways to call a form from another form?
    What is the command to call a report from within a form?
    How do you attach a menu to a form?

    Hi,
    1. Should be new_form, call_form and open_form
    2. The command is run_product
    3. There is a property 'Menu Module' in form, just change it to your menu file name
    Regards,
    George
    Can anyone help me with the following questions...
    What are the 3 ways to call a form from another form?
    What is the command to call a report from within a form?
    How do you attach a menu to a form?
    Thanks for your time..
    Madhu

  • How to call another form ,if option is entered in a text item object ???

    hi ,
    I am created an application ,where in i press a button which call another form having a menu .
    I select any one of the option from the menu ....i enter a number in the text item object of this form ....depending upon what option i have typed .....i would like to call another form ...
    My questions are
    1) Which trigger of this text item should be enabled,and what code to i write in this trigger ?
    2) Since this form is not having any database insert,delete ,update or query (select)
    it should directly go to the new form,whose option i provide in the text item .
    Sunny

    hey bro, i am assuming that ur text item contains the form name, any relevant trigger can be used for user action, like key-enter, post-change or key-next-item.
    to run a form u can use functions call_form or open_form with proper paramters.
    if u want to forward the entered text in the item, use global variable for the session.
    it doesnt matter if the form contains database items or blocks, all u have to do is run the form.
    e.g,
    declare
    VAR VARCHAR2-------;
    begin
    /* u can use the variable to concatinate or modify too, also can use global variable
    var:=:urblock.uritem;
    /* use ur own relevant parameters */
    open_form(VAR,ACTIVATE,NO_SESSION);
    exception
    when---------
    end;

  • How to call a form by JfPreamble

    Hello,
    can i call a form with JfPreamble without call through files.dat
    I had inserted ^form module name.mdf in the jfPreamble but when i launch the test for presentment appear an error : Error '-14' from print module. Make sure the 'Output to' or 'Print to' location is valid - Print job aborted.
    Can you help me???
    Thanks
    Mat.

    I don't think that the above error was caused by the ^form in the jfpreamble.
    However, putting a ^form in the jfpreamble does cause an error: "Recursive file open request. File 'JFPREAMBLE' in 'JFPREAMBLE'.".

  • How to call the form bean value on jsp withthe help of jstl tag

    hi
    all friends
    i am working in struts & i use jstl tag in jsp. i have one problem rise is how to call the form bean value in jsp page by using jstl tag.
    i now how to retrive the value through jsp:logic
    eg. <logic:empty name="userListForm" property="users">
    NO USER FOUND
    </logic:empty>
    see * userListForm mean formbaen name.
    * users means collection object.
    so how can i write above e.g in jstl

    You use the jstl core:if or core:choose combined with the EL:
    <c:if test="${empty users.userListForm}">
    NO USERS FOUND
    </c:if>I suggest you lookup the jsp expression language (EL) using google, it's very powerful.

  • Call Oracle Forms 6i from UNIX

    Hi,
    I am new to Oracle forms and I have some querries -
    I have a form created on windows environment (.fmb/.fmx). This form accepts a parameter in a text field and calls another Oracle Report. Now my questions are:
    1. If windows forms are not compatible with UNIX environment, then how these are converted to be compatible with UNIX/Linux (without re-creating them on different platform)?
    2. Can I call the same form from UNIX shell with input as a shell script input?
    3. And if answer to the second query is no, then can I invoke Web deplyed froms (on application server) using shell? and how..
    I w'd appreciate your help!
    Regards.

    hello
    please provide forms6i (on web?,client server?),OS version.
    im Assumed your using character mode.
    user9040817 wrote:
    Hi,
    I am new to Oracle forms and I have some querries -
    I have a form created on windows environment (.fmb/.fmx). This form accepts a parameter in a text field and calls another Oracle Report. Now my questions are:
    1. If windows forms are not compatible with UNIX environment, then how these are converted to be compatible with UNIX/Linux (without re-creating them on different platform)?you need to generate fmx on server side. this is character mode. use : f60gen yourforms.fmb username/password@tns > a
    yes you can call it forms use : f60run forms.fmx username/password@tns
    report : rwrun60c yourreportname.rdf username/password@tns destype=file desname=a.lis
    but always use HOST command inside the forms, also to send to the printer name that is configured to your server.
    host ('rwrun60c /dsk8/ciame/rcption/wagih/reportname xxx/xxxn@xxx batch=yes destype=file desname=$user_output/'||to_char(:blk1.office_emp_no)||'.lis tty_office_no='||to_char(:blk1.office_no)||' tty_emp_no='||to_char(:blk1.office_emp_no)||' tty_rcpt_no='||to_char(:blk2.rcpt_mst_receipt_no)||' tty_rpt_type=0;
    lp -d $lp01 -c $user_output/'||to_char(:blk1.office_emp_no)||'.lis',NO_PROMPT);
    and if you call another form then you can use open_form,call_form,,... inside the form. Be sure you add in the library your wroking folder.
    edit your user profile .
    Study this as a case : this is the profile of our mis user in our old character based system.
    SunOS 5.9
    |-----------------------------------------------------------------|
    | This system is for the use of authorized users only. |
    | Individuals using this computer system without authority, or in |
    | excess of their authority, are subject to having all of their |
    | activities on this system monitored and recorded by system |
    | personnel. |
    | |
    | In the course of monitoring individuals improperly using this |
    | system, or in the course of system maintenance, the activities |
    | of authorized users may also be monitored. |
    | |
    | Anyone using this system expressly consents to such monitoring |
    | and is advised that if such monitoring reveals possible |
    | evidence of criminal activity, system personnel may provide the |
    | evidence of such monitoring to law enforcement officials. |
    |-----------------------------------------------------------------|
    login: ciame
    Password:
    Last login: Tue Mar 6 09:39:32 from 0.0.0.0
    Sun Microsystems Inc. SunOS 5.9 Generic May 2002
    $ bash
    bash-2.05$ cd mis
    bash-2.05$ cat .profile
    # This is the default standard profile provided to a user.
    # They are expected to edit it to meet their own needs.
    #MAIL=/usr/mail/${LOGNAME:?}
    DISPLAY=8.4.2.5:0.0;export DISPLAY
    NLS_LANG=AMERICAN_AMERICA.AR8ISO8859P6; export NLS_LANG
    NLS_DATE_FORMAT=dd/mm/yyyy;export NLS_DATE_FORMAT
    TK6_PRINTER=alp35;export TK6_PRINTER
    EDITOR=/usr/bin/vi;export EDITOR
    ORACLE_BASE=/oracle; export ORACLE_BASE
    ORACLE_HOME=$ORACLE_BASE/product/dev6i; export ORACLE_HOME
    TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN
    HOME=$ORACLE_HOME/bin;export HOME
    ORACLE_SID=JMH; export ORACLE_SID
    ORACLE_TERM=vt220; export ORACLE_TERM
    FORMS60_TERMINAL=$ORACLE_HOME/bin; export FORMS60_TERMINAL
    LD_LIBRARY_PATH=LD_LIBRARY_PATH:$ORACLE_HOME/bin:$ORACLE_HOME/lib:/usr/dt/lib:/u
    sr/openwin/lib:/usr/lib:$ORACLE_HOME/network/jre11/lib/sparc/native_threads; exp
    ort LD_LIBRARY_PATH
    SHLIB_PATH=$ORACLE_HOME/bin:/usr/dt/lib:/usr/openwin/lib:/usr/lib:$ORACLE_HOME/n
    etwork/jre11/lib/sparc/native_threads; export SHLIB_PATH
    PATH=/usr/ccs/bin:$ORACLE_HOME/bin:/usr/bin:/usr/openwin/bin/; export PATH
    user_output=/user_account/mis;export user_output
    alias ls='ls -aF'
    umask=022
    lp01=alp1;export lp01
    lp02=alp1;export lp02
    lp03=alp1;export lp03
    lp04=alp1;export lp04
    lp05=alp1;export lp05
    lp06=alp1;export lp06
    lp07=alp1;export lp07
    lp08=alp1;export lp08
    lp09=alp1;export lp09
    lp10=ps401;export lp10
    lpc=alp1;export lpc
    cd /dsk8/ciame
    f60run mis_menu xxxx/xxx@xxx
    exit
    Edited by: ck on Mar 5, 2012 11:05 PM
    Edited by: ck on Mar 5, 2012 11:08 PM

  • Type conflict when calling a FORM

    Hi,
    when we have callled function module "PYXX_READ_PAYROLL_RESULT" in out HR-ABAP program then shows the short dump as:
    procedure "PYXX_READ_PAYROLL_RESULT" "(FUNCTION)", nor was it propagated by
    RAISING clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    Call to FORM "IMPORT_RESULT" is incorrect:
    The actual parameter no. 2 has a different data type in the
    PERFORM than requested for the FORM "IMPORT_RESULT" in program "%_T02E40".
    Please provide the solution any one.
    regards,

    In the function module PYXX_READ_PAYROLL_RESULT the call to this form is dynamic:
    PERFORM import_result IN PROGRAM (subroutine_pool-name)
                                       USING key
                                              payroll_result
                                              import_subrc
                                              pcl2_version_number
                                              typepool_version_number
                                 IF FOUND.
    As you can see second parameter is payroll_result which is also a changing parameter of the function module PYXX_READ_PAYROLL_RESULT, however it is untyped in the interface of the function module. Therefore, you probably do not supply the function module with the variable of the correct type. My suggestion is to place a break point on the SUBMIT statement, check the content of the subroutine_pool-name, find the program that is called, read its source and determine the right type from there.
    Regards

  • Debug dynpro + call script form

    Hello ,
    I have a req, I need to debug the few dynpro, and one of the dynpro is calling a form and I have to figure it out, which form is this ( and from where it is called ). I have never worked with script form before, can any one let me know how I can figure it out that ( how to call a form, I mean it should be statemnt like, call form .... or ) ?
    One another thing, I went into the coding, and there I see the screen ( in execution mode, the screen shows some button, ( e.g show , and after pressing this button show ,the form appers ), but when I went in flowlogic of the screen, I cant see those button ?
    Any idea....
    Regards,

    Shah,
    Do like this.You might be pressing some push button after which the smart form or script is appearing.
    do screen debugging.
    enter /h in the command field and press enter.
    now press the push button.
    this will take you to the logic in the driver program where the smartform or script is getting invoked.
    if it is a smartform you will see a function module SSF_FUNCTION_MODULE_NAME.
    smartform name will be stored in LF_FORMNAME
    put a watch point here to get the smartform name.
    if it is a script you will come across the following functional modules.
    open_form,write_form,close_form.
    Script name will be given in the open form functional module.
    If any doubt revert it.
    K.Kiran.
    Message was edited by:
            Kiran K

  • Syntax for calling a form & passing a query condition

    I have a stored PL/SQL procedure where I am attempting to link to a master detail form from a button created in the procedure. The procedure is called from a form based on a table.
    I want to pass an id from the first form to the second when the user clicks the button and have that id bring up the master record in the calling form (query condition to be automatically executed).
    I am using the Portal technical FAQ 10.10 as a reference. However, I must be off in the syntax. Here's what I have:
    objectId - contains id from calling form
    OBJECT_ID - column name in called MD form
    elsif (button = 'Subject Matters') then
    PORTAL30.wwa_app_module.link(
    p_arg_names =>
    PORTAL30.wwv_standard_util.string_to_table2('_moduleid:_show_header:OBJECT_ID:_OBJECT_ID_cond'),
    p_arg_values =>
    PORTAL30.wwv_standard_util.string_to_table2('2215270925:YES:'&#0124; &#0124;to_char(objectID)&#0124; &#0124;':%3D'));
    The best I get is the id passed and the called form opened in INSERT mode.
    I have been playing with this for days!
    If anyone spots the error in my code and could point it out, I'd greatly appreciate it.
    Regards,
    Judy

    try this
    String b = (String)am.invokeMethod("getValue", params);
    Thanks,
    Prasanna

  • Compiled and trying to deploy a form - an error when calling the form

    Hi!
    I used to deal with Forms 6i and I'm quite new to 10g.
    Is it enough to just replace an .fmx file on the server?
    We have a software product written on Forms 10g which is running on our server.
    I found where working .fmx files are located on the server.
    I also found which seems to be the source files.
    My actions:
    1) Selected one of the forms and compiled it in Bulder 10g successfully.
    2) Replaced an .fmx file with one which I had comiled.
    3) In user interface, press the button which calls my form, but nothing happens. The form is not created. No error messages.
    4) Put the original .fmx back - and everyting works: after pressing the button the form starts.
    What's wrong? Improper way of compilation or deployment?
    Any suggestion would be appreciated.
    Thanking in advance,
    Roman

    Roman Churakov wrote:
    Thank you, Christian!
    You are right!
    According to my last test, when I try to call the form directly from the url (via parameter form=myform.fmx), I get the following:
    1) With the orginal myform.fmx, the form starts
    2) With the form compiled by me, I get error: "Cannot read form myform.fmx"
    Though the file names are identical, the file compiled on windows doesn't go.
    P. S.
    Nevertheless, that's weird for me: I supposed that since Forms 10g is based on Java, the compilation must be platform-independent.
    Edited by: Roman Churakov on 20.01.2012 1:58I think you have just a problem with upper/lowercase.
    .) ensure your fmx is exactly myform.fmx
    I am not sure but I think you get this message also if there is a wrong attached-library-name in the source.
    So if its still not working convert the fmb to text (file->convert...), check if the libraries are attached correctly (case sensitive on UX/LX) the libs are visible in the first lines, check if some libs are attached multiple times, correct that stuff, and convert back from text to fmb.
    Hope that helps!

  • Get current FORM-Routine Name

    Hi,
    during runtime i want to know the current form-routine-name to write it in a variable and put it in an itab. The background-idea is to print out all procedures that have been executed after running the program.
    Any hints, suggestions how to get this done?
    Thanks in advance
    Gunther

    Hi, Gunther,
    The only way to do this is to read the ABAP Call Stack in an internal table.
    Code:
    TYPES: BEGIN OF t_s_abap_callstack,
             mainprogram LIKE sy-repid,
             include LIKE sy-repid,
             line TYPE i,
             eventtype LIKE abdbg-leventtype,
             event LIKE abdbg-levent,
             flag_system,
           END OF t_s_abap_callstack.
    variable for ABAP callstack
    DATA: g_callstack TYPE STANDARD TABLE OF t_s_abap_callstack,
          g_callstack_wa TYPE t_s_abap_callstack.
    call 'ABAP_CALLSTACK' id 'DEPTH' field 99
                            id 'CALLSTACK' field g_callstack.
    g_callstack now contains the program and routine names called, in sequence. 
    Pls be careful in using this C Call; in particular, usage in a Productive environment should only be envisaged with the utmost caution.
    Philippe

Maybe you are looking for

  • Camera resolution for NetStream. Please help.

    I'm developing a videochat app that should work on different network speeds. The idea was to switch to lower resolution if by some criteria delay becomes too noticable (say, delay is 2 seconds, or dropped videoMessage packet ratio is more than 20%).

  • Plant and Storage Location determination at Item level during Copy control

    Hello Freinds, We are experiencing issues within Sales Order creation when the line item is referencing a contract. The plant and storage location is being determined from the contract - this should not be done, we have an enhancement in place for sa

  • Installing itunes on windows 7. I need help

    I'm trying to install itunes on windows 7 and i keep getting an error message that says, "service apple mobile device failed to start verify you have sufficient privileges to start system services " i disabled all firewalls and have no idea whhy its

  • Not able to expand Treetable structure programmatically

    We had implemented expanding Treetable structure programmatically. But when we are uptaking our UI to PS4, the expand operation is not working and we are getting exceptions. We are expanding Treetable through program, for example when try to expand f

  • ITunes BPM Counter

    Hi there, I'm trying to find a programme or a plug-in that allows me to check the BPM (Beats Per Minute) for my iTunes library, and therefore allows me to create specialised playlists. There are many out there, but only for Mac, and I'm on Windows. P