Submit to a stored procedure of Page APEX

I created a page 6 APEX to allow the user to execute a stored procedure. Page 6 has a process of page named "Execute the stored procedure." In the section Source is the following logic:

DECLARE
v_error_tracking VARCHAR2 (4000);
BEGIN
v_error_tracking: = 'text ';

#OWNER #. ERR_CREATELOG_PROC (UPPER(:P6_EMG_NAME)
,: P6_EMG_EFF_FROM_DATE
,: P6_EMG_EFF_TO_DATE
(: APP_USER);

() apex_mail. Send
p_to = >: APP_USER | "@nycha.nyc.gov", change to your email address
P_FROM = > '[email protected]', - change of an actual e-mail address shippers
p_body = > ' name of emergency: ' | TRIM(:P6_EMG_NAME) | "End of the update log procedure."
p_subj = > ' name of emergency: ' | TRIM(:P6_EMG_NAME) | ERR ' Update Process Status);

APEX_MAIL. PUSH_QUEUE;
END;

This process is: on submit after computauions and validations

The point of the process of the branch to Page 1 is: present immediately after treatment (after computaion, validation and treatment)

When I click the button submit the process runs. There is an exhibition brief thermometer green in the status bar of the browser that finally expires before the process ends. The apex_mail.send process runs not until the last commit an ERR_CREATELOG_PROC is issued and the process is exists. (I thought that maybe the stored procedure hung because I had an OUT parameter in the stored procedure, but I disabled it that and still get the same results.) I want to submit ERR_CREATELOG_PROC, then the page creates a branch to the calling page 1 while the process is running on the database server. (I have also remove the call to apex_mail and possibly appeal to UTL_SMTP within ERR_CREATELOG_PROC.)

I tried to process the branch point to Page 1 is: present immediately after treatment (after computaion, validation and BEFORE treatment) with the same results.

How can I submit a stored procedure to execute on the database of this page, the system immediately return to the page and then continue processing normally?

Published by: Comet on February 15, 2012 12:44

Comet says:
I want to submit ERR_CREATELOG_PROC, then the page creates a branch to the calling page 1 while the process is running on the database server.
...
How can I submit a stored procedure to execute on the database of this page, the system immediately return to the page and then continue processing normally?

apex_plsql_job API allows to PL/SQL, which will be presented program units to run asynchronously in the background.

Tags: Database

Similar Questions

  • Apex. Submit-> process to run one of the two stored procedures on page

    version: 4.2.5

    page one region: form on the stored procedure

    region of page two: form on the stored procedure

    The region button 'submit' for the region page 2:

    ACTION: Redirect URL

    Run Validations: YES

    Target URL: javascript:apex.submit ('CALL_MY_PROC');

    'Treatments' execute the stored procedure

    Point process: submit now - after calculations and Validations

    Enforcement process: once a Page visit (by default)

    ...

    Conditions

    When you press the button:-no Condition button

    Condition type: request = Expression 1

    Expression 1: REQUEST = CALL_MY_PROC

    The expected behavior is to call the stored procedure in the region on two page without invoking the other stored procedure.  Separation of concerns is desired, this button sends the form this proc, this button argues that form to this proc.  Nor should call each other, so to speak.

    The stored procedure is not called when I click 'Submit' (button from region to region page two).  How can I solve this?

    Thanks in advance for any guidance.

    -abe

    Solution: the status... are not REQUEST =

    -abe

  • See the output of a stored procedure on APEX

    Hello

    I have a PL/SQL stored procedure that will be executed when you press "SUBMIT" button.
    Inside of this procedure, it executes a DDL statement and keep the result of the DOF in a variable on each LOOP. The value of this variable will be replaced with the next run.

    For example.

    For i in 1.ULIMIT loop
    run immediately 'alter var2 (i) blah blah... ". » ;
    result message: = "works ok";
    EXCEPT
    WHILE OTHERS THEN
    result_message: = "error";
    END LOOP;

    I guess I can create a large number of hidden objects to store the value of the variable of my procedure, but I don't think it's a good idea? Because the ULIMIT value can be changed. Is it possible that I can keep the value of this variable in each loop and display in a report of the APEX?

    If you plan to get answer to your questions in the future, you must mark responses as useful or correct if they indeed helped you solve your problems.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • Version of 5.0.2.00.07(online à APEX) - error in the execution of a stored procedure through anonymous block

    DECLARE

    the stored procedure varchar2 (25);

    BEGIN

    -DBMS_OUTPUT. Put_line ("enter the name of the procedure :'||: procname");

    the stored procedure: =: procname;

    DBMS_OUTPUT. Put_line (' procedure :'|| stored procedure);

    stored procedure.

    END;

    : procname is a variable binding in the apex to switch the running value.

    apex-bind_var.png

    This is the error I get

    ORA-06550: line 7, column 2:

    PLS-00221: "STORED procedure" is not a procedure or is not defined

    ORA-06550: line 7, column 2:

    PL/SQL: Statement ignored

    5the stored procedure: =: procname;

    6 DBMS_OUTPUT. Put_line (' procedure :'|| stored procedure);

    7. the stored procedure.

    8 END;

    SmtWtL wrote:

    DECLARE

    the stored procedure varchar2 (25);

    BEGIN

    -DBMS_OUTPUT. Put_line ("enter the name of the procedure :'||: procname");

    the stored procedure: =: procname;

    DBMS_OUTPUT. Put_line (' procedure :'|| stored procedure);

    stored procedure.

    END;

    : procname is a variable binding in the apex to switch the running value.

    This is the error I get

    ORA-06550: line 7, column 2:

    PLS-00221: "STORED procedure" is not a procedure or is not defined

    ORA-06550: line 7, column 2:

    PL/SQL: Statement ignored

    5. the stored procedure: =: procname;

    6 DBMS_OUTPUT. Put_line (' procedure :'|| stored procedure);

    7. the stored procedure.

    8 END;

    What you're trying to achieve?

    Bind variables cannot be used for the dynamic execution of stored programs. Dynamic SQL using lexical rather than bind substitution must be used to run when the program name is not known until execution of the programs.

    declare
      sproc varchar2(25);
    begin
      sproc := :procname;
      dbms_output.put_line('procedure:'||sproc);
      execute immediate 'begin ' || sproc || '; end;'; -- DO NOT DO THIS!
    end;
    

    It is a fundamental design flaw and a security disaster. It's stops essential compilation controls is performed and is open to attack by SQL injection and other security vulnerabilities. There is no good reason to do this.

  • dbms_job. Submit insertion values in a table using stored procedure

    values are inserted into a table by using the stored procedure by using the sequence and creating a job to trigger after every 10 seconds...

    create table test (collar number);

    table created.

    create sequences seq_test
    start with 1
    Increment 1;

    order of creation.

    create or replace procedure sp_test is
    Start
    loop
    Insert into test values (seq_test.nextval);
    end loop;
    commit;
    end;

    created stored procedure

    Report the number of jobno;
    BEGIN
    DBMS_JOB. SUBMIT)
    jobs = >: jobno.
    This = > 'sp_test;',
    next_date = > TRUNC (SYSDATE + 1/1440).
    interval = > 'SYSDATE + 10/86400',.
    no_parse = > TRUE
    );
    COMMIT;
    END;

    stored procedure created successfully



    every thing is done, but why the feature is always wrong...
    Please help me

    Hello

    Lucien wrote:
    ...
    create or replace procedure sp_test is
    Start
    loop
    Insert into test values (seq_test.nextval);
    end loop;
    commit;
    end; ...

    Have you tested this procedure first? It has an infinite loop. If this is the case, it's inserting row after row in the table, but never to commit, because he never leaves the loop.

    It seems that what you posted is a much simplified version of what you really do. Simplify things for posting on this forum is a good idea, but this one is so simple that I don't see the point of it, so I can't offer a better way to do. Maybe you shouldn't have a loop in the process. Whatever you do, test it before you submit it as a job.

  • The call PLSQL stored procedure from the HTML form Submit button

    Hello

    I'm having a little difficulty with the appellant a stored procedure using a html form button. Here is the code I have right now...
    HTP.PRINT('<form action=ZWGKERCF.P_confdelete>');
    HTP.PRINT('<input type=''submit'' value='' Yes '' onClick=''document.getElementById("mypopup").style.display="none"''>');
    HTP.PRINT('</form></div>');
    Here's the question - I need to find a way to pass variables to this stored procedure, so he knows what data to operate on. This stored procedure removes the data in a specific database record and I have to pass three variables to this procedure to run.

    Allows to call class_number, term, conf will impact these three variables and the data will be deleted and the person will see a confirmation screen once the deletion request completed.

    So ideally I would want: ZWGKERCF. P_confdelete (class_number, term, conf), then the stored procedure would deal with the rest!

    Seems simple enough, but I don't know how to make this happen... My thoughts were:

    Transmit data to this (the three areas that I need) html form in hidden variables. Then somehow pass them using the POST method to the procedure and read using GET?

    Can someone clarify what the best way to do it? I feel that its little something miss me you - but I would really like an idea expertise :-)

    Thank you very much in advance!

    -Jeff

    >
    ...

    I would like to assign a variable, the duration, the conf crn all variables in this procedure and then act on them accordingly.

    But you already have it in a variable. If you want you can assign the value again to another variable.

    example of

    PROCEDURE P_confdelete(CRN NUMBER,TERM NUMBER, CONF VARCHAR2)
       IS
          v_crn number(38);
          v_term number(38);
          v_conf varchar2(1000);
    
      BEGIN
           HTP.PRINT('test1 '||crn||'/'||term||'/'||conf); 
    
          v_crn := crn;
          v_term := term;
          v_conf := conf;
    
          HTP.PRINT('test2 '||v_crn||'/'||v_term||'/'||v_conf); 
    
    END P_confdelete;
    
  • Appeal procedure on page and PLS-00049 stored error?

    Hello guys!

    I am facing many problems this morning! First of all, that I need to deal with is this.

    I created the process page (see below: 1 code) in order to validate if all records where LNG_GEBIET is to have the status of 3 or 4. If this is the case I want to call the procedure 'set_status_arbeit_zu_gebiet '. If amountrs and countstat do not match, then nothing is meant to do.

    The problem lies in the stored procedure itself. I have an error PLS-00049 bind variable for: new. LNG_GEBIET.

    Can you please tell me what I forgot to declare in the code 2 below?

    Thank you guys!

    The process of the page:
    Declare
      
      amountrs    number;
      countstat   number;
    
    begin
     SELECT COUNT(*) INTO amountrs FROM TBL_PUNKTDATEN where LNG_GEBIET = :P4_CNT_GEBIET;
     SELECT COUNT(*) INTO countstat FROM TBL_PUNKTDATEN where LNG_GEBIET = :P4_CNT_GEBIET and INT_STATUS = 3 or LNG_GEBIET = :P4_CNT_GEBIET and INT_STATUS = 4;
    
        IF amountrs = countstat THEN
         set_status_arbeit_zu_gebiet;
        ELSE
         dbms_output.put('nothing');
        END IF ;
    
    end;
    Code 2 with the real problem!
    CREATE OR REPLACE PROCEDURE set_status_arbeit_zu_gebiet
    IS
        cursor c2 is select LNG_GEBIET from TBL_ARBEIT_ZU_GEBIET where PNUM = 1114 and LNG_GEBIET=:new.LNG_GEBIET;
        v_c2  c2%ROWTYPE;
    BEGIN
       open c2;
    fetch c2 into v_c2;
    if c2%notfound then
            INSERT INTO TBL_ARBEIT_ZU_GEBIET
            ( 
            LNG_GEBIET,
              LNG_ARBEITSSCHRITT,
              PNUM,
              INT_BEARBEITER,
              DATE_DATUM, 
              GEPL_DATUM
            )
            VALUES
            (:new.LNG_GEBIET,
             52,
             1114,
             895,
             sysdate,
             to_date('01.01.1990', 'DD.MM.YYYY')
            ); 
            commit;
            close c2;
    END set_status_arbeit_zu_gebiet;
    Another question: is it possible to integrate the first validation that calls my stored procedure in code 2?

    Thanks for your time!

    Sebastian

    The error is in training subsequently:

    INSERT INTO TBL_ARBEIT_ZU_GEBIET (...) VALUES (: new.) LNG_GEBIET,...) ;

    As the statement is part of a procedure and no trigger is not able to bind to this variable with any value.

    As a resolution, pass this value to the procedure of the process and use it in the insert statement.
    The process will have after the IF statement:_

    IF amountrs = countstat THEN
    set_status_arbeit_zu_gebiet *(:P4_CNT_GEBIET) *;
    ON THE OTHER
    dbms_output.put ('nothing');
    END IF;

    and the procedure will be as follows:_

    CREATE OR REPLACE PROCEDURE set_status_arbeit_zu_gebiet *(p_lng_gebit varchar2) *.
    IS
    cursor c2 is select LNG_GEBIET from TBL_ARBEIT_ZU_GEBIET where PNUM = 1114 and LNG_GEBIET = -: new. LNG_GEBIET - p_lng_gebit ;
    v_c2 c2% ROWTYPE;
    BEGIN
    ...
    INSERT INTO TBL_ARBEIT_ZU_GEBIET (...)
    VALUES
    ( -: new.) LNG_GEBIET - p_lng_gebit,...) ;

    ...

    END set_status_arbeit_zu_gebiet;

  • How to extract data from the APEX report with stored procedure?

    Hi all

    I am doing a report at the APEX. the user selects two dates and click on the GO button - I have a stored procedure linked to this region of outcome for the stored procedure is called.

    my stored procedure does the following-

    using dates specified (IN) I do question and put data in a table (this painting was created only for this report).

    I want to show all the data that I entered in the table on my APEX report the same procedure call. can I use Ref cursor return? How to do this?

    Currently, I use another button in the APEX that basically retrieves all the data from table. Basically, the user clicks a button to generate the report and then another button for the report. which is not desirable at all :(


    I m using APEX 3.1.2.00.02 and Oracle 10 database.

    pls let me know if you need more clarification of the problem. Thanks in advance.

    Kind regards

    Probashi

    Published by: porobashi on May 19, 2009 14:53

    APEX to base a report out of a function that returns the sql code... Your current code goes against a Ref cursor returns the values...

    See this thread regarding taking a ref cursor and wrapping it in a function to channel out as a 'table' (use a cast to cast tabular function vale)...

    (VERY COOL STUFF HERE!)

    Re: Tyring to dynamically create the SQL statement for a calendar of SQL

    Thank you

    Tony Miller
    Webster, TX

  • Simple question-how to call a stored procedure or function of apex?

    Simple question-how to call a stored procedure or function of apex?
    Thanks advance.
    Doug

    Hi Doug,.
    You can call a procedure or function of apex. It depends on what you want to do with the function or procedure. If you want to retrieve table data in a specific area, you can try something like this-

    The following statement creates the function get_bal on the oe.orders of sample table (PL/SQL is in italics):

    CREATE FUNCTION get_bal (acc_no in NUMBER)
    RETURN NUMBER
    IS acc_bal NUMBER (11.2);
    BEGIN
    SELECT order_total
    IN acc_bal
    Orders
    WHERE customer_id = acc_no;
    Return (acc_bal);
    END;
    /

    The function created in the previous example can be used in a SQL statement. For example:

    SELECT get_bal (165) FROM DUAL;

    GET_BAL (165)
    ------------
    2519

    hope this will help,

    Kind regards

    Pascal M
    http://Tajuddin.whitepagesbd.com

  • Insert a record, call a stored procedure and execute a shell script

    Hello

    I am trying to build a page APEX do these three things in order.

    #1. Insert a new record in a database table (pk, donnees_xml, attr1 and attr2, etc.) and download the XML file to the donnees_xml column

    #2. Save this XML file on a file system

    #3. Parse the XML file on a file system and update the database with the parsed data table

    I can do #1 with a regular shape based on the database table. I can do #2 with a stored procedure.

    I can do #3 with a shell script.

    I wonder how these tasks can be combined into a single action in APEX.

    do #1;

    If successful, do #2;

    If successful, do #3;

    I'd appreciate comments on this.

    Thank you

    Define a process of PL/SQL page submit that runs after the record is inserted, if P1_FILE is not null.

  • call a pl/sql stored procedure from a report link

    Hi all:

    I have a report with a link in a column, which you take to another page and passes the values to this page, but also need to link, run a stored procedure before you go to the other page.

    In the Forum, I found a case similar to this one, but none of the examples is clear to me that I'm doing this. It seems that the target of the link must be URL, and also I have to call the stored procedure with a javascript function.

    My questions are:
    -Is the best way to do what I need?
    -How should be the syntax of the link that takes me to another page and run the "procedure".
    -How and where I put the "javascript" function to execute the "stored procedure".


    BDD: Oracle 11 g
    Apex 4.1 version


    Best regards

    Gerard

    Hello

    Change the link to call an apex.submit procedure. (javascript).

    Edit:

    I created a basic example.

    Region 1 (just so that you can see the value ready):

    Select: P27_HIDDEN item_Value
    of the double

    Region 2:

    rownum SELECT id, dbms_random.string ('U', 12) sss
    of the double
    connect by level<=>

    element attributes for ID:

    Target: URL
    URL: javascript:apex.submit ({request: 'NAVIGATE', value: {'P27_HIDDEN': #ID #}});

    (P27_HIDDEN is just a hidden item I created)

    http://Apex.Oracle.com/pls/Apex/f?p=54920:27

    Edit2:

    In your case, then you can only have a page based on conditions request = expression1, expression1: NAVIGATE... then a branch of the page to go to the desired page, also with the same conditions

    Edit3:

    I'm not sure what examples you're talking about, that you provide no link; but you mention calling the stored procedure of javascript, so would probably involve some AJAX, but is not necessary IMO.

  • Y at - it a syntax better/more runs to get data to and from stored procedures?

    To test the stored procedure call, I created a simple package

    create or replace package TEST_PROCEDURES as
    
    procedure Test1 (
       arg1 in number,
       arg2 in number,
    
       res1 out number,
       res2 out number);
    
    end;
    
    

    and a page with fields number four (P1_INPUT_2, P1_OUTPUT_1, P1_INPUT_1, P1_OUTPUT_2) and a button excuting the code following PL/SQL:

    declare
      arg1 integer;
      arg2 integer;
      res1 integer;
      res2 integer;
    begin
      arg1 := :P1_INPUT_1;
      arg2 := :P1_INPUT_2;
    
      TEST_PROCEDURES.Test1(arg1, arg2,
                            res1, res2);
                        
      APEX_UTIL.SET_SESSION_STATE('P1_OUTPUT_1', res1);
      APEX_UTIL.SET_SESSION_STATE('P1_OUTPUT_2', res2);
    end;
    
    

    It works, but it looks like a lot of unnecessary code to me. Any suggestions?

    TryingAPEX wrote:

    To test the stored procedure call, I created a simple package

    create or replace package TEST_PROCEDURES as

    procedure (Test1

    in number arg1,

    arg2 in number,

    RES1 number,

    Res2 number);

    end;

    and a page with fields number four (P1_INPUT_2, P1_OUTPUT_1, P1_INPUT_1, P1_OUTPUT_2) and a button excuting the code following PL/SQL:

    declare

    whole arg1;

    Whole arg2;

    integer res1.

    whole Res2;

    Start

    arg1: =: P1_INPUT_1;

    Arg2: =: P1_INPUT_2;

    TEST_PROCEDURES. Test1 (arg1, arg2,

    RES1, res2);

    APEX_UTIL. SET_SESSION_STATE ('P1_OUTPUT_1', res1);

    APEX_UTIL. SET_SESSION_STATE ('P1_OUTPUT_2', res2);

    end;

    It works, but it looks like a lot of unnecessary code to me. Any suggestions?

    Why would you do that? APEX may be referenced in the same way as all the other bind variables (although it is worth noting that their type is always VARCHAR2, so in this case, it will rely on the implicit conversion):

    begin
      test_procedures.test1(:p1_input_1, :p1_input_2, :p1_output_1, :p1_output_2);
    end;
    

    For the previous discussion on this topic, see set manually with PL/SQL session state .

    Always advanced postal code using the functionality of the syntax highlighted in the editor.

  • Call the generic page APEX request

    I'm running 5 APEX. My APEX page, I try to call a stored procedure of DB which makes a call to another page (see sources below). When I try to run the procedure, I get

    ORA-29273: HTTP request failed ORA-24247: access denied by access control (ACL) of network list


    I tried to run the grant_acl script in the BD, but still not the same error. What Miss me?


    DECLARE

    ACL_PATH VARCHAR2 (4000);

    BEGIN

    -Did the ACL currently assigned to ' *' and give APEX_050000

    -the 'connect' privilege if APEX_050000

    -has not yet the privilege.

    SELECT ACLS IN ACL_PATH OF DBA_NETWORK_ACLS

    WHERE HOST = ' *' AND LOWER_PORT IS NULL AND UPPER_PORT IS NULL;

    IF DBMS_NETWORK_ACL_ADMIN. CHECK_PRIVILEGE (ACL_PATH, 'APEX_050000',

    'connect') IS ZERO THEN

    DBMS_NETWORK_ACL_ADMIN. ADD_PRIVILEGE (ACL_PATH,

    "APEX_050000", TRUE, "connect");

    END IF;

    EXCEPTION

    -When no ACL has been attributed to ' *'.

    WHEN NO_DATA_FOUND THEN

    DBMS_NETWORK_ACL_ADMIN. CREATE_ACL ('power_users.xml',

    "ACL that allows users to be able to connect everywhere."

    "APEX_050000", TRUE, "connect");

    DBMS_NETWORK_ACL_ADMIN. ASSIGN_ACL('power_users.) XML ',' *');

    END;

    /

    COMMIT;

    create or replace procedure 'SET_CURRENT_SELECTION' IS

    l_clob CLOB.

    Req UTL_HTTP. REQ;

    resp UTL_HTTP. RESP;

    VARCHAR2 value (1024);

    BEGIN

    req: = UTL_HTTP. BEGIN_REQUEST ('http://sonar.powerschool.com/api/timemachine?resource=com.pearson.powerschool:milan - components-tools - customfields:tallac & metric = test & format = csv' ');

    Utl_http.set_header (req, "User-Agent", "Mozilla/4.0" "");

    resp: = UTL_HTTP. GET_RESPONSE (req);

    LOOP

    UTL_HTTP. READ_LINE (RESP, value, TRUE);

    DBMS_OUTPUT. Put_line (value);

    END LOOP;

    UTL_HTTP. END_RESPONSE (resp);

    EXCEPTION

    WHEN UTL_HTTP.end_of_body THEN

    Utl_http.end_response (resp);

    END;

    Hi bobmagan,

    bobmagan wrote:

    I'm running 5 APEX. My APEX page, I try to call a stored procedure of DB which makes a call to another page (see sources below).

    create or replace procedure 'SET_CURRENT_SELECTION' IS

    l_clob CLOB.

    Req UTL_HTTP. REQ;

    resp UTL_HTTP. RESP;

    VARCHAR2 value (1024);

    BEGIN

    Req: = UTL_HTTP. BEGIN_REQUEST ("http://sonar.powerschool.com/api/timemachine?resource=com.pearson.powerschool:milan - components-tools - customfields:tallac & metric = test & format = csv' ');

    Utl_http.set_header (req, "User-Agent", "Mozilla/4.0" "");

    resp: = UTL_HTTP. GET_RESPONSE (req);

    LOOP

    UTL_HTTP. READ_LINE (RESP, value, TRUE);

    DBMS_OUTPUT. Put_line (value);

    END LOOP;

    UTL_HTTP. END_RESPONSE (resp);

    EXCEPTION

    WHEN UTL_HTTP.end_of_body THEN

    Utl_http.end_response (resp);

    END;

    Instead of UTL_HTTP, why not use APEX_WEB_SERVICE?

    As the Web Service, you call a RESTful Web Service, you can use APEX_WEB_SERVICE. MAKE_REST_REQUEST function as follows:

    create or replace procedure set_current_selection
    is
      l_clob clob;
      l_buffer         varchar2(32767);
      l_amount         number;
      l_offset         number;
      l_url            varchar(4000) := 'http://sonar.powerschool.com/api/timemachine?resource=com.pearson.powerschool:milan-components-tools-customfields:tallac&metrics=tests&format=csv';
    begin
    
      l_clob := apex_web_service.make_rest_request (
                  p_url => l_url,
                  p_http_method => 'GET' );
    
        l_amount := 32000;
        l_offset := 1;
        begin
            loop
                dbms_lob.read( l_clob, l_amount, l_offset, l_buffer );
                dbms_output.put_line(l_buffer);
                l_offset := l_offset + l_amount;
                l_amount := 32000;
            end loop;
        exception
            when no_data_found then
                null;
        end;
    
    end;
    

    Kind regards

    Kiran

  • Problem of Variable/stored procedure

    I hope it's the last issue to work through... but we need to access pictures stored on another server. We have a stored procedure called "get_doc" that accesses the filename of the image, and we have successfully tested it with a hardcoded value. A button called a process that is running the following PL/SQL:

    () get_doc
    p = > 77456);

    However, when I use the same method with a variable on the page (which has the same numerical value of 77456), the procedure shows the value of p is Null.

    () get_doc
    p = >: P7_STARTERNUM);

    Any suggestions or advice?
    (With the help of ApEx 4.0 in IE8)
  • Process the Message on a stored procedure

    Hi all

    How do I call and diplay APEX the message of a stored procedure?

    Example of form on stored procedre.

    Thank you

    Hello

    What do you mean by 'the message '? If you are referring to the 'success Message', then you can use the variable apex.

    APEX_APPLICATION.G_PRINT_SUCCESS_MESSAGE := 'This is success message for page process';
    

    Kind regards
    Hari

Maybe you are looking for