Invoking procedure from menu module

How can I invoke procedure that is part of Form module from menu module which is attached to it.
When I reference it with:
procedure_name;
I receive:
Error 201
Identifier procedure_name must be declared.
null

It can be done by calling user-named trigger from menu:
Execute_Trigger('my_user_named_trigger');
and in Forms my_user_named_trigger is:
BEGIN
procedure_name;
END;
I hope this will help you
Helena

Similar Messages

  • NEW_FORM call from menu module does not close previous form window

    We run Forms 9.0.4 and I just developed three new form screens. The problem is that when new screens are called with NEW_FORM call from menu module:
    New_Form(p_form_to_open,TO_SAVEPOINT,NO_QUERY_ONLY,NO_SHARE_LIBRARY_DATA,Menu_Globals.v_form_parml);
    the window from previous form is visible in the background.
    Strangely enough same call from the same menu module using exactly same NEW_FORM call for old screens does not leave previous window visible. I've checked Form level properties, Window Level Properties, Different Menu Properties, and could not find anything that would fix it.
    Any pointer would be appreciated.

    I've figured it out:
    The old screens have main window named ROOT_WINDOW. As soon as I named the window on new screen to be ROOT_WINDOW the background window disappeared.
    How stupid is that. Wasted my whole day on this.

  • Invoking Procedure from BODS with OUT (output) parameters

    Hi Experts,
    Need your help to invoke Oracle DB Procedure having output parameters from BODS Script
    --Thanks

    Hi Balakrishna,
    IF you want to execute the stored procedure from script first import the SP into your data store first and you can try the below scripts, i am not sure that it will works kindly try and let me know.
    Datastore Name.Owner.Procedure_Name( $Var_1 , $Var_2 );
    or
    SQL('Datastore_name',exec sp_xxx);
    Thanks and regards,
    subbu CH.

  • Invoking reports from menu in designer 10.1.2

    Hello,
    i'am working on a 6 to 10g migration and have some problems whith the menu that invoke reports.
    It seems that my predecessor has use the migration utility to migrate the menu.
    So that the call to run_product where change to rp2rro_run_product.
    But when i try to generate it with designer the call is CGNV$INVOKE_REPORT
    1) Is there a possibility to change some generating preferences to have the rp2rro_run_product call instead of CGNV$INVOKE_REPORT?
    2) When i compile the generated menu in windows the CGNV$INVOKE_REPORT compiles fine but when i move it to the linux server et try to recompile it failed saying that CGNV$INVOKE_REPORT must be declared ?
    I check that the OFGNAVL and the OFGMNL pll are attached and in the path for compilation
    Can someone help me please ?
    Regards
    Jean-Yves

    Thanks for your response and sorry for late feedback.
    I tried to set MNUDRC but was unsuccessful.
    It seems that the MNUDRC preference doesn't work in 10g refering to the documentation.
    Default:     RUN_PRODUCT (REPORTS, '<MODULE>',SYNCHRONOUS,RUNTIME,FILESYSTEM,'','');
    Values:     Up to 240 characters
    Levels:     Container, Module
    Category:     Menu - Gen Options
    In Oracle Designer 6i only, use this preference to specify the command to run a report from a generated menu item if the repository module's Command Line property is not set or if the MNUUCL preference is set to No.
    For more information about using this preference, refer to Setting a menu item's Menu Item Code property.
    In Oracle9i Designer, this preference is not used. For the alternative preferences to use, see Report invocation preferences.
    Related preferences
    MNUUCL
    I also tried the 'Command line' property of the report with not more success.
    For the moment, I can't generate the menu with appropriate rp2rro command line for the reports. Is there a way to achieve this?
    Regards
    Jean-Yves

  • Calling Oracle BugDB PL/SQL Package Procedures from Application Modules

    Hi Experts,
    I am using JDev 11g R2.My requirement is as follows:
    1.Create a public database link to remote bugDB using the Testing Environment.(Done)
    2.Access the data from local database to BugDB using that DB link (Done)
    3.Insert/Create a bug using the Create_Bug procedure in the API provided by BugDB(Failed).In the Application ModuleImpl class I have added the following code(Just an Example) to call the API containing a pl/sql procedure which creates a bug in the remote db table.
    public void Create_Bug(String Product, String Component, String Subcomponent, String Status) {
    CallableStatement st = null ;
    try {
    StringBuffer str = new StringBuffer();
    str.append(" BEGIN ");
    str.append(" Bug.Bug_API_V1.Create_Bug@bugtest( ");
    str.append(" Product => :1, ");
    str.append(" Component => :2, ");
    str.append(" BugNo => :3 ");
    str.append(" Status => :4 ");
    str.append(" ")
    str.append(" ); ");
    str.append(" END; ");
    st =getDBTransaction().createCallableStatement(str.toString(), 1);
    st.setString(1, Product);
    st.setString(2, Component);
    st.setString(3, Subcomponent);
    st.setString(4, Status);
    st.execute();
    } catch (SQLException sqle) {
    // TODO: Add catch code
    sqle.printStackTrace();
    } catch (NumberFormatException nfe) {
    // TODO: Add catch code
    nfe.printStackTrace();
    4.Added a managed bean to invoke this AppModuleDataControl which stores the value in the remote database.(Failed in this part).
    Its not showing any errors in the log but the bug is not created either in the remote database.Could anyone guide me where am I going wrong or what is the better way to handle this requirement.Any suggestion for materials,links or tutorials would be highly appreciated.Thanks in advance.
    Regards,
    Prasanna

    Prasanna,
    this is a public form_ and the Oracle bug database API is not public! Can you please post internal questions to Oracle internal forums and mailing lists?
    thank you
    Frank

  • URGENT: Report parameter form set to yes in calling report from menu

    I have write this code for calling report from menu module. But where i put the code
    PARAMFORM='YES' to display the report parameter form in order to enter the parameter by user.
    DECLARE
    pl_id ParamList;
    repid REPORT_OBJECT;
    v_rep varchar2(100);
    v_server VARCHAR2(100);
    rep_status varchar2(100);
    v_host VARCHAR2(100);
    BEGIN
         select rep_server into v_server from reports_data;
         select machine into v_host from reports_data;
         pl_id := Get_Parameter_List('tmpdata');
         IF NOT Id_Null(pl_id) THEN
         Destroy_Parameter_List( pl_id );
         END IF;
         pl_id := Create_Parameter_List('tmpdata');           
    Add_Parameter(pl_id,'P_C_NAME',TEXT_PARAMETER,:GLOBAL.COMPANY);
    Add_Parameter(pl_id,'P_B_NAME',TEXT_PARAMETER,:GLOBAL.BRANCH);
    Add_Parameter(pl_id,'P_user',TEXT_PARAMETER,:GLOBAL.user);
         repid := find_report_object('REPORTOBJ');
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,getpath||'E_open_balance.RDF');
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'htmlcss');
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,v_server);
              v_rep := RUN_REPORT_OBJECT(repid, pl_id);
              rep_status := REPORT_OBJECT_STATUS(v_rep);
              WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
                   LOOP
                        rep_status := report_object_status(v_rep);
                             message('Running');
                   END LOOP;
              IF rep_status = 'FINISHED' or rep_status is NULL THEN
              WEB.SHOW_DOCUMENT('http://'||v_host||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server='||v_server,'_blank');
              ELSE
                   null;
         END IF;
    END;

    Jeneesh,
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,
    'paramform=YES
    what about this variable ?
    P_VAR1 = ........');

  • Error while invoking stored procedure from BPEL process

    Hi Folks,
    I am facing the below mentioned issue while invoking a stored procedure in BPEL process :
    I am trying to invoke a stored procedure from a BPEL process. The process runs fine for the first/second time, but gives the below error after that whenever i try to run the process :
    file:/oracle/orasoa/bpel/domains/default/tmp/.bpel_ProvisionOrderASAPReqABCSImpl_1.0_50dd1595129e9bbb00560e31e7c18cef.tmp/DB_CALL_GetPendingSubscriptionProc.wsdl [ DB_CALL_GetPendingSubscriptionProc_ptt::DB_CALL_GetPendingSubscriptionProc(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'DB_CALL_GetPendingSubscriptionProc' failed due to: Error while trying to prepare and execute an API.
    An error occurred while preparing and executing the PROC_GET_PENDING_SUBSCR API. Cause: java.sql.SQLException: Io exception: Connection reset [Caused by: Io exception: Connection reset]
    ; nested exception is:
    ORABPEL-11811
    Error while trying to prepare and execute an API.
    An error occurred while preparing and executing the PROC_GET_PENDING_SUBSCR API. Cause: java.sql.SQLException: Io exception: Connection reset [Caused by: Io exception: Connection reset]
    Check to ensure that the API is defined in the database and that the parameters match the signature of the API. Contact oracle support if error is not fixable.
    I am not getting how the BPEL is referring to the DB wsdl from the tmp folder. To resolve this issue, we have to stop the SOA server, delete the tmp files, and restart the server.
    Any pointers in this regard will be really helpful.

    First of all does this scenario occur again.
    "Works first/second time. Later gives this error."
    After you restart the SOA server are you able to reproduce this scenario?
    As already pointed out and from the error message, database connection is reset.
    If you find this error again, try this out.
    em -> home / oc4j_soa -> Administration -> JDBC Resources
    Use the "Test Connection" option for the Connection Pool that you are using for your database JNDI.
    It comes back and say "Connection to "XYZCP" established successfully." it is good to use.
    Run the BPEL process again and once you find the error, come back and test the connection.
    If it comes back with Error, diagnose based on the error message received.
    Cheers
    Kalidass Mookkaiah
    http://oraclebpelindepth.blogspot.com/

  • How to limit the response rows while invoking a stored procedure from OSB 10gR3

    Dear Experts,
    I am trying to limit the response while invoking a stored procedure from OSB via DB adapter.
    Here the stored procedure returns cursors as response. I tried using the MaxTransactionSize propertiy (which is used for polling the database option in DB adapter).
    We are investigating the ways to protect the application from response containing huge number of rows.
    Is there any way to restrict the number of rows returned in each and every cursor while invoking the stored procedure via DB adapter?
    Thanks
    Ram

    Hi James ,
    I want to know how to run stored procedure using jca adapter in OSB11g.
    I am new to stored prcoedure,will be great if you could share some example on it as above.
    Req: Single input xml will be posted on queue ,need to perform 3 DB operation (with same input):
    1.Insert operation to insert master table contents.
    2.select the primary key column value from master table for the last inserted record.
    3.Need to insert primary key column value + other fields frm same xml file to child table.
    Pls assist me on how to create a simple stored procedure and to run the same with OSB 11g.I am familiar with creation of DB adapter using Jdeveloper,we have option to perform insert and to call stored procedure here,will it be useful for this scenario?
    Edited by: Anitha R on Nov 21, 2010 9:30 PM

  • Calling a form procedure from a menu

    I want to call WebUtil's client_host function from my custom menu .MMB, but it doesn't appear that I can Subclass the WebUtil.OLB into a menu module.
    Can I call a WebUtil function from my Menu that is attached to a Form that has been WebUtil enabled?
    Or is there any other way I can call the client_host from a Menu/Form combination?
    Your help would be greatly appreciated.

    and in the associated form you are free to use the whole webutil-stack after assigning the webutil.pll and inheriting the webutil-objectgroup
    Typically you use this trick with EXECUTE_TRIGGER if you want to use a local Forms-Function in your menu

  • Send String[][] type to pl/sql procedure from function in App.module

    Hi,
    I use jdveloper 11.1.1.3.0
    I have a pl/sql procedure. the input type argument is 2-dimensional array(TAR) :
    types:
    create or replace TYPE ARRAYWEB as varray(160) of VARCHAR2(200);
    create or replace TYPE TAR as table of ARRAYWEB;
    Procedure:
    PROCEDURE testi(info IN TAR )
    I want to send type String[][] to this procedure from a function in Application module:
    1: String[][] str;
    2: CallableStatement plsqlBlock = null;
    3: String statement = "BEGIN testi(:1); END;";
    4: plsqlBlock = getDBTransaction().createCallableStatement(statement, 0);
    5: plsqlBlock.setArray(1, str); //get error
    6: plsqlBlock.executeUpdate();
    but in line 5 I don't know what type I should use, and this type(Array) doesn't work
    Habib

    Maybe this can help: http://www.devx.com/tips/Tip/22034
    Dario

  • Invoking Oracle stored procedures from within a JDBC channel for PI 7.1

    Hi ,
    Can anybody tell me that is it possible to invoke Oracle stored Procedure from within a JDBC  sender channel for PI 7.1.
    Its working in XI3.0 and XI 7.0 for Oracle DBMS versions >= 10.2.x. But I am not sure,whether it will work for PI 7.1 also.
    Thanks & Regards,
    Saru

    HI,
    refer below link,there is no much difference in PI7.1 ,executing stored procedure is same .
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/44/7b72b2fde93673e10000000a114a6b/content.htm
    Regards,
    Raj

  • Invoking Pl/SLQ procedure from ADF page

    is it possible to invoke a Pl/SL procedure from a simple adf page.
    this ebiz pl/sql procedure invoking a BPEL program.
    can any one suggest me on this

    Suggest you have a search of both the forum and the documentation, both of which have the answer to your question

  • Invoking PL/SQL procedure from JSP

    Hi
    Is there any solution, to invoke a PL/SQL procedure from JSP?

    my example: PL/SQL procedure named: getsidforwinuser and the following in a JSP file
    <%
    try {
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection ("jdbc:oracle:thin:@hostname:port:SID", "User", "Password");
    CallableStatement FindID = conn.prepareCall("{ ? = call getsidforwinuser ( ? )}");
    FindID.registerOutParameter (1, Types.INTEGER);
    FindID.setString (2, DomainIntern.trim()+"\\"+Username);
    UserID = ((OracleCallableStatement)FindID).getInt(1);
    conn.close();
    catch(SQLException e)
    throw new RuntimeException("SQL Exception " + e.getMessage());
    %>
    <h1>User ID is:<%= UserID %></h1>

  • Calling stored procedures from entity object and application module

    Hello
    I've put in place an EntiyImpl base class containg helper methods to call stored procedures.
    I now need to call stored procedures from the application module.
    Apart from creating an application module base class and duplicating the helper method code is there a way
    to share the helper methods for calling stored procedures between the entity impl and application module impl ?
    Regards
    Paul

    Does the helper code depend on features of a particular entity object instance, beyond its database transaction?
    If so, I'm not sure I see how it could be used from an application module class.
    If not, here's what you do:
    Step 1:
    Parametrize the database transaction--you might even want to. So instead of
    protected myHelperMethod(Object someParam) {
    DBTransaction trans = getDBTransaction();
    change this to
    protected myHelperMethod(DBTransaction trans, Object someParam) {
    Step 2: make the method public and static--once you parameterize the DBTransaction, you should be able to do this.
    public static myHelperMethod(DBTransaction trans, Object someParam) {
    Step 3: Remove the method from your EntityImpl base class into a utility class:
    public abstract class PlSqlUtils {
    private PlSqlUtils() {}
    public static myHelperMethod(DBTransaction trans, Object someParam) {
    When you want to call the method from an application module, entity object, or even view object class, call
    PlSqlUtils.myHelperMethod(getDBTransaction(), paramValue);
    Unlike Transaction.executeCommand(), this lets you provide functionality like setting procedure parameter values, retrieving OUT parameter values, etc.
    Hope this helps,
    Avrom

  • How to invoke DB stored procedures from EJB3.0

    In our project we are using EJB3.0.
    I got one situation, where i need to call a db stored procedure through my code. But i couldn't find any possibilities.
    Can any body help me in this regard
    Thanks in advance
    Kiran

    Hi,
    As per ejb3.0 spec is conserned it doesnt specify anything with regard to stored procedures as of now, it means ejb3.0 cannot handle stored procedures as of now, of course it still depends on vendor implemenation u can check out for any possibilities wether vendor provides support for it or not, as for as i am conserned they dont as of now.
    Possible Alternative:
    This can be achived only through BMT using 2 transactions.
    Open a seperate JDBC managed Transaction(by setting AutoCommit to false) execute the stored procedures from here, u can commit or roll back from there on.
    Thanks and Regards
    Srikanth S

Maybe you are looking for

  • LR switching modules on me

    When I'm in the Develop module, clicking on thumbnails, whether I'm making editing changes to them or not, LR will suddently revert to the Library module, sometimes after only the 3rd or 4th thumbnail I click on. This happens in both LR 3 and 4. Anyb

  • IDOC - XI - post HTTP on .ASP?& DATA_CONTENT

    HI ALL ! I have this scenario : 1) R3 send IDOC ORDERS01 to XI (3.0)  2) XI elabs IDOC fields (in mapping step) 3) XI with HTTP Adapter post data to a "page".asp on webserver using querystring (like page.asp?&ID_CUSTOMER=123&ORD_DOC=WE ...etc..) My A

  • Applying patch set update11.2.0.3.7 on 11.2.0.3.0

    Dear DBA's, Database = 11.2.0.3.0 Operating System : Solaris 11 sparc 64. applying PSU patch : 16619892 I am trying to apply patch 16619892 on 11.2.0.3.0 to upgrade it to 11.2.0.3.7. I hope this is a straight forword stuff i beleive, but i am getting

  • Wildcards in viewId?

    Is it possible to assign more than one viewId to an element of for example a menu model? Or can i use wildcards in the viewId? Thx for every hint. regards, Christoph

  • How to uninstall 11G

    Hi Experts, I trying to deinstall OBI 11G but when i am clicking deinstall it is not showing the deinstall popup window it is showing that Could not create java virtual machine. How i have to uninstall this . Regards,