How to expose a pl/sql procedure via slot shape of apex

Hi gurus

I have a form that is create from a procedure.

I put the auth to pubic_user if it is available to the public.

So now I need is to know how to find a way to imitate the button submit and draw the corresponding URL

while I can expose my PL/SQL via a URL through apex procedure.

I have attached a screenshot of my form

Thx for all the help.

Here's the URL of my pl/sql

https://Apex.Oracle.com/pls/Apex/f?p=30141:1:5404118417577:

and I look at the code with tool from dev on chrome for the Send button

If only show.

< a href = "javascript:apex.submit ('SUBMIT'); "class ="uButton"id ="B67074418713946955629"role ="button"> < span > Submit </span > < /a >

So how do I know what return? Thx for all the help

expose_plsql_via_apex.JPG

Hi Kazuneric,

kazuneric wrote:

https://Apex.Oracle.com/pls/Apex/sdev.verify_user?p_user=Spring9111&P_Code=E7FB725F11A62BAFDCFB28C30653B72B

I intend to pass the parameter in the URL for a user to click through

You will find the following useful threads:

Call a rendering of APEX (EPG) form of procedure within the error

403 Forbidden error URL the PL/SQL procedure call

I hope this helps!

Kind regards

Kiran

Tags: Database

Similar Questions

  • How to write a pl/sql procedure that checks the remote db?

    Hi all

    I have one criticism PROD remote database I want to check every 10 minutes for its connectivity. If the connection fails then an email and a text Message is sent to me.
    My question is what is the best way to check if the remote database is running?

    Can I use sqlplus system/manager@PROD? But sometimes this has taken so long and suspended. I want the best response time?

    How can I write a pl/sql procedure control connection? What do something like the ff:

    I created a table for my tnsname.ora entries.
    cursor is c1 select dbname from tnsnames_tbl;
    begin
        connect system/[email protected];
        print c1.dbname || 'DB Connection OK';
        exception
           when others;
            print c1.dbname || 'DB Connection Not OK';
        end;
    end;
    Something like that?

    Thank you
    Kinz

    Not really feasible at the level of PL/SQL.

    The reason is that the greatest strength of TCP's robustness. TCP will try as hard as possible to succeed, before failing. It was designed to still work on the severely damaged or broken communication as a result of nuclear infrastructure. A TCP connection can take up to 15 minutes, maybe even more, before failing. It can be as slow as a turtle-, but he's wearing a hardshell. (unlike the UDP, which is the opposite)

    So if you want to test the TCP connectivity, you must design your own custom code to implement your assumptions about the latency of packets, earthquakes and drops and so on.

    Otherwise, you will need to use a standard TCP socket, set a time limit, try to login - and hope for the best.

    This approach, I have demonstrated in {message identifier: = 10111306}.

    If the TCP test works, it means that the listener is in place. Does not mean that the database itself is in place. Which means then using a database link to be tested. And this in turn can hang due to problems with archive record being stuck, not enough idle servers shared, etc..

  • How to use the pl/sql procedure

    Hi all,

    How to use pl/sql packages and especially in what situations we are pl/sql, which is the cause of the procedure. Please explain with precision using small example.

    Thanks and greetings

    RAM

    I could tell this at a very high level.

    PL/SQL's procedural extension to SQL. SQL (structured query language) has no procedural capacity. They are executed as a stand-alone statement. When you want to generate a process flow with several SQL statement that you need to have a procedural language that could accommodate your SQL. PL/SQL is something similar to Java and Dot Net in this aspect. Said that PL/SQL is Oracle DB. This has some advantages. The most important thing is that when you have your SQL in PL/SQL oracle maintains its reliance on the object. Any database oracle related so you want to build, then you can consider to PL/SQL as the best way to use process flows.

    PL/SQL provides various methods such as the PROCEDURE, FUNCTION and the PACKAGE. The only thing that race stands is in its ability to modularize your code. So, using the package you can create process workflows that is modular and easy to understand.

  • Call Package PL/SQL procedure via a url (prior R12 through "Enabled/pl/sql")

    All the

    Prior R12:
    This could be achievied through registration of your 'Package.Procedure' in the ' allowed Web PL/SQL "-screen." " Then the Package.Procedure could be called as: http://find-151.cmcdev.be:8004/pls/find/XXIE_INTERFACE.SHOWINTERFACELOG?p_itemkey=INFILE-454613-3074 & p_interfdef = EDG...


    In R12:
    I am looking for a way to do it, but after registering the PL/SQL in the table of this way of working always returns: "Page not found".


    Someone has additional information on this subject on how to proceed in R12, that I can't find any documentation, examples for this?


    Concerning
    Laura Olivier

    MOD_PLSQL is no longer available in R12. PL see ML Doc 726711.1 (Mod_plsql and Oracle E-Business Suite Release 12)

    HTH
    Srini

  • How to call a pl/sql procedure to an event handler in NetBeans IDE

    I want to call a procedure from a button click event handler in NetBeans and also pass a parameter to the procedure. How I have here a this?

    Wrong forum!

    This question belonged to a NetBeans forum.

    Please mark the thread ANSWERED and repost in a forum for details.

    https://forums.NetBeans.org/

  • Creating a CSV of a pl/sql procedure

    Hello world

    I would like to know how to write a pl/sql procedure, where I need to check if they are all records in a table 'Table A' say

    If they are all records in the Table 'A', then we need to write these records in the Table 'A' in the CSV file.

    Is there no record then we insert a record in the CSV file that 'no records are in the 'table A'.

    Could someone please help?

    Thanks in advance

    see this
    OPS$tkyte@8i > create or replace procedure dump_table_to_csv (p_tname in varchar2,
    2 p_dir in varchar2,
    3 p_filename in varchar2)
    4 is
    utl_file.file_type l_output 5;
    6 whole l_theCursor default dbms_sql.open_cursor;
    l_columnValue 7 varchar2 (4000);
    8 whole l_status;
    9 l_query varchar2 (1000)
    10 by default ' select * from '. p_tname;
    11 l_colCnt number: = 0;
    l_separator 12 varchar2 (1);
    13 l_descTbl dbms_sql.desc_tab;
    14 start
    15 l_output: = utl_file.fopen (p_dir, p_filename, 'w');
    16 immediate execution "alter session set nls_date_format =" dd-mon-yyyy hh24:mi:ss ""
    ';
    17
    18 dbms_sql.parse (l_theCursor, l_query, dbms_sql.native);
    19 dbms_sql.describe_columns (l_theCursor, l_colCnt, l_descTbl);
    20
    21 because I in 1... l_colCnt loop
    22 utl_file.put (l_output, l_separator |) '"' || l_descTbl (i) .col_name | '"'
    );
    23 dbms_sql.define_column (l_theCursor, i, l_columnValue, 4000);
    24 l_separator: = ', ';
    25 end of loop;
    26 utl_file.new_line (l_output);
    27
    28 l_status: = dbms_sql.execute (l_theCursor);
    29
    30 in a loop (dbms_sql.fetch_rows (l_theCursor) > 0)
    31 l_separator: = ";
    32 because I in 1... l_colCnt loop
    33 dbms_sql.column_value (l_theCursor, i, l_columnValue);
    34 utl_file.put (l_output, l_separator | l_columnValue);
    35 l_separator: = ', ';
    36 end loop;
    37 utl_file.new_line (l_output);
    38 end loop;
    39 dbms_sql.close_cursor (l_theCursor);
    40 utl_file.fclose (l_output);
    41
    42 run immediately "alter session set nls_date_format =" LUN-JJ-AA "';"
    43 exception
    44 so that others then
    45 run immediately "alter session set nls_date_format =" LUN-JJ-AA "';"
    46 raise him;
    end 47;
    48.

    Created procedure.

    OPS$tkyte@8i > dump_table_to_csv exec ('emp', ' / tmp', 'tkyte.emp');

    PL/SQL procedure successfully completed.

  • call PL/SQL procedure from javascript

    Hello!

    How can I call PL/SQL procedure from JavaScript code?


    Thank you!

    Nihad

    Nihad,

    What APEX version do you use? Dynamic actions in 4.0 make is much easier than it was in previous versions of APEX...

    Kind regards
    Dan

  • How can I expose a PL/SQL package to a webservice

    Hello

    Using Jdeveloper 12 c, how can I expose a PL/SQL package as a webservice?

    Thanks in advance

    Look for the option 'Web of TopLink-DB services provider' under the section of Web Service in the new gallery.

    Timo

  • How to call sql loader control file with in the pl/sql procedure

    Hi friends,

    I am doing a project in relation to the transfer data using queues. In the queue, I'll get a data delimited by tabs in the form of CLOB variable/message. I don't want to keep this dat in the oracle table.
    During the updating of the data in the table.

    1. don't want to write data to a file. (You want to access directly after the specific queue).

    2. as the data is in the form of delimited by tabs, I want to use sql loader concept.

    How can I call the ctrl charger sql file with in my pl/sql procedure. When I searched, most forums recommending the external procedure or a Java program.

    Please guide me on this issue. My preferrence is pl sql, but don't know the external procedure. If no other way, I'll try Java.

    I'm using oracle 9.2.0.8.0.

    Thanks in advance,
    Vimal...

    Or SQL * Loader, or external tables are designed to read data from a CLOB stored in the database. They both work on files stored on the file system. If you don't want the data to be written to a file, you have to roll your own parsing code. It is certainly possible. But it will be much less effective than SQL * Loader or external tables. And it is likely to lead to a little more code.

    The simplest possible thing that might work would be to use something like Tom Kyte string tokenization package to read a line in the CLOB, divide the component parts and save the different chips in a significant collection (i.e. an object type or a record type that matches the table definition). Of course, you need manage things like the conversion of strings to numbers or dates, rejecting the lines, writing to log files, etc.

    Justin

  • How to call the OFA PL/SQL procedure.

    Hello

    I'll call the pl/sql stored procedure of the OAF page (AM). the procedure is content parameter 3 IN 1 OUT parameter. all the parameters of character type is integer.


    I put the output parameter and it's returning the value, but I don't have how to configure the setting IN because the settings IN, I need to convert the INT data type number in java.

    Please help me.


    int in_parm1 = 0;
    Number in_param;
    Request_id number;
    request_id = new Number (0);
    getDBTransaction () .commit ();
    TXN OADBTransaction = getOADBTransaction();
    int l_user_id = txn.getUserId ();
    int l_resp_id = txn.getResponsibilityId ();
    int l_resp_appl_id = txn.getResponsibilityApplicationId ();
    Number of ln_user_id = new Number (l_user_id);
    Number of ln_resp_id = new Number (l_resp_id);
    Number of ln_resp_appl_id = new Number (l_resp_appl_id);
    CallableStatement cs = txn.createCallableStatement ("start oaf_request(:1,:2,:3,:4); end; ", 1) ;
    Try
    {
    System.out.println ("run ahead");
    cs.registerOutParameter (3, Types.VARCHAR, 0, 100);
    cs.registerOutParameter(1,in_param);
    cs.registerOutParameter(4,Types.NUMERIC);
    DSI Execute();
    in_parm1 = cs.getInt (4);
    request_id = new Number (in_parm1);
    System.out.println ("Request ID" + in_parm1);
    System.out.println ("run after");
    DSI Close();
    System.out.println ("result");
    }
    catch (System.Exception e)
    {

    throw OAException.wrapperException (e);

    }

    I would tell you to go through the "appeal of PL/SQL procedures and functions" Section in the User Guide.
    Example and the details are there reference.

    Thank you

  • How to pass parameter in a concurrent program like PL/Sql procedure

    Hello experts,

    I created a simultaneous the Plsql procedure type executable program.

    In the procedure, I have three user settings

    1 p_fnd_user in

    2. out errbuf

    3. out retcode

    I created the simultaneous program with parameter

    1 p_fnd_user

    the token is disable.

    I entered the user id at the time of submitting the application.

    I don't get the p_fnd_user inside the procedure.

    Please help me.

    Thank you inadvance.

    Yoann

    You can try and reorganize the parameters in your pl/sql procedure to errbuf outside, out retcode, p_fnd_user in

  • How to convert my query in SQL procedure

    Hi all

    I run a SQL query in my process of page to set a few articles on my page.

    Start
    declare
    l_vc_arr2 APEX_APPLICATION_GLOBAL. VC_ARR2;
    Start

    IF APEX_APPLICATION. G_F01. COUNT = 0 THEN
    RAISE_APPLICATION_ERROR (-20001, 'Please select a model of e-mail to change!');
    END IF;

    IF APEX_APPLICATION. G_F01. COUNT > 1 THEN
    RAISE_APPLICATION_ERROR (-20001, 'Please select a model unique to change both message!');
    END IF;

    BECAUSE me in 1.APEX_APPLICATION. G_F01. Count
    LOOP
    l_vc_arr2: = APEX_UTIL. STRING_TO_TABLE (APEX_APPLICATION. G_F01 (i),' $');
    : P32_SUBJECT: = l_vc_arr2 (1);
    : P32_TYPE: = l_vc_arr2 (2);
    : P32_BODY: = l_vc_arr2 (3);
    END LOOP;
    end;
    end;

    It works perfectly fine. Now, I want to turn this query in custom procedure. I write the following code to create the SQL procedure,

    create or replace
    procedure Edit_EmailTemplate as
    Start
    declare
    l_vc_arr2 APEX_APPLICATION_GLOBAL. VC_ARR2;
    Start

    IF APEX_APPLICATION. G_F01. COUNT = 0 THEN
    RAISE_APPLICATION_ERROR (-20001, 'Please select a model of e-mail to change!');
    END IF;

    IF APEX_APPLICATION. G_F01. COUNT > 1 THEN
    RAISE_APPLICATION_ERROR (-20001, 'Please select a model unique to change both message!');
    END IF;

    BECAUSE me in 1.APEX_APPLICATION. G_F01. Count
    LOOP
    l_vc_arr2: = APEX_UTIL. STRING_TO_TABLE (APEX_APPLICATION. G_F01 (i),' $');
    v (P32_SUBJECT): = l_vc_arr2 (1);
    v (P32_TYPE): = l_vc_arr2 (2);
    v (P32_BODY): = l_vc_arr2 (3);
    END LOOP;
    end;
    end;

    but it is not compiling. Someone knows what's the problem?


    With respect,
    Sunil Bhatia

    Hi Sunil,

    You cannot use the function v ('P32_BODY') to assign values.

    you will need to use:
    apex_util.set_session_state ('P32_BODY', l_vc_arr2 (3));

    Concerning

    Michael

  • Problem with pl/sql procedure, trying to get the value of the user during execution

    Hello

    Using oracle 11.2.0.3

    Can run sql that gets the value of the user during the fine workmanship and also via an anonymous block.

    uses of SQL & Enter_Product_Number

    anonymous block using: Enter_Product_number.

    However, get problems when trying to create a pl/sql procedure, use one of the above

    relevant below tried code part & and: buit works do not error, try bad bind variable if used: and ora-600 if try use &.

    How can we have a procedure from pl/sql that can call and receives a value of user during execution?

    Only way around what I can think of is to pass parameters to the procedure

    Thank you

    create or replace procedure ins_into_issues is

    v_nd_rec_cnt number (10);

    v_normal_rec_cnt number (10);

    Start

    Select count (*)

    in v_nd_rec_cnt

    refmast.issues I have

    where i.iss_product_num = & old_nd_product_number;

    Select count (*)

    in v_normal_rec_cnt

    refmast.issues I have

    where i.iss_product_num = & normal_product_number;

    -code below commented above works.

    end;

    Hello

    what something like this:

    create or replace procedure INS_INTO_ISSUES ( in_normal number, in_old number )  is
      v_nd_rec_cnt     number(10);
      v_normal_rec_cnt number(10);
    begin
        select count(*)
          into v_nd_rec_cnt
         from refmast.issues i
         where i.iss_product_num = in_old;
      --
        select count(*)
          into v_normal_rec_cnt
          from refmast.issues i
         where i.iss_product_num = in_normal;
    end;
    

    concerning

    Kay

  • Call objects (packages-Pl/SQL procedures) DB of the ADF

    Hello

    1. How can we call DB procedures/Packages using ADF?

    2 are there scenarios describing when to use what Layout? & Also any introduction of layouts in the ADF.

    Thank you.

    Hello

    You can expose your PL/SQL package in the form of web services as well and use it on your layout. Check this blog entry on the call of PL/SQL of the ADF, it may be useful
    http://baigsorcl.blogspot.com/2010/05/calling-PLSQL-procedure-and-function-in.html

    This presentation would help understand layouts http://blogs.oracle.com/shay/2010/05/adf_faces_layouts_demo_-ahid.html
    also, you can refer to the guide of the web user interface.

  • How to call long pl/sql

    I have a pl/sql procedure that may attend the 2-20 mins depanding on the data.
    How to call this the BPEL?

    Prasanna-

    One way to do this would be:

    1. define a DBMS_SCHEDULER job for your pl/sql procedure.
    2. use BPEL to submit the work.
    3. query the table on user_scheduler_jobs or any other table that you can use to find out when the work.

    Another way would be to use (if you also have ODI):

    1 use ODI to call the plsql in a package
    2 expose the workflow as a Web Service for BPEL
    3 package ODI BPEL recall once the work is completed and a correlation between the response to the request.

    Thank you
    Neil.

Maybe you are looking for

  • Hard drive Pro 2100 SAT - how to locate?

    Hello After trying all the suggestions kindly, I now need to remove and replace the HARD drive. Unfortunately, after reading the documentation, I can't see how to remove the HARD drive on this model. I have temporarily deleted various round tables on

  • HP Pavilion dv7 - 4287cl: can I put 16 GB of ram in my laptop

    I have a hp dv7 - 4287cl Entertainment Pc pavilion and there his factory 2x4gb stick of ram in it and the documentation says that 8gbs is the max, but 8 GB DIMMs are not yet still about. So I'm curious to know if I can improve my laptop to 16gbs of r

  • Compatible HDD with T61

    Hello I recently updgraded old T61 with a Sandisk 128 gb SSD (model 'MORE'). It worked perfectly for about a month when the error "2100: hdd0 initialization error" started to happen at every boot. As my mother's computer, I was able to check a few th

  • Virus, TrustFighter, lock up.

    I was on the home page of Microsoft when viral alerts infiltrated. Trust Fighter seems to be affiliated with MicroSoft. He asked me to register for $39.00 and, of course, now they have all my information. The Fifhter Trust was simply a loop for the s

  • Procedure to upgrade (Active-Standby) ASA

    Hi all I just want to check if our upgrade scheduled SAA causes no problems during the procedure. Material: ASA5525-X Existing IOS: 9.1.2 Update to: 9.4.2 (11) Setup: Active standby We intend to be upgraded the first start, after that, is the day bef