Alert message in pl/sql code

I have a form based on procedure and i want when the procedure executed to appear an alert message. The form is as a portlet to a page. This is the code in the procedure
htp.p('<SCRIPT>alert("my message");</SCRIPT>');
The problem is that after the allert message, appears a page with a green icon and a 'back to form' link.
I want to click on the OK button and returns to the same page. Can anybody tell me what have to do?
Thanks

I add the go procedure to the "On successful submission" but when the form is executed returns to the page without appears the alert message i want.
In fact i want to execute the form and to appear a message in a form like as the message which appears in a form when an optional field is null. That missage is "item_name cannot be null".You click the OK button and continue to the same page. I want that functionality when the form is executed. For example when the form is executed i want to appear the message "The procedure was successful" and the user have to press only the OK button and continue explore the same page.
Remember that my form is on store procedure and the allert code is in the procedure's body
Thanks

Similar Messages

  • Display an Alert message in PL/SQL block in APEX

    Hi,
    we are getting an oracle exception while inserting a new row. As it is having the unique constaint on a coulumn.
    Now the problem iis we need to Display an "Alert message" based on the input field validation. That java script code for alert has to be embeded nside a PL/SQL block in Oracle APEX Application.
    we tried doing this with below code:
    Begin
    INSERT INTO <<table name>>(ID,NAME) VALUES (s1,:TXT_s2);
    exception when others then
    htp.p('<script language="javascript">');
    htp.p('alert("Exception");');
    htp.p('</script>');
    end;
    If anybody knows .... please reply.
    Thanks,
    Subarna
    Edited by: user9955252 on Apr 21, 2010 1:47 AM

    Hello,
    APEX Forum is here : Oracle Application Express (APEX)
    Regards

  • Display an Alert message from PL/SQL block in APEX

    Hi,
    we are getting an oracle exception while inserting a new row. As it is having the unique constaint on a coulumn.
    Now the problem iis we need to Display an "Alert message" based on the input field validation. That java script code for alert has to be embeded nside a PL/SQL block in Oracle APEX Application.
    we tried doing this with below code:
    Begin
    INSERT INTO <<table name>>(ID,NAME) VALUES (s1,:TXT_s2);
    exception when others then
    htp.p('<script language="javascript">');
    htp.p('alert("Exception");');
    htp.p('</script>');
    end;
    If anybody knows .... please reply.
    Thanks,
    Subarna

    If your end goal is showing a pretty error message instead of the message that the tables unique constraint raises try the following. This logic will show a nice message and not try to insert non-unique data.
    (1) Create a validation of type "Function Returning Error Text".
    (2) Place similar code like the following in your validation. Notice that if the unique name does not exist the no_data_found returns null allowing the validation to pass.
    DECLARE
      v_error varchar2(100);
    BEGIN
      SELECT 'A person by this name already exists.'
      INTO v_error
      FROM your_table
      WHERE your_name = :P1_YOUR_NAME;
      RETURN v_error;
    EXCEPTION
      WHEN no_data_found THEN
        RETURN NULL;
    END;

  • Uncompiled PL/SQL Code error in Reports 6i

    I have made a report using Report 6i. Have compiled, saved & run it several times. Very often, when I run it, I get the error message: "Uncompiled PL/SQL code".
    Can anyone help me to get rid of this error?

    hello,
    there are some restrictions on calling specific packages from the database via a remote procedure call. DBMS_SQL is one of them. there is a built-in package called EXEC_SQL that enables you to manage dynamic SQL. use this instead of the database-packages ... for further information on the use of DBMS_* packages see the application developers guide of the database.
    regards,
    the oracle reports team

  • Not able to display javascript alert message from within a pl/sql block

    Hello,
    Can anyone please help me out with this issue. I wanted to display an javascript alert message from within a pl/sql block for an update button. Below is sample code which i am using. P1_ITEM is my hidden item on the report.
    begin
    if :P1_ITEM IS NOT NULL then
    HTP.p ('<script type="text/javascript">');
    HTP.p ('alert(''Please complete the item which is already assigned to you!'');');
    HTP.p ('</script>');
    end if;
    end;
    and I have made this code to be executed conditionally when request = Expression1
    Expression1: SUBMIT
    The thing is I am not able to display an alert message when the update button is clicked.
    Can anyone please help me with this one.
    Thanks,
    Orton

    varad but I also have an update statement within that block for the update button something like this i want to achieve.
    begin
    if :P1_ITEM IS NULL THEN
    update sample_tbl
    set col1 =:APP_USER,
    col2 = 'Y'
    where pk_col = ---;
    commit;
    HTP.p ('<script type="text/javascript">');
    HTP.p ('alert(''Successfully assigned an item!'');');
    HTP.p ('</script>');
    end if;
    if :P1_ITEM IS NOT NULL then
    HTP.p ('<script type="text/javascript">');
    HTP.p ('alert(''Please complete the item which is already assigned to you!'');');
    HTP.p ('</script>');
    end if;
    end;
    thanks,
    Orton

  • Looking for a SQL query to get all the possible Alert Messages from the Rules in a Management Pack

    For reporting, I'm looking to get a SQL query of all the possible Alert Messages for Rules configured in a Management Pack (not necessarily the ones that have thrown alerts).  I can do this for Monitors, but not for Rules. 
    The configured alert messages for the Management Pack Monitors
    go like this:  ManagementPack > MonitorView> RuleModule > RuleModule.Alert Message > Localized Text
    The configured alert messages for the Management Pack Rules
    should go something like this, but there is a missing link:  ManagementPack > RuleView > RuleModule > ? Missing Link ? > Localized Text
    The Rules are tied to the Module, but I don't see a connection from the RulesModule to the Alert Message that I see in the LocalizedText. The Rule names do not always equal the Alert name. 
    Can someone provide the missing link?

    Hi,
    please try below powershell code to find the corresponding management pack for specific alert:
    $Alert = get-scomalert | where {$_.Name -like 'Agent Proxy Not Enabled*'} | select -first 1
    If ($alert.IsMonitorAlert -eq "True") {
    write-host "Ths is a monitor-generated alert"
    get-scommonitor -ID $Alert.MonitoringRuleID | select Enabled, DisplayName, ManagementPack
    else
    write-host "This is a rule-generated alert"
    get-scomrule -ID $Alert.MonitoringRuleID | select Enabled, DisplayName, ManagementPack
    In addition, please also refer to the below link:
    http://blogs.technet.com/b/mazenahmed/archive/2011/12/02/using-powershell-to-map-opsmgr-active-alert-to-its-corresponding-rule-monitor-and-management-pack-name.aspx
    Regards,
    Yan Li
    Regards, Yan Li

  • Alert/Warning messages from PL/SQL process

    Hi all,
    I have a PL/SQL process that I execute from javascript : doSubmit(MY_PROCESS). I want to output an alert box if some errors occurs in the process, for instance : alert('message'). Does anyone know how to do that ?
    Best regards,
    Othman.

    Thanks Andy for the reply.
    My process executes "after submit", so I cannot call directly the javascript as one mentioned. The call to "html_Get" seems to be quite complicated for a simple alert message which is not really a Application process shared component.
    So I'll go for a solution where users won't see error messages ...
    Best regards,
    Othman.

  • SQL MP - System Center Management Health Service Credentials Not Found Alert Message

    Hi Dears,
    I have read so many open cases, but I could not find solution to my situation...
    Error: System Center Management Health Service Credentials Not Found Alert Message
    Desc are 1 of those 2:
    An account specified in the Run As profile "Microsoft.SQLServer.SQLDiscoveryAccount" cannot be resolved.
    An account specified in the Run As profile "Microsoft.SQLServer.SQLDefaultAccount" cannot be resolved.
    Okay, I am fine, I  verify the RunAs account configuration and yes this is the problem... I was able to solve it for those SQL running servicec account using domain user account, I created the run as account, and assoistte it with SQL profiles,
    and it is fine....
    BUT, what about my 8 SQL Servers running SQL Service Account under System and Network accounts,
    so how Can I add this coz I cannot target all objects,so what shall I target (Object Health Service or WHAT)?
    Please I need it step by step coz I am not able to handle this issue....
    Thank you Guys

    Hi,
    If you have not distributed the Run As Account to a system, but we discovered SQL on it, you will see the error message.
    This condition may have occurred because the account is not configured to be distributed to this computer. To resolve this problem, please distribute the account to this computer if appropriate. You can refer to the following blog to distribute the Run As
    credential.
    Niki Han
    TechNet Community Support

  • How to fire a Alert Message in a table format

    Hi friends,
    Currently im performing an Alert. My requirement is i need to display the alert message to the user in the mail in a table format.
    But i couldnt perform that, as the alert is not displaying in a properly aligned table format.
    Can you friends propose me a right way to bring the alert in a table format with two columns.
    Thanks in Advance..
    Regards,
    Saro

    I agree w 936671, do this in PL/SQL. Much, much easier.
    However, I will recommend a different approach using PL/SQL.
    1) Create a package to send the emails. Sample code:
    create or replace package cust_fnd_utilities as
    procedure send_email(     p_sender     in     varchar2,
                   p_recipient      in      varchar2,
                   p_subject     in     varchar2,
                   p_message     in     varchar2);
    end cust_fnd_utilities;
    create or replace package body cust_fnd_utilities as
    procedure send_email(     p_sender     in     varchar2,
                   p_recipient      in      varchar2,
                   p_subject     in     varchar2,
                   p_message     in     varchar2)
    is
    v_mail_host     varchar2(30);
    v_crlf      constant varchar2(2):= chr(13)||chr(10);
    v_message     varchar2(10000);
    v_mail_conn     utl_smtp.connection;
    begin
    v_mail_host := 'localhost';
    v_mail_conn := utl_smtp.open_connection(v_mail_host, 25);
    v_message :=      'Date: ' ||
         to_char(sysdate, 'dd Mon yy hh24:mi:ss') || v_crlf ||
         'From: <'|| p_sender ||'>' || v_crlf ||
         'Subject: '|| p_subject || v_crlf ||
         'To: '||p_recipient || v_crlf || '' || v_crlf || p_message;
    utl_smtp.ehlo(v_mail_conn, v_mail_host);
    utl_smtp.mail(v_mail_conn, p_sender);
    utl_smtp.rcpt(v_mail_conn, p_recipient);
    utl_smtp.data(v_mail_conn, v_message);
    utl_smtp.quit(v_mail_conn);
    exception
    when others then
         utl_smtp.close_connection(v_mail_conn);
    end send_email;
    end cust_fnd_utilities;
    2) Build the email, then call the package from step #1. Sample code:
    create or replace package cust_fnd_monitoring as
    procedure profile_options_build_email (     p_errbuf     out     varchar2,
                             p_retcode     out     varchar2,
                             p_sender     in     varchar2,
                             p_recipient     in     varchar2);                         
    end cust_fnd_monitoring;
    create or replace package body cust_fnd_monitoring as
    procedure profile_options_build_email (     p_errbuf     out     varchar2,
                             p_retcode     out     varchar2,
                             p_sender     in     varchar2,
                             p_recipient     in     varchar2)
    is
    v_subject          varchar2(100) := 'erpgamd1 - Recent Profile Option Changes';
    v_mime_type          varchar2(100) := 'Content-Type: text/html';
    v_body               varchar2(10000);
    v_line_feed          varchar2(1):=chr(10);
    cursor profile_cur is
    select     p.user_profile_option_name,
         u.user_name,
         u.description,
         r.responsibility_name,
         v.last_update_date
    from     fnd_profile_option_values v,
         fnd_profile_options_vl p,
         fnd_user u,
         fnd_responsibility_vl r
    where     p.application_id = v.application_id
    and     p.profile_option_id = v.profile_option_id
    and     v.last_updated_by = u.user_id
    and     v.level_id = 10003
    and     v.level_value = r.responsibility_id
    and      v.level_value_application_id = r.application_id
    and     r.creation_date <= '01-NOV-2010'
    and     v.last_update_date >= sysdate-7
    and     u.user_name != '204020779'
    union all
    select     p.user_profile_option_name,
         u.user_name,
         u.description,
         'Site' responsibility_name,
         v.last_update_date
    from     fnd_profile_option_values v,
         fnd_profile_options_vl p,
         fnd_user u
    where     p.application_id = v.application_id
    and     p.profile_option_id = v.profile_option_id
    and     v.last_updated_by = u.user_id
    and     v.level_id = 10001
    and     v.last_update_date >= sysdate-7
    and     u.user_name != '204020779'
    order by 5 desc,4;
    profile_rec     profile_cur%rowtype;
    begin
    open profile_cur;
    <<profile_loop>>
    loop
         fetch profile_cur into profile_rec;
         exit when profile_cur%notfound;
         if profile_cur%rowcount = 1 then
         -- We need to confirm that we fetch at least one row. Once we have confirmed, we want to generate
         -- the email body heading only during the first pass through the loop.
              v_body := '<html>' || v_line_feed;
              v_body := v_body || '<body style="font-family:arial;font-size:10pt">' || v_line_feed || v_line_feed;
              v_body := v_body || '<table cellspacing="5">' || v_line_feed;
              -- table heading
              v_body := v_body || '<tr>' || v_line_feed;
              v_body := v_body || '<td align="left"><u>profile option name</u></td>' || v_line_feed;
              v_body := v_body || '<td align="left"><u>responsibility name</u></td>' || v_line_feed;
              v_body := v_body || '<td align="left"><u>last update date</u></td>' || v_line_feed;
              v_body := v_body || '<td align="left"><u>SSO #</u></td>' || v_line_feed;
              v_body := v_body || '<td align="left"><u>user name</u></td>' || v_line_feed;
              v_body := v_body || '</tr>' || v_line_feed;
         end if;
         -- table detail
         v_body := v_body || '<tr>' || v_line_feed;
         v_body := v_body || '<td>' || profile_rec.user_profile_option_name      || '</td>' || v_line_feed;
         v_body := v_body || '<td>' || profile_rec.responsibility_name          || '</td>' || v_line_feed;
         v_body := v_body || '<td>' || profile_rec.last_update_date          || '</td>' || v_line_feed;
         v_body := v_body || '<td>' || profile_rec.user_name                || '</td>' || v_line_feed;
         v_body := v_body || '<td>' || profile_rec.description               || '</td>' || v_line_feed;
         v_body := v_body || '</tr>'|| v_line_feed;
    end loop profile_loop;
    if profile_cur%rowcount =0 then
         -- The cursor fetched no rows.
         -- send email using utl_smtp
         cust_fnd_utilities.send_email(p_sender,p_recipient,v_subject || '. No exceptions found.','No exceptions found.');
    else
         -- Generate the end of the email body if we fetched at least one row.
         v_body := v_body || '<table>' || v_line_feed || v_line_feed;
         v_body := v_body || v_line_feed || '</body>' || v_line_feed;
         v_body := v_body || '</html>' || v_line_feed;
         -- send email using utl_smtp
         cust_fnd_utilities.send_email(p_sender,p_recipient,v_subject || v_line_feed || v_mime_type,v_body);
    end if;
    close profile_cur;
    end profile_options_build_email;
    end cust_fnd_monitoring;
    3) In your alert, do not use an email action. Rather, your action should be a SQL*Plus script that calls the package from step #2.

  • How displaying an alert message called from a database procedure

    Hi,
    How can I display an alert message that is called from a database procedure.
    I've tried the following code:
    l_al_button NUMBER;
    l_al_message VARCHAR2(80);
    l_al_id ALERT;
    Set_Alert_Property(l_al_id, alert_message_text,l_al_message);
    l_al_Button := show_alert(l_al_id);
    When trying I receive an error that says that the word ALERT need to be declared.
    Any suggestions?
    Thanks

    Hi,
    leave the procedure without error handling.
    This is what you can do:
    1.Inside the database procedure-
    BEGIN
    RAISE_APPLICATION_ERROR (-20001, 'The chosen length of the Public Key Exponent ....');
    END;
    2.Into your Form -
    BEGIN
    EXCEPTION
    WHEN OTHERS THEN
    IF sqlcode = '-20001' THEN
    Display Your Messages.
    END IF;
    Monica
    END;

  • I need an alert message if I press ctrl shift b

    Hi All,
    I Need an alert message if I Press "ctrl+shift+b"(to make the selected text bold). Is this possible?
    Regards,
    Chinna

    Create a keyboard shortcuts (ctrl + shift + b) for your script and try...
    Code must be like this:
    alert("Bold Shortcut....");
    app.selection[0].fontStyle = "Bold";
    P.S.: you have to set conditions for bold, bold italic, etc. 
    Vandy

  • Display an alert message through javascript when report column item is null

    Hello,
    I have a report column item which is an select list item and now i want to display an alert message when value is null, I mean no value is selected, this alert message should be fired when update button is clicked.
    Can anyone please help me with this issue.
    Thanks,
    Orton

    You could try something like this:
    declare
      x        INTEGER;
      err_ct  INTEGER   := 0;
    begin
      x  := 5;  -- number of rows displayed
      for i in 1 ... x (
        IF wwv_flow.g_f08(i)) IS NULL THEN err_ct  := err_ct + 1;
        END IF;
      end loop;
      IF err_ct = 0 THEN
         RETURN NULL;
      ELSE
        RETURN 'Nice error message: you must supply a value.';
      END IF;This would be used with a PL/SQL validation: Function Returning Error Text.

  • How to display an alert message on click of link in tableview

    Hi,
    Following is the code for a tableview in layout section of a BSP( i have specified only one tableview column here). The requirement is to display an alert message on click of link in the first column that is "evbeg". Can anyone please help me how to achieve this? Appreciate quick response on this.
    CREATE OBJECT lr_dateiterator TYPE cl_lso_bsp_it_trdates
                EXPORTING im_application = application
                im_tform = trainingform.
            <htmlb:tableView id            = "dates"
                                 table         = "<%= dates %>"
                                 iterator      = "<%= lr_dateiterator %>"
                                 width         = "100%"
                                 rowCount      = "<%= lp_len %>"
                                 footerVisible = "FALSE"
                                 sort          = "SERVER" >
                  <htmlb:tableViewColumn columnName    = "evbeg"
                                         type          = "user"
                                         title         = "<%= otr(LSO_FRONTEND/schedule) %>"
                                         tooltipHeader = "<%= otr(LSO_FRONTEND/schedule) %>"
                                         sort          = "TRUE" >
                  </htmlb:tableViewColum>
    Thanks and Regards,
    Archana.

    you have to code in the iterator for this.
    in the render_cellstart method of the iterator you need to code.
    this is for a column.
    when 'MATNR'.
    data: text type string.
    text = 'disp_alert()'.   "this java script i placed in the page
    data: lo_link type ref to cl_htmlb_link.
      create object lo_link.
         lo_link->id = p_cell_id.
         lo_link->onclientclick = text.
         lo_link->text = <fs>-matnr.
         p_replacement_bee = lo_link.
    below is the java script i added in my page..
    <  sc ri   pt type="text/javasc ript"   >
    f u n  ction disp_alert()
    a  l e  rt("helloworld");
    < /s  c ript >

  • APEX,PDF's, BI Publisher and SQL Query returning SQL code..

    I don't know if I should be posting this in this Forum or the BI Publisher forum, so I am posting in BOTH forums..
    I love APEX, let me say that first.. And appreciate the support offered here by the group, but am running int a confusing issue when BI Publisher tries to build a report from the above type APEX report..
    Here is my dilemma:
    I have a number of reports that are part of a Oracle package. They return an SQL Query back to a reports region on a page. I am having to deal with the column names returned are col01, col02..
    The issue I have is, when building the Application Level query to download the XML sample from in building RTF layouts in Word, you can not use this code, you MUST use a standard SQL Select.
    I have taken the sql from the function returning sql, and copied into the application query, supplying the required data values for bind variables being used in the query.
    An XML file is produced, and I use this to build the RTF format file that I load back into APEX and try to use it for the PDF rendering of the report. I can view the output as a PDF in the Word add on, but when I try using it with the report, it is returning an empty PDF file.
    Can anyone tell me what error log files on the bi publisher side I can look at to see what error is happening?
    Thank you,
    Tony Miller
    UTMB/EHN
    Title adjusted to allow people to know what I am talking about...
    Message was edited by:
    Tony Miller

    Tony,
    You can find the log as follows:
    - go to http://[yourserver]:[yourport]/em
    - logon to OC4J EM: oc4jadmin/[yourpassword]
    - click on "logs" at the bottom of the page
    - in the hgrid/tree, expand OC4J->home->Application
    xmlpserver
    - click on view log icon
    You can also observe what's going on in BI Publisher
    by going to the command prompt from where you started
    it.
    Or, as a third option, you can locate the file on
    your file system, depending on your setup, the path
    would be something similar to this:
    \oracle\product\10.2.0\bip\j2ee\home\application-deplo
    yments\xmlpserver\application.log
    With that said though, I don't expect you'll find
    much in there that would help with your particular
    problem. I suspect you either get no rows in your XML
    at runtime, due to some session state issues, or your
    XML structure does in fact not match your RTF
    template.
    I'm not quite following your problem description,
    i.e. when did you do what and are you associating
    your report layout with a report query or report
    region. So just some general notes, your query needs
    to be parseable at design-time, when exporting the
    XML, so that you get the XML file with the proper
    column names derived from your query. If you want to
    use your RTF template with a standard report region,
    you must export the XML file first using the advanced
    XML structure option. And of course the column names
    in your report query need to match the column names
    in your report region.
    Perhaps this helps you further diagnose what's going
    on, if you have additional information that could
    help, let me know. And if you could stage this on
    apex.oracle.com, I'd be happy to take a look.
    Regards,
    MarcMarc,
    Thanks for looking at this issue. Below find my remarks to your questions..
    Re: your query needs
    to be parseable at design-time, when exporting the
    XML, so that you get the XML file with the proper
    column names derived from your query.At the start of this process, the query code was a function in a package. The function was returning an SQL select statement, for a report region on a page. I took the select statement, built an application query to build a sample of the xml for BI Publisher desktop (Add-on for Word). The code was producing the usual Col01, Col02.. since at design time that is were the column names.
    When I then took the xml from this and built the rtf for loading into my APEX application.
    When testing the Application Query with this RTF report layout, I am getting PDF's. When using it with the report region sending an xml feed to BI Publisher I am getting nothing back.
    I have since taken the sql code and moved it back into the report region, and set the region to have a type of straight SQL Query. I have even tried to hard-code the parameters I was getting from the page to limit data returned.
    Is it possible to see the xml being produced by the APEX page?
    Re: Stage this on apex.oracle.com.. I would love to, but we would have HIPPA issues if I posted the data on a public website.
    Can I send you the RTF file and the xml file that the application query is creating to see if there something weird about them?
    Thank you,
    Tony Miller
    UTMB/EHN

  • How to design BPEL process where BPEL is called by PL/SQL code?

    Hi,
    My BPEL process is called by a PL/SQL code given below.
    CREATE OR REPLACE PROCEDURE testd(errbuf OUT VARCHAR2,
    retcode OUT VARCHAR2)
    IS
    soap_request VARCHAR2(20000);
    soap_respond VARCHAR2(10000);
    http_req UTL_HTTP.REQ;
    http_resp UTL_HTTP.RESP;
    l_detail VARCHAR2(10000);
    endpoint VARCHAR2(130);
    begin
    endpoint := 'http://afsmlnx04.rheem.com:7105/soa-infra/services/default/HelloWorldPayload/bpelprocess1_client_ep';
    soap_request := '<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body xmlns:ns1="http://oracle.nl/HelloWorldPayload"><ns1:process><ns1:input>abc</ns1:input></ns1:process></soap:Body></soap:Envelope>';
    http_req := utl_http.begin_request(
    endpoint
    , 'POST'
    , 'HTTP/1.1'
    utl_http.set_header(http_req
    , 'Content-Type'
    , 'text/xml');
    utl_http.set_header(http_req
    , 'Content-Length'
    , length(soap_request));
    utl_http.set_header(http_req
    , 'SOAPAction'
    , 'process');
    utl_http.write_text(http_req, soap_request);
    http_resp := utl_http.get_response(http_req);
    utl_http.read_text(http_resp, soap_respond);
    utl_http.end_response(http_resp);
    dbms_output.put_line('soap'||soap_respond);
    EXCEPTION
    WHEN utl_http.end_of_body THEN
    utl_http.end_response(http_resp);
    WHEN utl_http.request_failed THEN
    DBMS_OUTPUT.PUT_LINE('Request Failed: ' || utl_http.get_detailed_sqlerrm);
    WHEN utl_http.http_server_error THEN
    DBMS_OUTPUT.PUT_LINE('Server Error: ' || utl_http.get_detailed_sqlerrm);
    WHEN utl_http.http_client_error THEN
    DBMS_OUTPUT.PUT_LINE('Client Error: ' || utl_http.get_detailed_sqlerrm);
    WHEN others THEN
    DBMS_OUTPUT.PUT_LINE(sqlerrm);
    END;
    The above procedure will be defined as concurrent program in Oracle EBS.This concurrent program will call the bpel process.My question is how should i design the bpel process so that bpel will know it is called by a concurrent program?
    My BPEL is doing picking a file by FTP adapter and inserting data into a table.
    Please throw some lights on this!!

    Option 1:
    You have to design the service as a synchronous BPEL process
    1. Do a synchronous ftp get to read the file.
    2. Transform and write it into database table
    3. Reply results back to plsql
    Disadvantage: Your BPEL process should complete from BPEL timeout happens.
    Option 2:
    1. Enqueue the message into AQ from the concurrent program
    2. From the BPEL monitor the AQ, start the process when the message arrives
    3. Do a synchronous ftp get to read the file.
    4. Transform and write it into database table
    You cannot reply the results back to concurrent program.
    5. However, you could have another AQ to send the results back to concurrent program.
    6. Your concurrent program should listen to the resultsAQ to get the results back from BPEL.
    Option 2 is a relliable design.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • Problems with the resultset

    hello i have a servlet that connects to a db. Data is passed back in the resultset. But only for one of my columns(if i specify it in my select statement)- i want the resultset to pass back the column that the user has selected(this is via a variable

  • Digital Photo Frame and Slideshows?

    I was wondering if anyone knew of a digital photo frame that could play a slideshow created with iPhoto (or iDVD), including transitions, Ken Burns effects and music. Thanks! regina

  • Menu Causes Error In Paint

    The application is simple. Draw a circle where the mouse is located. Problem 1] If you click on the Menu (<File>) and then drag the mouse back into the window and move around the image becomes distorted. To reproduce the error(s). Simple copy the sou

  • How to get mapping of "Sales Organization" in Org. Model?

    Hi, When I go to transaction PPOMA_CRM - Maintain Organizational Model in CRM, and I select an Org. unit and in "Function" tab, I want to maintain mapping of "Sales Organization" and "Sales Office", but when I want to choose an sales organization, th

  • Microsoft office on ipad

    Please suggest ipad app to read and edit Microsoft Office (Word and Excel) documents in my Dropbox or Skydrive. Thanks. - dnaik1