How to display warning message box with yes and no buttons

Hi,
I am writing the code to delete emp details from database.
I want to display warning message with yes and no buttons after clicking the delete button in the same page, if yes is clicked, i want to invoke delete() method in AM.
Is it possible, if yes pls suggest me how to do it.
Thanks
Message was edited by:
user536125

This is being discussed in
warning message(dialog page) to be displayed in the same page
Thanks
Tapash

Similar Messages

  • PresaveAction() Popup message box with save and cancel button

    Hi,
    I want to give user an option from popup box with the message "Are you sure to Save you record".
    I got below javascript code but don't know how to show two buttons on popup if user wants to recheck before final saving then he should click CANCEL otherwise SAVE button.
    <script type="text/javascript">
    function PreSaveAction()
    alert("Your request has been submitted");
    return true;
    </script>
    Please advise in above code. 

    Hi,    
    For your requirement, you can use the JavaScript Confirm Box which will contains two buttons in a popup window.
    Here is a demo about checking the value in the “Title” field, if it equals “asdf”, then a Confirm box will come out, then user will be able to choose whether to save or not.
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
    <script type="text/javascript">
    var $j = jQuery.noConflict();
    function PreSaveAction()
    var txtStatus = $j(":input[title='Title']").val();
    if(txtStatus == "asdf")
    alert("Invalid Input");
    var r=confirm("Are you sure to Save you record?");
    if (r==false)
    var statusfocus = $j(":input[title='Title']");
    statusfocus .focus();
    return false;
    else
    return true;
    </script>
    Feel free to reply if there still any questions about this.
    Best regards
    Patrick Liang
    TechNet Community Support

  • My iphone 4 started displaying a message box with the following message: "This accessory is not optimized for this phone. You may experience noise and loss of battery."  My question is: how to fix this?

    My iphone 4 started displaying a message box with the following message: "This accessory is not optimized for this phone. You may experience noise and loss of battery."  My question is: Why is this happening and how do I fix it? (I'm losing battery power precipitously). Thanks in advance for any assistance with this question.

    Thanks Kilted Tim, you solved the problem. I'm mightily impressed at the simplicity of the solution!
    Jaded Kane

  • Firefox 4 displays multiple message boxes with "uninstall set'. How do I stop this?

    Firefox 4 displays multiple message boxes with "uninstall set'. They cannot be closed and they freeze Firefox. The only way to stop is to END TASK through the Task Manager.
    OS: Vista) with all service packs and updates as of 21 Apr 2011. All other browsers and applications are closed.

    This issue can be caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)
    See:
    * [[Troubleshooting extensions and themes]]

  • How to display the message along with a value using BBP_CHECK_BADI

    Hi Gurus,
    I need to display a message dynamically when the user create's a shopping cart. I am using Check_badi for this. i.e., I need to display the buyer number and amount left for him dynamically. I am storing both of them in variables and don't know how to display the messages laong with some message " the amount left for <XXXXXX> is <$$$$$$$$>". Can you help me out.
    Thanks,
    Neelima

    Hi,
    you can use the function module 'BBP_PD_MSG_ADD'. This is the function module normally used for the displaying the error messages in SRM.
    See wether you can use already available error messages , use the transaction SE91 , and the message class being BBP_PD

  • How to display a message box in a UIX JSP page?

    I've a UIX JSP Application with BC4J developed with JDeveloper RC.
    The problem is that when the user mistakes in the insertion/updating, I'd like to help him displaying a message box or a modal dialog window.
    In particular, I've the following code:
    <%@ page errorPage="errorpage.jsp" contentType="text/html;charset=WINDOWS-1252"%>
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix" %>
    <%@ taglib uri="http://xmlns.oracle.com/uix/ui/bc4j" prefix="bc4juix" %>
    <%@ page import="oracle.jbo.JboException" %>
    <%@ page import="CdssPackage.*" %>
    <%-- Define Application Module and DataSource--%>
    <%-- Define Application Module and DataSource--%>
    <jbo:ApplicationModule configname="CdssPackage.CdssPackageModule.CdssPackageModuleLocal" id="app1" username="scott" password="tiger" releasemode="Stateful" />
    <%
    //Check the mandatory fields are not null
    if ((cod_comm.compareTo("")==0) || (nome_ruolo.compareTo("")==0)){
    throw new JboException(Errors.ERR_REQUIRED_FIELD);
    //Now, the errorpage.jsp is displayed, while I'd like to display a message box or a modal dialog window
    %>
    How can I do it?
    Thanks in advance.

    Michele-
    You can use javascript to send a message window in the http protocol.
    Hope this helps,
    Lynn
    Java Tools Team

  • Creating a dialog box with OK and Cancel buttons without OADialogPage

    Hi Experts,
    i want to create a dialog box for Delete Confirmation means after clicking on delete it should pop up a small dialog box with OK/Cancel buttons
    and need code for the same to handle the buttons.
    i have created with OADialogPage but its showing in a complete page but i want to show those buttons in a small box.
    Plz help.
    THANKS IN ADVANCE.
    Thanks
    Raja.

    Hi,
    I have not tried using javascript in destination URI as suggested by Mukul.
    I have tried the below code for opening a page as dialog box.
    You can try it for your requirement by creating a dialog page of your own, say XXDialogPage (with OK and Cancel button)
    StringBuffer l_buffer = new StringBuffer();
    l_buffer.append("javascript:mywin = openWindow(top, '");
    String url = "/OA_HTML/OA.jsp?page=/xx/oracle/apps/fnd/dialog/webui/OADialogPG";
    OAUrl popupUrl = new OAUrl(url, OAWebBeanConstants.ADD_BREAD_CRUMB_SAVE );
    String strUrl = popupUrl.createURL(pageContext);
    l_buffer.append(strUrl.toString());
    l_buffer.append("', 'lovWindow', {width:500, height:500},false,'dialog',null);");
    pageContext.putJavaScriptFunction("SomeName",l_buffer.toString());
    In dialog page's controller, you can forward it to the page onc ethe user selects OK or Cancel.
    Pass the selected value back to the main page and further you can use it for deleting.
    Regards.

  • How to display warning message in PL/SQL?

    Hi,
    I would like to know how to display a warning message in PL/SQL?
    Thanks and Regards,
    SC

    PL/SQL is not an interactive programming language, so there is generally no place to print any sort of message, no place to prompt the user for input, etc.
    A SQL*Plus script can use the SQL*Plus client as a very basic way of interacting with users using the PROMPT command to accept input and using DBMS_OUTPUT to print messages to the console (assuming the script does a SET SERVEROUTPUT ON to enable printing the results). Other applications may have similar sorts of scripting possibilities, generally based on a subset of the commands SQL*Plus supports.
    Justin

  • How to display warning message ?

    Dear all,
    I would like to display a warning message, when the user doesn't key in a profit center (with Tcode: FB50).
    I have entered the option "Optionnal entry" for profit center for the field status group, but the system doesn't display any warning.
    Could you help me ?
    Thanks and best regards

    HI,
    Please try to use a Validation which will be easy to achive this. If you dont know how to create a validation please check the WIKI, you will find a documentation which can help you.
    Regards
    Ravinagh Boni

  • How to display warning message before deleting a record?

    Hi all
    I want to display a warning popup message( "Do you realy want to delete the record? Yes - No" ) before user delete a record. My page fragment contains simple <af:table> which display the employees data and operations buttons "commit - delete - rollback"
    I use Jdeveloper release 11.1.4
    Database : oracle 10g
    Thanks in advance

    Thank you so much for replaying
    I have another question related to creating popup
    I have page template and only one jspx page based on the template named"UIShell.jspx"
    I make a lot of page fragments , I have - untill now- about 15 page fragments.
    all these fragments are shown as dynamic regions within UIShell.jspx"
    My question is
    Should I create popup dialog window in each page fragment in order to display the messages?
    If the answer is "YES" this will not be a good approach - I think.
    Is there a way to create just one popup dialog and use it an any page fragments.
    Regards
    Edited by: ta**** on Apr 17, 2011 8:44 AM

  • How to display Warning messages in BADI ME_PROCESS_REQ_CUST?

    Hi,
    I have implemented BADI ME_PROCESS_REQ_CUST and coded necessary logic according to my requirement in Method  PROCESS_ITEM.
    On a certain condition , I need to display a Warning message.
    I have written the code as follows:--
    message w001(00) with 'XYZ'.
    It didnt work.
    Then, I included the message in message class ZPBS, and coded as follows.
    message w012(zpbs).
    But, still it didnt work..
    Can u guys please guide me what I need to do?
    Thanks,
    Shivaa....

    Hello Shiva
    Have a look at method PO_READ of class CL_PO_HEADER_HANDLE_MM.
    METHOD po_read.
      INCLUDE mm_messages_mac.
      DATA: l_po_number TYPE ekko-ebeln.
      IF im_po_number NE space.
        l_po_number = im_po_number.
      ELSE.
        l_po_number = po_number.
      ENDIF.
    * authority check on transaction code disabled
    * If called via CALL TRANSACTION, this check is already done by basis
    * (see note 358122)
    * restriction of T-code authority check to Enjoy only
      IF for_bapi IS INITIAL.
    * tcode authorization
        IF NOT im_tcode IS INITIAL.
          CALL FUNCTION 'AUTHORITY_CHECK_TCODE'
            EXPORTING
              tcode  = im_tcode
            EXCEPTIONS
              ok     = 0
              not_ok = 1
              OTHERS = 2.
          IF sy-subrc NE 0.
            MESSAGE e172(00) WITH im_tcode INTO gl_dummy.
            mmpur_message_forced 'E' '00' '172' im_tcode '' '' ''.
            ex_result = mmpur_no.
            CALL METHOD set_state( im_state = c_available ).
            EXIT.
          ENDIF.
        ENDIF.
      ENDIF.
    Add the include MM_MESSAGE_MAC to you method and set the message using macro MMPUR_MESSAGE_FORCED.
    I am not sure whether the warning will indeed be displayed while changing an item but it should be displayed when checking the purchase requisition and presumably when saving it.
    Regards
       Uwe

  • How to display a Message box

    Hi,
    i am using oracle forms 10g
    i need to dispaly a message box like VB.NET to user that displays messgae
    say "hello"
    how do i do it....whats the syntax or built in used ??
    plz help

    Rosario,
    If you use the message built-in, isn't the message
    displayed on the status line and you get a blank
    popup? Correct me if I am wrong.Sayeed ,
    If you write one and only one message, you are right it is displayed on the status line , but I wrote
    Message
    Message
    The second message only needs to be:
    Message(' ',no_acknowledge);
    The second message forces the first to pop up like an alert.
    Regards

  • How to display alert message box in sharepoint 2013 visual web part?

    Hi,
    I am developing a visual web part which submits data to the list. Once it submits the data, I should convey to the user that the data has been submitted successfully.
    I tried using clientScript.RegisterStartUpScript etc, but, none of them are working. It is not throwing any error , but pop up is not getting displayed.
    Preferrably, I would like to call this alert message from cs page, because, I will be using it in several places.
    Please help me.!
    Thanks in advance.
    Hepsi

    Hepsi, 
    Step 1. On the Page_Load - This way you can pass parameters. Try this
    btn.Attributes.Add(
    "onclick", string.Format("return openSPPopup('{0}?{1}={2}', '{3}')", YourPage_URL, var1_Name, value1, Param1_PopupTitle));
    Step 2 : Javascript function
    function openSPPopup(navigateURL, popUptitle) {
    var options = {
    width: popupWidth,
    height: popupHeight,
    url: navigateURL,
    scroll: 0
    SP.UI.ModalDialog.showModalDialog(options);
    return false;
    Step 3: The popup close code (in .cs file) – I do it this way as it is just close dialog code and easy to write.
    protected void btnClose_Click(object sender, EventArgs e)
    { this.Page.ClientScript.RegisterStartupScript(this.GetType(), "PopupScript", "SP.UI.ModalDialog.commonModalDialogClose(1, 1);", true);
    Courtesy -
    Thread
    Try this - https://bramdejager.wordpress.com/2011/03/21/using-sp-ui-dialog-and-sp-ui-notify-from-code-behind/
    http://msdn.microsoft.com/en-us/library/ff798390.aspx
    http://stackoverflow.com/questions/9833907/asp-net-confirm-before-executing-codebehind
    http://www.codeproject.com/Questions/443131/Call-to-javascript-Function-from-code-behind-using
    http://www.c-sharpcorner.com/uploadfile/ledomoon/calling-code-behind-function-in-javascript/
    Hope they will help!
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • How do I get the selection tool [v cursor] to display the grey box with w and h numbers as it moves?

    Here is a link to a jpeg representing what I need to see, this screen shot was taken from a tutorial.
    http://shadowworkmovie.com/Archive/cursor.png

    The update solved it.
    InDesign CS6 8.0.1 Update

  • Reg:- How-to build dependent lists boxes with ADF and Faces(Frank.Nimphius)

    Hi,
    by using this i try to create a parent child relationfor selectonechice box and table.
    this is woking properly but as i start selecting values in SelectOneChice Box, value in tabel are seems to be Disappears.
    even i create navigation list and map them properly..
    please suggest me about this.
    Regards:-
    Bkumar

    Thanks for reply...
    but this is not one that i wants...<< Need to create Depandent selectOnechoice and table Adf page>>
    i created one parent SelectOneChoice list having some values, and one child tabel for there values. Navigation List.even i checked Auto Submit and Id for parent, and Partial triger for Child.
    When irun this application the values are not coming properly.
    please help me about this.

Maybe you are looking for

  • Cannot use iTunes to download apps or rearrange icons

    Since I updated iOS 8 on my iPhone 6 this morning, I cannot rearrange the icons on my screens, either right on the phone or in iTunes when connected with USB cord.  I also cannot install apps that I previously downloaded.  Anyone else having these pr

  • How do I resolve 0x80096004 issue?

    I cannot connect to the iTunes Store due to "unknown error (0x80096004)."  I am running iTunes 12.0.1.26 on Windows 7.  I have run the diagnostics, confirmed firewall rules, and checked proxy.  Cannot find a resolution to this issue.  Any ideas?  I h

  • OPMN start failed - but I can see opmn -d running via ps -ef

    I am trying to figure out why I keep getting the message OPMN start failed when trying to start OPMN. The thing I don't understand is why I can see the processes opmn -d running when I look via ps -ef. If I run the opmnctl startall command once more

  • Leopord and final cut 2 issues

    I bought a family pack of Leopord and we are curious as to whether there are any issues with it and some 3'rd party software. My son owns a MacPro Tower and is finishing film school. He is using Final Cut 2 suite which comes bundled with Motion and o

  • Blocking possiblities

    sir, give me the u r views on this Blocking possibilities at various levels? Why does we require customer enhancement? What is material extension? how can u make some of the fields as key fields in generic tables? What is ABAP query,where it is used,