APEX confirmation message

Hi,
I have a problem:
In my application, whene activate a DML action, I want an automatic confirmation alert message .
Is possibile? any indea?
Thank's
Lorenzo

Say, your button name is SUBMIT and you want a message "Do you want to Submit?" with Ok/Cancel to be displayed. And perform the Submit only when OK is clicked.
Here is what you do.
1. Change the button action to Redirect to URL on the SUBMIT button
2. In URL Target enter
javascript:apex.confirm('Do you want to Submit?','SUBMIT'); You may use Shortcuts to standardize messages across pages.
Thats it.
Regards,

Similar Messages

  • Confirmation Message (apex.confirm) Does Not Display

    I am trying to use the version of apex.confirm that also sets the value of a page item. The APEX documentation provides this as an example of the correct syntax (cut and pasted from manual):
    apex.confirm("Save Department?", {
      request:"SAVE",
      set:{"P1_DEPTNO":10, "P1_EMPNO":5433}
      });I am trying to do the same thing in my code but, the confirmation is just not displaying:
    var hasUnsavedChanges = $v( 'P35_CHANGES_MADE' );
    if ( hasUnsavedChanges == 'TRUE' )
    alert('prompting')
       apex.confirm("You Have Unsaved Changes that Will Be Lost. Continue Anyway?", {
          request:"GOTOMARGCONFIRM",
          set:{"P35_CHANGES_MADE":FALSE}
    alert('prompted')
    else
    alert('submitting')
       apex.submit('GOTOMARGCONFIRM');
    };It never displays the "prompted" alert although the "prompting" one does display. I just can not spot any difference between the syntax I am using and the syntax provided by Oracle. I am only setting the value of the one item, P35_CHANGES_MADE.
    Can anyone help. BTW, just using the regular version of apex.confirm, i.e.
    apex.confirm("You Have Unsaved Changes that Will Be Lost. Continue Anyway?", "GOTOMARGCONFIRM");works fine.
    -Joe

    When the value of the item is not a number put the value within quotes.
    apex.confirm("You Have Unsaved Changes that Will Be Lost. Continue Anyway?", {
          request:"GOTOMARGCONFIRM",
          set:{"P35_CHANGES_MADE":"FALSE"}
       });

  • Can I have a conditional javascript:apex.confirm when column is null

    Hi All,
    I am relatively new to the product but am picking up things all the time. I was recently asked to create a confirmation on submit dialog which I did quite easily using javascript:apex.confirm. I was then asked to only display the confirmation message if a comment column was empty. The column is optional but it is preferred if something is added. I am using 4.1.1. Is this possible? Any ideas would be appreciated
    Regards
    Chris

    Hello Chris,
    >
    user4023958 wrote:
    I am relatively new to the product but am picking up things all the time. I was recently asked to create a confirmation on submit dialog which I did quite easily using javascript:apex.confirm. I was then asked to only display the confirmation message if a comment column was empty. The column is optional but it is preferred if something is added. I am using 4.1.1. Is this possible? Any ideas would be appreciated.
    >
    How have you implemented the apex.confirm?
    <ul>
    <li>If you have done it in dynamic action on button click then you have to make the dynamic action conditional by using Item/Column value is not null condition with expression as your comment item say P1_COMMENTS</li>
    <li>If you have done it in Button Action as Redirect to URL then simply you can write a javascript function in your page header as :
    <script type="text/javascript">
    function f_showConfirm () {
      if ($x('P1_COMMENTS').value == '') {
        apex.confirm('Do you want to submit this page?', 'SUBMIT');
      } else {
        apex.submit('SUBMIT');
    </script>and call this javascript function in Button Action - Redirect to URL with URL Target set as:
    javascript:f_showConfirm();</li>
    </ul>
    In order to get accurate/appropriate response you should include relevant details from following information with your question:
    <ul>
    <li>Full APEX version</li>
    <li>Full Database version</li>
    <li>APEX Web server architecture (EPG, OHS or APEX listener)</li>
    <li>Browser(s) and version(s) used</li>
    <li>Operating system with version, architecture(32/64)</li>
    <li>Theme</li>
    <li>Template(s)</li>
    <li>Region/item type(s)</li>
    </ul>
    The above information will help the forum members to ascertain the problem context and post most relevant response.
    Please read the [url https://wikis.oracle.com/display/Forums/Forums+FAQ]FAQ and [url https://forums.oracle.com/forums/ann.jspa?annID=1324]forum instructions for more information on using OTN forums effectively.
    Please update your forum profile with a real handle instead of user4023958.
    Hope it helps!
    Regards,
    Kiran

  • How to get the User input of Dynamic Action confirmation message ?

    Hi Guys,
    I'm using apex 4.1,
    I have added a confirmation message box as page Dynamic Action. How can i get the user input of that confirmation pop up ?
    Thanks

    Hi,
    you don't directly get the user input. But you should still be able to get what you want. Let's assume you have a dynamic action which fires for a "Change" (or any other) event and which has two or more actions
    1) Confirm
    2) Execute PL/SQL Code
    If the user clicks Cancel/No in the confirm dialog, APEX will stop the execution of this dynamic action and not run "Execute PL/SQL Code".
    Hope that helps
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Button not disabling using Java Script after confirm message in button

    I have a STAGEDATA button on a form with the following code to prevent Resubmissions (Apex 4.0)
    Action When Button Clicked:
    Action: Redirect to URL
    Execute Validations: Yes
    URL Target:
    javascript:if ( apex.confirm('Have you saved the data on the current page? Please confirm.','STAGEDATA') ) {javascript:this.disabled=true;this.value='Staging data...';apex.submit('STAGEDATA');}
    When I click the button, the confirmation message is displayed.
    However, after the confirmation message is displayed, the button is not disabled and the value does not show, while post processing of the page takes place before moving to the next page.
    Am I missing something?
    Appreciate your help. Thanks in advance

    Hi,
    try adding
    <script>
       alert('Testing');
    </script>
    This actually adds the script to the page body and not the header as af:resources does
    Frank

  • How to display a confirmation message before deletion

    Hi,
    I have an application and I want to display a confirmation message before people delete a record.
    The button on page 42 is number 90     "Supprimer cette fiche". It is a Submit as "DELETE_ALL". I have seen that the delete buttons are redirections to the url javascript:confirmDelete(htmldb_delete_message,'DELETE');, but I cannot use this as my button is not a redirection, but a submit.
    http://apex.oracle.com/pls/otn/f?p=4550
    Workaspace : ESPACE2008
    User : guest
    password : acdc2009
    Name of application is Activites
    Thank you for your kind answers.
    Christian

    Hi Christian.
    You can use the same logic for your own processing logic.
    the syntax is...
    javascript:confirmDelete(htmldb_delete_message,'YOUR_PROCESS_NAME');Replace 'YOUR_PROCESS_NAME' with the name of your page process that handles the bulk delete. Don't for get the single-quotes either side of your process name.
    Hope this helps.
    Simon

  • Confirm Message using Javascript

    Hello, I'm having some problems to create a confirm message box that will return a value from a Hiden field.
    For example:
    apex.confirm('Do you realy want delete use &P80_NAME_USER.');
    The name is showing but the problem is that if the P80_NAME_USER is changed the message still with the same name of the last user that was selected.
    Can someone help me?
    I'm using apex 4.1.
    Thaks, LéoVic.
    Edited by: LéoVic on Jan 14, 2013 1:43 PM

    As the value of &P80_NAME_USER. in your script is replaced by the actual value on the moment of rendering the page, you should use a JavaScript function to get the current value (when it can change on the page):
    apex.confirm('Do you realy want delete use '+$v('P80_NAME_USER'));

  • Confirm message to be displayed on the button click of the page

    Hi all
    I have a page with a button and some conditions on the button , now I want to display a pop-up message like a "Confirm message " , "Would you like to perform this action ?" , before that conditions are satisfied .. I am new to javascript and not sure of how to go about this .... can anyone has any ideas please !
    Would appreciate your response.
    thanks
    r

    Hi,
    In Apex 4 there is documented JavaScript function apex.confirm.
    http://download.oracle.com/docs/cd/E23903_01/doc/doc.41/e21676/javascript_api.htm#CHDGHCBE
    Change your button action to be "Redirect to URL" and enter to URL Target
    javascript:apex.confirm('Submit data ?', 'SUBMIT');Change text and request according your needs
    Regards,
    Jari

  • Identify OK or cancel is clicked by user in Delete Confirmation message

    Hello,
    I am using oracle APEX 3.2 ;
    Can anyone please help me out with this issue. I want to identify whether OK or cancel button is clicked for the delete confirmation message when the delete button is clicked by the user. I am using the javascript
    confirmDelete(htmldb_delete_message,'DELETE'); message for deleting a record. I have an alert message popped out after delete confirmation appears. Below is the javascript function which does alerts the user.
    function deleteProcess()
    alert('Successfully deleted the record. Please click OK to close popup window and \n refresh the parent window.');
    window.close();//close the popup window
    window.opener.doSubmit('REFRESH');
    //call doSubmit function on the parent window to cause the page to refresh.
    For the delete button; I have set the target: URL and
    URL target: javascript:confirmDelete(htmldb_delete_message,'DELETE');deleteProcess();
    By my problem is deleteProcess() function is executing even if I click cancel button on the delete confirmation message.
    So, can anyone please help me like how to make the function deleteProcess() conditional ; I mean alert message should be popped out only when user clicks OK on the delete confirmation message.
    Thanks,
    Orton

    Hi Orton,
    Unfortunately confirmDelete() returns no value to test on (shame - that value can be very useful). As a work-around, replace your URL target with this:
    javascript:if (confirm(htmldb_delete_message)) {doSubmit('DELETE'); deleteProcess();}Hope this helps,
    John
    If you find this information useful, please remember to mark the post "helpful" or "correct" so that others may benefit as well.

  • Issue with page processing - confirmation message & show /hide a button..

    Hello,
    I am working on a to do list application.
    I have events and for each event, I show list of tasks (grouped in reports based on the calculated task's status).
    In one region I have a drop down list of events and a Select Event button.
    For each task, I had to create a CLOSE option (initially I used a link, but the requester wanted a confirmation before closing the task).
    Now I have a checkbox for each task (generated dynamically with apex_item.checkbox(1,task_id)).
    Closing a task in my application means to set the end_date to sysdate.
    I followed the instructions from
    http://download-west.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28839/check_box.htm#CEGEFFBD. I've created also a button and a process and updated the sql from "delete" to "update".
    The process is set: OnSubmit - After Computations and Validations; Run Process Once per page visit (default).
    The issue number 1 is that I see the confirmation message (that tasks have been closed) every time I reload the page (the same when I click Select_event button).. not only after I press on that Close_task button..
    For issue number 2, I have to mention that I've added a condition to show / hide the Close_task button, only if I have at least 1 task in the report.
    The issue number 2 is that I see the button only if I click 2 times on the Select_Event button.. The same is for hide.
    I feel like I am missing something very important about how to synchronize different events(buttons clicks), processes..
    help..?
    Thank you!
    Anca

    This forum is magic..
    As soon as write here, I find the answer!
    Issue 1: I fixed it by specifying this: When Button Pressed (Process After Submit When this Button is Pressed) and my button. I miseed this 1st time.
    Issue 2: I moved the button after the report.. and now it's working just fine!
    I did this about it for some time before asking the question here.. but I just had to write here and got the right answer ;)
    Have a nice day!
    Anca

  • Prob.. confirm message

    hey...
    its the updation query.In this page when i click the update button it updates the values in the row..and this query is working...
    I want to do that..when i click a update button it gives me a confirms message whether did u want to update the row and also displaying the particular gl_code no in that confirms message.when i click on yes it updates the row..otherwise it doesnot.
    after updation it shows message that this particular gl_code no is has been updated.
    <%
    String action = request.getParameter("action");
    if (action != null && action.equals("update")) {
    conn.setAutoCommit(false);
    PreparedStatement pstatement = conn.prepareStatement(
    "UPDATE gl_mast SET gl_descr = ?, db_amt = ?, " +
    "cr_amt = ?, gl_type = ? , gl_pct = ? WHERE gl_code=?");
    pstatement.setString(1, request.getParameter("gl_descr"));
    pstatement.setFloat(2,Float.parseFloat(request.getParameter("db_amt")));
    pstatement.setFloat(3,Float.parseFloat(request.getParameter("cr_amt")));
    pstatement.setString(4, request.getParameter("gl_type"));
    pstatement.setFloat(5,Float.parseFloat(request.getParameter("gl_pct")));
    pstatement.setInt(6,Integer.parseInt(request.getParameter("gl_code")));
    int rowCount = pstatement.executeUpdate();
    conn.setAutoCommit(false);
    conn.setAutoCommit(true);
    %>
    <%
    Statement statement = conn.createStatement();
    ResultSet rs = statement.executeQuery
    ("SELECT * FROM gl_mast ");
    %>
    <form action="gl_update.jsp" method="get">
    <input type="hidden" value="update" name="action">
    <tr>
    <td><input value="<%= rs.getInt("gl_code") %>" size="5" name="gl_code"></td>
    <td><input value="<%= rs.getString("gl_descr") %>" size="55" name="gl_descr"></td>
    <td><input value="<%= rs.getFloat("db_amt") %>" size="12" name="db_amt"></td>
    <td><input value="<%= rs.getFloat("cr_amt") %>" size="12" name="cr_amt"></td>
    <td><input value="<%= rs.getString("gl_type") %>" size="3" name="gl_type"></td>
    <td><input value="<%= rs.getFloat("gl_pct") %>"size="5" name="gl_pct"></td>
    <td><input type="submit" value="Update"></td>
    </tr>
    </form>

    int rowCount = pstatement.executeUpdate();
    conn.setAutoCommit(false);
    conn.setAutoCommit(true);
    Just a doubt... could you tell me why you are doing this?
    ***Annie***

  • Jdbc adapter error on confirmation message in message monitor (rwb)

    I have the scenario iDoc -> PI 7 - > jdbc (AS400 odbc driver).
    When I do INSERT statements, the data is stored in the Database and the RWB message monitoring shows status Successfull.
    However, for every insert, an other message shows up in the message monitoring with reversed Sender and Receiver (so it looks like a confirmation message is trying to find its way back to XI). This message first is is Status "Waiting", and after some time gets in Status "System Error".
    As I am not expecting any responses in my XI configuration (as I have no place to send them to), I want to stop these messages showing up in the Adapter Engine (as there will be many Error Status messages that are of no interest to me).
    How can I stop these messages, or what should I do in XI to process them (and dump them in my receiver determination). I have NO  BPM involved .

    Hi,
    For each open connection a entry is made j2ee stack.So when the it reaches to max and execption is thrown.
    In Jdbc adapter configuration -> advance mode -> Set -> Disconnect from the database after processing each message.
    Should solve the prob
    <b>Cheers,
    *RAJ*
    *REWARD POINTS IF FOUND USEFULL*</b>

  • Exporting to PDF - Selection Formula confirmation message

    Hi,
    We're using Crystal Reports 11 from within a Delphi 7 application which, on a timed schedule, loads data into a MS SQL server database and generates and prints or e-mails a report of the data loaded in PDF format. This process should be automatic and not require monitoring but we're now seeing the report generation being stalled by a confirmation message appearing when the report is generated. The message reads:
    Confirm
    Selection Formula for {Report Name} to Printer   // or To Export
    {Selection Formula Here}
    Continue?
    (RETRY=edit with Crystal, All=copy to clipboard)
    Buttons: Yes No Retry All
    Any help appreciated.
    Thanks,
    Garry

    I'm wondering if this could be easily fixed by going to the links panel and then use the "Copy Links To" and set up a new links folder for the job.
    That would copy all the links and then relink to that folder - right?
    Perhaps that's a quick way to get rid of this problem.
    It could be anything though - I've had weird, but not this problem, of files that are on a server can cause link problems.
    I don't know - it's a one of those have to sit down and look at the files to see what's going on situation - like Bob already said.

  • Adding a link to confirmation message

    I noticed there is no link option for text in a confirmation message.
    Am I missing something? Or is there a workaround? Adding HTML?
    Thank you very much for your help,
    Sacha

    Sorry, we currently don't support inserting links into a confirmation message.
    thanks
    Roman

  • POWL :IF_POWL_FEEDER :2 Confirmation Messages

    Dear All
    We are implementing this POWL interface and overriding its GET_ACTION_CONF method as well to get the confirmation pop-up message .
    However there is a new requirment to show another popup on clicking of yes button of this popup. I am not sure how can we do that . Is it possible for anyone to share some experience as how can we implement 2 confirmation messages in POWL though we only have one method available to us
    Thanks and Regards
    Gaurav

    Hi,
    I faced with the same problem and I found the class CL_POWL_RUNTIME_SERVICES (POWL runtime services) using the follow methods:
    GET_CONTENT_VALUES
    SET_CONTENT_VALUES
    Example:
    Data:
        L_PARAMETER_VALUE TYPE STRING,
        ST_ADDITIONAL_PARAMETER TYPE POWL_NAMEVALUE_STY.
      CL_POWL_RUNTIME_SERVICES=>GET_CONTENT_VALUES(
        EXPORTING
          I_PARAMETER_KEY   = 'ACTION_VIEW_ID'
        IMPORTING
          E_PARAMETER_VALUE = L_PARAMETER_VALUE ).
      If not L_PARAMETER_VALUE is initial.
        ME->GC_ACTION_REQUEST_VIEW_ID = L_PARAMETER_VALUE.
      else.
        ST_ADDITIONAL_PARAMETER-KEY = 'ACTION_VIEW_ID'.
        ST_ADDITIONAL_PARAMETER-VALUE = GC_REQUEST_VIEW_ID_INBOX.
        CL_POWL_RUNTIME_SERVICES=>SET_CONTENT_VALUES                                                                         ( ST_ADDITIONAL_PARAMETER ).
        ME->GC_ACTION_REQUEST_VIEW_ID = GC_REQUEST_VIEW_ID_INBOX.
      endif.
    Keep it in mind, if you have on or more POWL's queries, the parameter's value will be shared for all them.
    Regards,

Maybe you are looking for

  • How to get change date in Production Order ?

    Dear Friends, I want to know it, how to get change date in Production Order "Administration-TAB". F1-Help, It is displayed with "Change date for Order Master". and Structure table "CAUFVD". But, CAUFVD is not Transp. Table. Which table should I read

  • Tried to Export a video in mp4 but it always gives me an error

    Exporting mp4 used to not have errors but everytime I export it, it says there was an error and could not be important and this only happens when the imovie project is in mp4. How can I fix it?

  • Conntrans errors out in Send Phase.

    Hi all, After Conntrans is initialized, it errors out during send phase and the rest is good. This is the first time this user is having this problem. He has been conntransing for long time. by the way, we are on 6.0 SP02/5.0 SP11 the machine has dot

  • FK constraint violations

    Hi, I'm experiencing FK constraint violations in spite of having set kodo.jdbc.ForeignKeyConstraints:true. I've got a table that stores queued elements like this: TABLE QUEUED_ELEMENTS ( ID NUMBER, NAME VARCHAR2, NEXT_ELEMENT_ID NUMBER There is a FK

  • HT3771 How do you print multiple shots in one photo i.e. composite ??

    I remember seeing a notation that you can print multiple photos on 1 sheet. Normally called Composite. I saw it on Apple help as n-up (3-up) etc. Can't find the page. Would appreciate any