ADF: Procedure to Pl/sql call prior to the loading of the page.

Hello world

I have a requirement to call a Pl/sql procedure prior to the loading of the page. I saw in google everywhere he gave to AMImpl but I want to call the Pl/sql procedure in init method().
The procedure includes four SETTINGS.

How can I do this?

Wat should be the code?

Please, help me get out of very new this.im for the ADF.

Thank you.

Dear user,

Learn little by little the Big :) Book Oracle jdeveloper. It will help you.

Articles of beautiful I can't forget never. :) thank us for these blogerr
http://andrejusb.blogspot.in/2011/04/invoking-stored-procedures-and.html
http://www.baigzeeshan.com/2010/05/calling-PLSQL-procedure-and-function-in.html

Tags: Java

Similar Questions

  • Call Java on the page loading

    Hello

    I'm trying to find a way to call the java bean method on the loading of the page.

    Scenario:

    Page a button with listener action like #{javabean.doSome}

    I need to call javabean.doSome on the loading of the page without pressing the button.

    I can't find the way to do it.

    Help, please

    Thank you

    Leon

    Hello

    Another way to do it is to use the MAF Javascript API to call the Java method. To do this, you can add a component verbatim in your amx page and add the necessary code to call the method.

    The javascript function that allows to make the call is "adf.mf.api.invokeMethod". You can find JSDoc here: http://docs.oracle.com/middleware/maf212/mobile/js-ref/adf.mf.api.html#invokeMethod

    Is there an envent in the page that points out that it has been fully charged. This is "showpagecomplete". You can add a listener to endure.

  • Orcle ADF: Background Image of panel group put on the page is not getting displayed in stubborn browser task-flow

    Hello I'm developing a web application using ADF (jdeveloper 11.1.2.4). I have a template that I have panelGroupLayout. I put a background image for the grouplayout. And I created a test.jsf page from this template. When I run this page directly background image is displayed in the browser. I put this page in a stubborn taskflow. My problem is when I execute this page of the stubborn taskflow background image is not displayed.

    Image is displayed for this URL: http://127.0.0.1:7101/EasyRUN-ViewController-context-root/faces/login?_adf.ctrl-state=1px1s1o6o_26

    Image is not posting to this URL: :7101/EasyRUN-ViewController-context-root/faces/admin-flow-definition/homePage?_adf.ctrl-state=1px1s1o6o_29 http://127.0.0.1

    Please help me. Thanks in advance.

    The part of the url of the background image is the problem, probably

    As first of all, try to assign relative to your location of workflow, for example:

    background-image: url("..) ("/ ERUnBPart2.png")

    just to see what happens

  • Oracle ADF 11 g: invoke managed bean method when the page resizing.

    Given the following code:
     <af:clientListener method="getElementWidth"
                                       type="propertyChange"/> 
                    <af:serverListener type="customEvent"
                                       method="#{columnSizeBean.handleRequest}"/>
    Is there a client listener that can be triggered when resizing browser window?
    Something like:
     <af:clientListener method="getElementWidth"
                                       type="[[[[something like a window resize]]]]]]"/> 
                    <af:serverListener type="customEvent"
                                       method="#{columnSizeBean.handleRequest}"/>
    NOTE:
    getElementWidth is a javascript method in my current code, while columnSizeBean is a sessionScope bean who did some calculations on the width of a table column.

    Published by: Andrei C. on May 18, 2010 05:49

    Hello

    No, it isn't. However, in this case you can use vanilla JavaScript and register to the browser DOM to receive the event notification. If you notice rceive you access the server listener you put on the af:document component. It should work

    Frank

  • How to call the page url inside the procedure.

    Hello


    I'm not exhibition in plsql.
    I have some problem in utl_http link.

    I create a procedure. The procedure has been compiled successfully. But the page url does not open...

    I have attached the procedure,

    create or replace procedure p (number of mob)
    IS
    long l_page;
    l_url varchar2 (25000 char);

    Start
    null;
    l_page: = utl_http.request ("http://www.yahoo.com");
    end;


    Please tell me the solution for this problem...


    I await your response.

    Thank you
    Sasi.

    This is a duplicate thread:

    How to open the web page in pl/sql

    the OP doesn't seem to understand the difference between a web browser and a programming language... I can't say I've ever had to explain the difference before...

    Let's say that... the butterflies are not somehow similar to razors electric...

  • Calling a procedure stored since SQL * PUS

    Hi all

    I want to call a procedure from SQL * MORE who returns the number, varchar2 and one OUT parameter as table index.
    I can declare a variable for the number and varchar2.
    How can I manipulate the array index passed into the procedure output parameter.

    Thanks, Sandeep

    declare
    a number, varchar2 (20) b;
    type t as table of varchar2 (10) index directory. -identical to your procedure declaration
    c t;
    Start
    procedure (a, b, c);
    end;
    /

  • Creation of Adaptert DB to call the stored procedure in MS SQL server

    Hello

    I need to create a DB adapter to call a stored procedure in MS SQL Server.

    I went through the MS SQL Server database connecting wire

    He mentions that he must use a command line utility to generate the wsdl and xsd to call stored procedures in MS SQL server. Please indicate where this utility and how to use it.

    All links to tutorials are welcome.

    Thank you!!.

    Silas.

    The key is SOA_HOME\j2ee\home\connectors\DbAdapter\DBAdapter.jar.

    Make sure that the DBAdapter.jar is at this place

    in my case, it is

    e:\Oracle\product\soa\10.1.3\j2ee\home\connectors\DbAdapter\DBAdapter.jar

    see you soon
    James

  • problem calling sql code when creating the record.

    Hi all

    I have an oracle form code where a fire trigger When_Create_Record in the code to trigger as follows:
    declare
                    v_cnt  number:=0;
                    v_frdt date;
                    v_todt date;
                    Y1     CHAR(2);
                    Y2     CHAR(2);
                    V_ID      PAY_APPLY_HDR.APPLY_NO%TYPE;
                    C      VARCHAR2(10);
                    
    begin
                    C:=FA_PKG_MST.FUN_FINYR(:PAY_APPLY_HDR.APPLY_DATE,V_FRDT,V_TODT);
                    
                    Y1:=TO_CHAR(V_FRDT,'YY');
                    Y2:=TO_CHAR(V_TODT,'YY');
                    
                    SELECT nvl(MAX(TO_NUMBER(SUBSTR(APPLY_NO,9))),0)+1 INTO V_CNT FROM PAY_APPLY_HDR
                    WHERE DIVN=:PAY_APPLY_HDR.DIVN AND SUBSTR(APPLY_NO,3,2)=:PARAMETER.P_PURPOSE_CD
                    AND APPLY_DATE BETWEEN V_FRDT AND V_TODT;
                                                                                                                     
                    V_ID:=:PAY_APPLY_HDR.DIVN||:PARAMETER.P_PURPOSE_CD||Y1||Y2||LPAD(V_CNT,6,'0');
      :PAY_APPLY_HDR.APPLY_NO:=V_ID; 
    END;
    How can I do this in class entity adf impl substitute create method.

    Is probably the simplest solution to this:

    (a) correction of your original code so that it uses a sequence number, and not the SQL courses

    (b) transform your original code in a PLSQL function in the database, and then in your EntityImpl create a JDBC wrapper function to call the stored procedure in database and call it from your create() EntityImpl and apply it to the Set accessor of the identification. This will fill the ID attribute that the folder is created.

    You do not forget however of this sequence number.

    CM.

  • Ability to pass dynamic number of entries to a procedure using native SQL?

    Hello

    We have end users to do things like this:

    var x refcursor;

    exec some_proc (1234,: x);

    print x;

    Now, they want to use dynamic multiple entries like this:

    var x refcursor;

    exec some_proc (1234 5678, 9011,: x);

    print x;

    Yes I know you could do something like this:

    Create the type t_num is table of number;

    declare

    v_nums t_num: = t_num (123,456,789,234);

    v_result sys_refcursor;

    Start

    some_proc (v_nums, v_result)

    end;

    But they have some old piece of middleware simplifying procedure calls which it can handle data types and cursors.  So I was wondering if there is a way to fill a cursor using native sql to succeed in a procedure?  Yes I am assuming that the answer will be no, but I wanted to just make sure.

    But they have some old piece of middleware simplifying procedure calls which it can handle data types and cursors.

    Too old to take a string delimited as input?  Then cut the string and fill it with v_nums in some_proc?  Does not seem a lot of work.

  • The stored procedure PL/SQL - t - it accept the custom Ref Cursor type?

    I am not able to compile the following procedure in the HR schema comes with default oracle... I use Oracle 11g Release 11.2.0.2.0 Express edition. It gives me an error (given after the code block):

    Block of code:
    CREATE OR REPLACE PROCEDURE TEST_REF IS
    DECLARE
    TYPE REF_EMP IS REF CURSOR RETURN % ROWTYPE EMPLOYEES;
    RF_EMP REF_EMP;
    V_EMP EMPLOYEES % ROWTYPE;
    BEGIN
    DBMS_OUTPUT. ENABLE (1000000);
    OPEN FOR RF_EMP
    SELECT * FROM EMPLOYEES WHERE EMPLOYEE_ID > 100;
    EXTRACT THE RF_EMP IN V_EMP;
    DBMS_OUTPUT. PUT_LINE (V_EMP. FIRST_NAME. ' ' || V_EMP. LAST_NAME);
    CLOSE RF_EMP;
    EXCEPTION
    WHILE OTHERS
    THEN DBMS_OUTPUT. PUT_LINE (SQLERRM);
    END TEST_REF;
    /

    Error:
    Errors in PROCEDURE TEST_REF:

    LINE/COL ERROR
    -------- -----------------------------------------------------------------
    2/1 PLS-00103: encountered the symbol "DECLARE" when waiting for an a
    What follows:
    Start function < an ID > pragma procedure subtype type
    < between double quote delimited identifiers > delete the current cursor
    There are the external language prior
    The symbol 'start' is substituted for 'DECLARE' continue.

    16/13 PLS-00103: encountered the symbol "end-of-file" when waiting for him
    one of the following values:
    (begin case declare exit end exception for goto if loop mod)
    pragma raise return null select update while with

    Get rid of the DECLARED:

    SQL> CREATE OR REPLACE PROCEDURE TEST_REF IS
      2  TYPE REF_EMP IS REF CURSOR RETURN HR.EMPLOYEES%ROWTYPE;
      3  RF_EMP REF_EMP;
      4  V_EMP EMPLOYEES%ROWTYPE;
      5  BEGIN
      6  DBMS_OUTPUT.ENABLE(1000000);
      7  OPEN RF_EMP FOR
      8  SELECT * FROM EMPLOYEES WHERE EMPLOYEE_ID > 100;
      9  FETCH RF_EMP INTO V_EMP;
     10  DBMS_OUTPUT.PUT_LINE(V_EMP.FIRST_NAME || ' ' || V_EMP.LAST_NAME);
     11  CLOSE RF_EMP;
     12  EXCEPTION
     13  WHEN OTHERS
     14  THEN DBMS_OUTPUT.PUT_LINE(SQLERRM);
     15  END TEST_REF;
     16  /
    
    Procedure created.
    
    SQL> set serveroutput on
    SQL> exec TEST_REF;
    Donald OConnell
    
    PL/SQL procedure successfully completed.
    
    SQL> 
    

    SY.

  • Proc of PL/SQL call on submit process page returns "PLS-00306: fake...» »

    I have a very simple procedure call. The procedure takes 3 inputs: 2 numbers, and a Boolean value. Every time I try to run the page that calls the proc, I get
    "ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in the call to 'MISSED_DAY_CLASS' ORA-06550: line 1, column 7: PL/SQL: statement ignored."
    I ran the Debug page and values, it's the award appear to be 2 numbers and 1 boolean (TRUE). I executed the same values in the call to the proc outdoors using sql dev and proc call works fine.

    The Boolean value is set via a checkbox with this LOV element:
    STATIC2:; TRUE

    Any ideas are appreciated.
    Thank you
    Reid

    Hello

    I think that the value of the checkbox is not Boolean. It is text (VARCHAR).

    If you change the procedure as well as boolean is varchar2, it works then?
    Or in the process of Apex call differently for example

    IF :Px_YOUR_CHECKBOX = 'FALSE' THEN
     yourprocedure(:Px_NUMBER_ITEM1,:Px_NUMBER_ITEM2, FALSE);
    ELSIF :Px_YOUR_CHECKBOX = 'TRUE' THEN
     yourprocedure(:Px_NUMBER_ITEM1,:Px_NUMBER_ITEM2, TRUE);
    END IF;
    

    I hope you get photo off what I mean

    BR, Jari

  • call a procedure of package DB type complicated if the type defined in the package itself

    Hello world

    I use jdev 11.1.1.7.0

    I defined a package of data with a procedure and internal two types as follows:

    Create Or Replace Package Db_Package As 
    
    Type rec Is Record(Rec_Type Varchar2(10), Rec_Desc varchar2(10) );                        
    Type recordList Is Table Of rec;
    
    Procedure Test_Procedure(p_out out recordList);
    END db_package;
    
    
    

    evil

    I want to call this procedure in the module of the application. I know how to call a procedure or function db AM,

    but in this case that I've defined two types in the package itself and I use one of these types as to the procedure output parameter, I had a problem.

    below is the example of code to call the db procedure, but it does not work because the plsqlBlock.registerOutParameter () setting will not

            CallableStatement plsqlBlock = null;
            String statement = "Begin DB_PACKAGE.Test_Procedure(:1); END;";
            try {
                plsqlBlock = getDBTransaction().createCallableStatement(statement, 0);
                plsqlBlock.registerOutParameter(1, OracleTypes.ARRAY);// it doesn't work
                plsqlBlock.executeUpdate();
                Object object = plsqlBlock.getObject(1);      
    
    
            } catch (Exception e) {
                e.printStackTrace();
            }
    
    
    
    

    I know that if I set the types of packets (rec, recordList) as types of oracle (instead of setting in the packaging itself) so I can call the procedure with success, in this case I should use below:

    plsqlBlock.registerOutParameter(1, OracleTypes.ARRAY,"Recordlist");
    

    but I wonder how you can call a procedure from the package if the types defined in the package itself.

    Kind regards

    Habib

    JDBC supports the types of oracle level package only from 12 c database and jdbc driver ojdbc7 (which requires java 7).

    Dario

  • 11.5.10.2 to R12.1.1 update: error loading of seeds for GL_DEFAS_ACCESS_SETS data: DEFINITION_ACCESS_SET = SUPER_USER_DEFAS, ORA-06508: PL/SQL: called program unit is not found

    Hello

    Version of the EBS: 11.5.10.2

    DB version: 11.2.0.3

    Version of the OS: AIX 6.1

    Under 11.5.10.2 R12.1.1 update, while implementing a merger 12.1.1 upgrade driver (u6678700.drv), we got below error:

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    ATTENTION: All workers have failed or are pending:

    IMPOSSIBLE: folder glsupdas.ldt worker 3.

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    drix10: / fmstop/r12apps/apps/apps_st/appl/admin/FMSTEST/log > tail-20 adwork003.log

    Restart the task that failed and has been corrected.

    Time, when the worker restarted job: Wednesday, August 7, 2013 10:36:14

    Loading data using FNDLOAD.

    FNDLOAD APPS / * 0 DOWNLOAD @SQLGL:patch/115/import/glnlsdas.lct @SQLGL:patch/115/import/US/glsupdas.ldt -.

    Connecting to applications... Successfully connected.

    Call the function FNDLOAD.

    Returned by the function FNDLOAD.

    Log file: /fmstop/r12apps/apps/apps_st/appl/admin/FMSTEST/log/US_glsupdas_ldt.log

    FNDLOAD of error function call.

    When the worker has no time: Wednesday, August 7, 2013 10:36:14

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    drix10: / fmstop/r12apps/apps/apps_st/appl/admin/FMSTEST/log > tail-20 US_glsupdas_ldt.log

    Current system time is sea Aug 7 10:36:14 2013

    Download from data file /fmstop/r12apps/apps/apps_st/appl/gl/12.0.0/patch/115/import/US/glsupdas.ldt

    Changing environment NLS_LANGUAGE AMERICA database

    Dumping from the LCT/LDT files (/ fmstop/r12apps/apps/apps_st/appl/gl/12.0.0/patch/115/import/glnlsdas.lct(120.0), fmstop/r12apps/apps/apps_st/appl/gl/12.0.0/patch/115/import/US/glsupdas.ldt) to the staging tables

    Dumping file fmstop/r12apps/apps/apps_st/appl/gl/12.0.0/patch/115/import/glnlsdas.lct(120.0 LCT) in FND_SEED_STAGE_CONFIG

    Dumping LDT file /fmstop/r12apps/apps/apps_st/appl/gl/12.0.0/patch/115/import/US/glsupdas.ldt in FND_SEED_STAGE_ENTITY

    Dumped the lot (GL_DEFAS_ACCESS_SETS SUPER_USER_DEFAS, GL_DEFAS_ACCESS_SETS SUPER_USER_DEFAS) in FND_SEED_STAGE_ENTITY

    Download of the staging tables

    Error loading of seeds for GL_DEFAS_ACCESS_SETS data: DEFINITION_ACCESS_SET = SUPER_USER_DEFAS, ORA-06508: PL/SQL: called program unit is not found

    Simultaneous request ended

    Current system time is sea Aug 7 10:36:14 2013

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    Hello

    Please, recreate the specification and body of the respective package and try:

    -Navigate to $GL_TOP, patch, 115, sql

    -Connected as a user of the applications.

    sqlplus Oracle@Amazon sql apps]

    SQL * more: version 10.1.0.5.0 - Production Wed Aug 7 13:53:33 2013

    Copyright (c) 1982, 2005, Oracle.  All rights reserved.

    Enter the password:

    Connected to:

    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production

    With partitioning, OLAP, Data Mining and Real Application Testing options

    SQL > @glistdas.pls

    Addition of PL/SQL package for gl_defas_access_sets_pkg specifications

    Package created.

    Validation complete.

    ...

    ..

    SQL > @glistdab.pls

    Addition of the PL/SQL package for gl_defas_access_sets_pkg body

    Package body created.

    Validation complete.

    See if this helps you, validation of the object.

    Better subject.

  • The procedure to upgrade SQL Express to SQL 2005 for VC4.1

    Hello

    Weeks, I successfully passed the VC to 4.1 with the bundled SQL Express. But now I need to spend the VC to save the log more view.  If an upgrade to DB from SQL Express to SQL 2005/2008 is reqired.

    I'm totally unfamiliar with SQL, could someone provide the procedure or steps in detail for the upgrade SQL database in VC 4.1?

    Thank you

    Mark

    See also this KB:

    http://kb.vmware.com/kb/7960893 - movement of the VirtualCenter SQL database

  • Call the procedure this file download, but not from the URL

    Hello

    Oracle 11g, Apex 4.1.1.00.23.

    I have a procedure that generates a CSV of a query (BLOB). The query uses the apex collections.
    As it seems impossible to use collections of the apex outside Apex, I can't call this procedure from the URL to download the file (the query fails).

    How can I call my procedure on click of a button, without reloading the page, and without calling the URL ?

    I have some ideas like the creation of a new page, with a conditional header process that calls my procedure to download the file, then call it in a popup, etc... but I need a simple solution...

    Thank you.

    Yann.

    PS: actually, I need the same functionality when you change a process, let us say a process page, in the source attribute, you link < police = "courier" > [Download Source] < / font >, this link simply calls < police = "courier" > javascript:doSubmit('DOWNLOAD') < / font >, but it seems that the page is not reloaded. That's exactly what I need, it does not call for any procedure in the URL, and it does not reload the page.

    Use an application process. These run in the security model for APEX, including the use of the collections.

Maybe you are looking for

  • 12.4.3.1 iTunes can't backup iphone 6

    Hi support them. Since the upgrade itunes to 12.4.3.1 a few days ago, whenever I try to backup my iphone (ios 9.1) 6, an error msg saying that we cannot backup as it has been disconnected. However, sync works while the backup date is always at the en

  • How to configure synchronization

    I used synching my laptop and desktop as well on XP. Now, I try to add a new laptop on Win 8.1. When I set up the sync he asked my e-mail address and a password. However the username and password I had for a few years are two strings of random charac

  • How to activate the screen touch tablet Portege M200?

    Do I need a special driver for the touch-table display on the Portege M200? I installed about 35 drivers from this site,the buttons of four table on the right of the screen site work - but not the screen itself. What could be the reason - do I have t

  • Why my computer won't let me go to google?

    When I try to go to Google, I found 404not. I used to go to Google. Now, I can't.

  • Windows vista password and do not have a reset disk.

    IM wondering if there is a place to download the password reset software for vista. My friend has forgotten that his password and can't get into his laptop. She forgot to do a password recovery disk >