Calling a SQL function to send all page

In an APEX application, is it possible to call a SQL function so that the application be submitted instead of 'action SQL INSERT'. This function takes 2 parameters user entering the page of the application.

Send page has essentially two text fields and a "submit" button
Version and Patch Info

The SQl function has 2 parameters like this, start_new_env (oracleversion IN VARCHAR2, opatchinfo IN CLOB)

Any help will be much appreciated.

Thank you

Published by: Rajesh on November 17, 2009 08:49

Please mark it as answered and mark it as correct...
Thank you

Tags: Database

Similar Questions

  • What is the function to hide all pages in a form?

    Hello

    What function I could use to hide all pages in a form?

    For example: when a user click on a button, I want to hide all the pages of the form.

    Thank you.

    Hello

    This works because the script in parentheses () is re-run until the value of i is 25.

    The loop is built in three parts:

    var i = 1;     He declares the variable i and sets with an initial value of 1

    I have<=25;     this="" is="" a="" test,="" the="" loop="" runs="" until="" i="" is="" greater="" than="">

    i ++ which increase the value of i by 1 every time the loop is executed

    When you put is all together that...

    for (var i=1; i<=25; i++)
    {
         // script in here will run 25 times
    }
    

    If you use a hidden for the number of pages field, you must set this default value at design time (object > range of value). So the for statement would look like this:

    for (var i=1; i<=totalNumberPages.rawValue; i++)
    

    You don't need to change the variable i of all.

    Hope that helps,

    Niall

    Ensure the dynamics

  • How to call PL/SQL function processRequest

    Hello

    I'm trying to run a function called xxhr_trg_evaluation_pkg.xx_get_class_desc (1);

    How can I run the above inside the processRequest function and pass the value returned in a variable string.

    Thanks in advance

    Kind regards... Ashraf

    Ashraf,

    The following code will help you how to call the function or procedure in processRequest.

    processRequest Code:

    {} public processRequest Sub (pageContext OAPageContext, OAWebBean webBean)

    Oaam = pageContext.getApplicationModule (webBean) OAApplicationModule;
    OADBTransaction dbtrans;
    TXN OADBTransaction = (OADBTransaction) oaam.getOADBTransaction ();

    statement that even execute the statement as pl/sql in Toad
    = Txn.createCallableStatement cs CallableStatement ("start: 1: = xxhr_trg_evaluation_pkg.xx_get_class_desc (: 2); end;", 0);

    variable will contain the return value
    String outputVal ="";

    pass the value of the entry to the callable statement
    try {}
    cs.setString(2,1+"");

    }
    catch (Exception e) {}
    }

    try {}
    CS. Execute();
    outputVal = cs.getString (1);
    }
    catch (Exception e) {}
    }

    try {}
    CS. Close();
    }
    catch (Exception e) {}
    }
    Did all the insert/update/etc means do validation of here too but you did not engage in the service by using the following syntax
    dbtrans.Commit ();

    }

    Thank you
    SAN

  • Calling a SQL function which has Out parameters

    Hello people,
    I don't know if it's feasible, but here's my scenrio at hand. I have a database function that accepts a few parameters AND OUTPUT parameters. I want one Out to display in my select statement parameters. Is this possible?

    Thank you

    No you can not use a function with out parameters in sql statements.

    If possible do the function of this return value, use it in select. (imean instead of the parameter, OUT out which parameter through the BACK)

    G.

  • Call a Javascript function in a Captivate 7 Web page

    Hello

    I try to call a javascript function in a web page to Captivate 7. The call is an output of blade event. When I saw the (F4) project, I have a prompt that displays a javascript function is called and told me to display in a web page. Of course, which is perfectly logical. However, when I go to the same project in the hml with the necessary Javascript function in page, I get nothing. The script is a simple that displays an alert.

    I made sure the SWF in question is defined in the global security settings. I know that the javascript function is correctly formatted.

    Can someone please give me an example of how to "execute Javascript" call of Captivate to a function residing in the html page please.

    Any help is appreciated.

    Don't just add the SWF file to the Flash security locations overall of confidence.  Add the entire folder containing all the files published, or better still, a level that contains all your published Captivate projects so that you never have to worry about Flash security issues again.

    Also, if it still does not work, I would try the same running JavaScript with a different event than the event output slide.  It can be a little bit reliable.

  • Problem when calling a return function of SQL BOOLEAN in package type

    Hi all

    I'm having a problem when you try to call a SQL function in a package with the return BOOLEAN type
    The SQL function signature is
    ####

    CREATE OR REPLACE PACKAGE RMSOWNER. ORDER_ATTRIB_SQL *.

    FUNCTION GET_PO_TYPE_DESC (O_error_message IN OUT VARCHAR2,
    I_PO_TYPE IN VARCHAR2,
    O_PO_TYPE_DESC IN OUT VARCHAR2)
    RETURN A BOOLEAN VALUE;

    ####


    Here is my java code

    ####
    + Cs3 CallableStatement = conn.prepareCall ("{?}") = call ORDER_ATTRIB_SQL. GET_PO_TYPE_DESC(?,?,?)} ");" +
    + CS3.registerOutParameter (1, java.sql.Types.BOOLEAN) +;
    + CS3.registerOutParameter (2, java.sql.Types.VARCHAR) +;
    + CS3.registerOutParameter (4, java.sql.Types.VARCHAR) +;
    + CS3. SetString (2, ""); +
    + CS3. SetString (3, "ST"); +
    + CS3. SetString (4, ""); +
    + ResultSet rs3 = cs3.executeQuery (); +
    ####

    I get the following exception, I tried to change the (registerOutParameter) boolean sql type bit, but I've always found this exception.
    But when I call all other functions with a return type other than boolean, they work perfectly well.

    Please can someone help me solve this problem, I don't know if its something to do with classes of JDBC providers?

    #####
    + java.sql.SQLException: ORA-06550: line 1, column 13: +.
    + PLS-00382: expression is of the wrong type.
    + ORA-06550: line 1, column 7: +.
    + PL/SQL: statement ignored +.

    + oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) +.
    + oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331) +.
    + oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288) +.
    + oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743) +.
    + oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:215) +.
    + oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:954) +.
    + oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1168) +.
    + oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3316) +.
    + oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3422) +.
    + oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4394) +.

    #####

    Looks like it's a Limitation of the jdbc drivers. Please visit the following link:
    http://www-Camden.Rutgers.edu/help/documentation/Oracle/Java.815/a64684/typesup1.htm

    Here is an excerpt from above:
    ==========================================================
    PL/SQL BOOLEAN, RECORD and the Types of TABLES of packing

    Oracle JDBC drivers support the argument of appeal or return values of PL/SQL TABLE types (now known as indexed arrays by), REGISTRATION or BOOLEAN.

    To work around the problem, you can create wrapper procedures that manage data like types supported by JDBC. For example, to wrap a stored procedure that uses PL/SQL Boolean values, you can create a stored procedure that takes a character or a number of JDBC and passes to the original procedure as BOOLEAN or, for an output parameter, accepts a BOOLEAN of the original procedure argument and pass it as a TANK or a NUMBER to JDBC. Similarly, to wrap a stored procedure that uses PL/SQL records, you can create a stored procedure that maintains a record in its individual components (such as CHAR and NUMBER). To wrap a stored procedure that uses PL/SQL tables, you can divide the data into components or perhaps use Oracle collection types.

  • Error when you try to call the Javascript function in the ActiveX Web browser

    I have a requirement to call a Javascript function in a web page that is displayed in the browser's ActiveX control.  I have the control on the front panel, and I use the Navigate method to call to the top of the appropriate page.  Based on an example, I found, I'm trying to get a reference to the HTML Document so that I can then get a reference to the Fenetreparent.  There is a method of the HTML Window object called execScript who I'm calling.  See the attached image of the code (reference close calls do not appear, but when I run it, they are there).

    I can't the node property that returns the parentWindow reference.  The error I get is the following.

    Error-2147467262 LabVIEW: (Hex 0 x 80004002) No. taken such interface supported.

    Any ideas on where to go from here?

    Hello

    I have reproduced the issue and the error you are seen and tried to understand what is the solution.

    It seems that the problem is with getting the pointer to the parentWindow.  From what I read on MSDN, it's maybe a limitation in the use of an ActiveX control in LabVIEW. It seems like Internet Explorer creates the object of the window, and so opening in one ActiveX control you free access to this top-level object.

    Here could be workaround for javascript execution in your program:

    I would like to know if it works for you and if it will work in your program.

  • XQuery SQL function

    Hello

    In a query XQuery is posssible to call a function or procedure SQL (PL / SQL)?
    Here is an example of what I had accomplished:


    SELECT THE PRD. XMLCOLUMN of
    XMLTABLE (' for $i in ora: view("P_iXXX")/LINE)
    $j in ora: view("P_jXXX")/LINE.
    where
    ($i / NSU_xxx = $j/NSU_xxx)
    return
    (
    < NCL >
    {
    $i / NSU_xxx,
    H3. CALL the SQL function? as sql_xxx
    for $k in ora: view("P_kxxx")/ROW
    ($vk/COD_RMP_VPM = "PRD")
    Return()
    }
    < / NCL >
    () "PATH of XMLType 'XMLCOLUMN' COLUMNS 'resultsqlfunction' INTEGER PATH 'xsql_xxx' INTEGER ACCESS to 'NSU_xxx' path 'NSU_xxx', '.') as the PRD;

    Thanks in advance for your answers
    François

    Who today replaces "ora: see?

    On 11.2, ora expansion feature: view() is deprecated in favor of the fn:collection("oradb:/") method:

    http://docs.Oracle.com/CD/E11882_01/AppDev.112/e23094/xdb_xquery.htm#BABECFFD

    My DBA database have installed Oracle XML DB to use the XMLType and XMLTable, I thought that these features among other things speed up the creation of XML.

    What are the benefits of using XQuery and XMLTable and XMLQUERY functions?

    Which version of the database you use?

    Please read: http://docs.oracle.com/cd/E11882_01/appdev.112/e23094/xdb_xquery.htm#CBAGCBGJ

    Is there another method to expedite the creation of XML?

    Publication of SQL/XML functions are probably the best way to create custom relational data XML documents.

    The basic functionality of XQuery is not to the RDBMS query tables or views, although Oracle provides extensions to do.
    Most of the time, I use XQuery (via XMLTable and XMLQuery) to do exactly the opposite, i.e. to extract XML data in a relational form, or the transformation of XML fragments.

    If your actual requests are slow - even if you need to define what that means and that you are pregnant - then maybe the SQL/XML functions are not the real problem.

    In a "Where clause" as I turn, I have several "outer join". Here is an example.

    where
    PPM. NSU_PPM = w.NSU_PPM and FRNS. NSU_FRN (+) IS FCO. NSU_FRN and FCO. NSU_FCO (+) IS PPM. NSU_FCO
    and T2O. NSQ_T2O (+) IS PPM. NSQ_T2O
    and T51. NSQ_T51 (+) IS PPM. NSQ_T51
    and TWU. NSU_STT (+) IS PPM. NSU_STT
    and T01. NSQ_T01 (+) IS PPM. NSQ_T01
    and vpm.cod_rmp_vpm (+) = "PRA".
    and vpm.num_vsn_vpm (+) = PPM.vsn_sup
    and w.nsu_ppm = A.nsu_ppm (+)
    and W.NSU_SOO = A_HEADER. NSU_SOO and A_HEADER. NOR_SOM = 0

    Yes, it's exactly what I was talking about.
    Transposing the logic for XQuery 1.0 is not the approach more simple (to say the least), because there is no direct support OUTER JOIN.
    XQuery 3.0 provides the functionality, but it is not yet here in the database.

    My suggestion would be to stick to the publication of SQL/XML functions.
    If you have a specific question about the performance, we (as the members of the forum) will be happy to help you.
    Provides the steps necessary to reproduce the problem, including some examples of data.

    Kind regards

    Marc.

  • How to call function of a process Page PL\SQL Javasrcipt

    Hello

    I have a javascript function say - function1 () defined in the Page header.
    I have a page PL\SQL process after the header.

    How can I call the javascript function - function1 () - of PL\SQL Page process.

    Thank you
    Deepak

    Hi Michael,

    I have a page PL\SQL process after the header.

    Since it's after the header (in the rendering phase) process, I think that this will call the JS? Please correct me if I'm wrong :-)

    See you soon,.
    Hari

  • Call PL/SQL and Oracle ADF Application reports Open functions

    Hi all

    My company will convert some projects of Oracle forms to Oracle ADF, so we must call the PL/SQL functions and open the Oracle reports (which are already exist) the ADF application.

    Thank you..

    Jack.N

    Hi Jack.N,

    call the functions PL / SQL---> http://sameh-nassar.blogspot.com/2010/01/create-plsql-function-and-call-it-from.html

    Open Oracle reports---> http://radio-weblogs.com/0137094/2008/06/15.html

    There is integration between the ADF and other systems in---> http://wiki.oracle.com/page/ADF+Integration

    Sameh Nassar

  • A c from pl/sql function call

    Hello

    I'm testing a simple case to call a C function from a pl/sql block.

    Here's my test case (came to :)

    TST.c:

    #include < ctype.h >

    #include < stdio.h >

    int upcase (char * istr, char * ostr)

    {

    int i = 0;

    While (ISTR)

    {

    OSTR [i] = toupper (istr [i]);

    i ++ ;

    }

    return 0;

    }

    // compile
    gcc -fPIC -c tst.c

    // create shared object

    ld -shared -o libtest.so tst.o

    file libtest.so

    libtest.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), not stripped

    // wrapper library and function

    SQL> create or replace library libtest as '/home/oracle/libtest.so';
    /
    Library created.


    create or replace function upcase (instr in varchar2, outstr out varchar2) return directory is

    external

    libtest library

    name 'upcase '.

    C language

    call the standard C

    settings)

    string InStr,

    outStr string

    );

    /

    Listener.ora:

    LISTENER =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP)(Host = server1) (Port = 1521))

    (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC))

    )

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (GLOBAL_DBNAME = PRD_DGMGRL)

    (ORACLE_HOME = home/app/product/11.2.0/jko)

    (SID_NAME = PRD)

    )

    (SID_DESC =

    (ORACLE_HOME = home/app/product/11.2.0/jko)

    (SID_NAME = PLSExtProc)

    (= Extproc PROGRAM)

    (ENVS = "EXTPROC_DLLS = ANY")

    )

    )

    LOG_DIRECTORY_LISTENER = / home/app/network/log

    CONNECT_TIMEOUT_LISTENER = 10

    TRACE_DIRECTORY_LISTENER = / home/app/network/trc

    STARTUP_WAIT_TIME_LISTENER = 0

    USE_PLUG_AND_PLAY_LISTENER = OFF

    ADMIN_RESTRICTIONS_LISTENER = WE

    LOG_FILE_LISTENER = listener.log

    TRACE_LEVEL_LISTENER = OFF

    tnsnames.ora:

    EXTPROC_CONNECTION_DATA =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC))

    (CONNECT_DATA = (SID = plsextproc))

    )

    declare

    str1 varchar2 (20);

    VARCHAR2 (20) str2;

    Directory of RC;

    Start

    str1: = "Hello World";

    RC: = upcase (str1, str2);

    dbms_output.put_line (' rc ='|) RC: ' instr =' | str1 |' outstr =' | str2);

    end;

    /

    declare

    str1 varchar2 (20);

    VARCHAR2 (20) str2;

    Directory of RC;

    Start

    str1: = "Hello World";

    RC: = upcase (str1, str2);

    dbms_output.put_line (' rc ='|) RC: ' instr =' | str1 |' outstr =' | str2);

    end;

    /

    ERROR on line 1:

    ORA-28576: interruption of the RPC connection to the external procedure agent

    ORA-06512: at "SYS." UPCASE', line 1

    ORA-06512: at line 7

    How I did wrong?

    Thanks a lot for your help

    jko

    The error means generally that your external procedure (process c in this case), failed or crashed.

    The details of the Oracle error:

    28576, 00000, "loss of the RPC connection to the external procedure agent."
    * Cause: A fatal error occurred either a RPC network connection.
    agent extproc or the invoked 3GL after disclosure
    was created successfully.
    * Action: First check the 3GL code you are calling; the most likely
    This error is an abnormal termination of the
    called 'C' routine. If this is not the case, look for
    network problems. Correct the problem if you find. If all the
    components appear normal, but the problem persists, the
    problem could be an internal logic error in the transfer of the CPP
    code.  Contact your customer support representative.

    Probably the dynamic loader used by the kernel to resolve external dependencies than physical of the executable failed?

    Mike Board solves the problem? IMO, it should...

  • call the XMLQuery pl sql function

    Hi all.
    Is anyone know how to call the function sql pl by XMLQuery query?

    For example:

    I pl sql function "test()".

    And the desire to write this way:

    Select XMLQuery (' let $t = test()' returning content);

    How to change to work?

    Thanks for all the answers.
    Kind regards
    Anton.

    following should give you an idea:

    SQL> select xmlquery(('if (2*2 = ' || power(2,2) || ') then 1 else ()') returning content) x from dual
    
    X
    -----
    1
    1 row selected.
    
  • Need to call the javascript function when the page is loaded

    Hello - I have a javascript function defined on Page 0 of my application. It is in the source of an unconditional
    region whose view point is after the header.

    I call successfully the function of event onchange on individual page elements. (The function
    sets the value of an element based on the value of another).

    But I also need to call the function when the page is loaded. The page is a form of data modification,
    so many values is filled when it is loaded, and I need the dependent values populated
    also.

    I tried to add the call to function in the following way. It is not at all get called (alerts are not forthcoming)
    and there is no error in the Firefox error console...
    - as an event onload in individual items
    -call directly to the edit HTML page header
    -call directly from the HTML body of the edit page (which, from what I've read, sounds
    as to execute onload and my page template doesn't have a defined substitution onload string).

    In these 2 cases, I simply call it like: jsLookupValue ($v ("P8_OBJECTTYPE_ID"), "objecttype_id", "P8_OBJECTTYPE_NAME", "objecttype_name", "hdb_objecttype");

    How can I do this?

    Thank you
    Carol

    If you define the function on the zero page and any page you should be able to call using something like:

    
    

    Have you tried to put just a statement alert() on the page in order to check that it runs just about anything?

  • I want to open my email using firefox, but since the installation of Google Chrome, all the links in e-mail are open with it, and I have access to my firefox toolbars to send a page, etc.

    All e-mails are opened by Google Chrome since I installed it. I want to use Firefox with its toolbars for emailing pages, etc. and there seems to be no simple way to send a page using Chrome.

    I tried to uninstall Chrome, but then couldn't open any email.

    Make sure your Firefox as default browser? See:

  • I got 2 phone calls today claiming to be from Microsoft saying that my warranty on my Windows operating system software was exhausted that my pc was sending all sorts of error messages.

    Microsft security

    I got 2 phone calls today claiming to be from Microsoft saying that my warranty on my software windows o/s was exhausted that my pc was sending all sorts of error messages for them and it was so full of spyware and malware and the only way to remedy this was to pay £80 for a years warranty and they would clean my pc otherwise if left intact it would soon crash and be unrecoverable the pc was purchased from Dixons 4 years with Vista Home Prem installed, it's just? , I thought it was a scam as it the phone number was not available, anyone else had this? .

    Here is some information on this type of scam in the United Kingdom

    http://www.BBC.co.UK/News/technology-15690898

    http://www.guardian.co.UK/technology/2011/Sep/22/Microsoft-drops-partner-accused-scam

    http://www.Microsoft.com/en-GB/security/online-privacy/avoid-phone-scams.aspx

    You are in luck, that it took so long to find you. Warn your friends.

Maybe you are looking for