Delete Confirm Message

Hi All,
How to create delete confirm message in Webdynpro ABAP.
Regards,
Arun

Hi Arun,
If you want to create the confimrmation message for deletion option follow the code here to create a window which will display a popup to the user for confirmation with 'YES' and 'NO' buttons.
DATA:
    api_component TYPE REF TO if_wd_component,
    window_manager TYPE REF TO if_wd_window_manager,
    window TYPE REF TO if_wd_window.
    api_component = wd_comp_controller->wd_get_api( ).
    window_manager = api_component->get_window_manager( ).
    DATA : msg_tbl TYPE string_table,
           wa_msg LIKE LINE OF msg_tbl.
    MESSAGE w120(mmw_adm_mon) INTO wa_msg. "get the message you want to display in the *popup from a message class
   APPEND wa_msg TO msg_tbl. " append that to msg_tbl
    window = window_manager->create_popup_to_confirm(
                   text            = msg_tbl
                   button_kind     = if_wd_window=>co_buttons_yesno "4
                   message_type    = if_wd_window=>co_msg_type_warning "5
                   window_title    = 'Confirmation'
                   window_position = if_wd_window=>co_center )."#EC *
    DATA: view_controller TYPE REF TO if_wd_view_controller.
    view_controller = wd_this->wd_get_api( ).
    DATA: button_text TYPE string,
          tooltip TYPE string.
    button_text = wd_assist->if_wd_component_assistance~get_text(
  '026' ).
    tooltip = wd_assist->if_wd_component_assistance~get_text( '111'
    CALL METHOD window->subscribe_to_button_event
      EXPORTING
        button            = if_wd_window=>co_button_yes "6
        button_text       = button_text
        tooltip           = tooltip
        action_name       = 'ON_YES'
        action_view       = view_controller
        is_default_button = abap_true.
    button_text = wd_assist->if_wd_component_assistance~get_text(
  '027' ).
  tooltip = space.
*          tooltip = wd_assist->if_wd_component_assistance~get_text( '040'
    CALL METHOD window->subscribe_to_button_event
      EXPORTING
        button            = if_wd_window=>co_button_no "7
        button_text       = button_text
        tooltip           = tooltip
        action_name       = 'ON_NO'
        action_view       = view_controller
        is_default_button = abap_false.
    window->open( ).
and create the action methods ON_YES and ON_NO to handle the events.
Regards,
Anil kumar G

Similar Messages

  • 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.

  • HTML DB  Delete confirm Message

    I have a Delete button and I have TWO QUESTIONS for this Delete button.
    1- How do I implement confirm message to allow the user to either confirm or
    cancel?
    2- How do I have a popup that was three buttons, namely [Delete One Record],
    [Delete All Record] and [Cancel].
    If the user click on [Delete One Record]. One selected record is deleted.
    If the user click on [Delete All Record]. One all records are deleted.
    [Cancel] do nothing.
    Help!

    The javascript confirm popup only has OK and CANCEL options. If you want other options, you'll have to write them yourself (or find one that someone else has already written).
    If you don't want to do that, I have a suggestion: instead of putting two DELETE buttons in the confirm popup, put two buttons on the web page, one for DELETE MARKED RECORD and one for DELETE ALL RECORDS. Each would then call its own individual javascript confirm. Each button would have a different request associated with it, so your process would know which button had been selected from the page.

  • 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

  • Disable iMesssage message delete confirmation?

    How do I disable the confirmation pop-up when I chose to delete a message in iMessage. I seem to have gotten this to work on one computer, but unable to replicate across other computers.
    Thanks in advance!

    The name of the button doesn't matter. What does matter is you have to have a place to put the event (a formValue element). The following uiXML illustrates:
    <page xmlns="http://xmlns.oracle.com/uix/controller">
    <content>
    <stackLayout xmlns="http://xmlns.oracle.com/uix/ui">
    <contents>
    <script>
    <contents>
    function warning()
    if(confirm("Are you sure?"))
    submitForm('viewForm',1,{'event':'deleteEvent'});
    return false;
    return true;
    </contents>
    </script>
    <form name="viewForm">
    <contents>
    <textInput name="ti1name" id="ti1ID"/>
    <formValue name="event" id="event"/>
    </contents>
    </form>
    <button name="deleteButton" text="send delete event"
    onClick="return warning();" />
    </contents>
    </stackLayout>
    </content>
    <handlers>
    <event name="deleteEvent">
    <null/>
    </event>
    </handlers>
    </page>

  • 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

  • How to delete the messages in clock-in/clock-out

    Hi All,
    I need to delete the messages in clock-in/clock-out which are appearing in portal, to delete this messages is there any report at R/3 side kindly suggest me help me in this
    waiting for your responses .....
    Regards,
    Shilpa.

    you can run the report RPUP1D00 for the periods that you need to delete
    the messages without any problems, but please read the documentation
    carefully before starting.
    Please note, that RPTERR00 always reports ALL errors. It does not matter
    in which period they appeared. Please destinguish between errors and
    notes.
    The errors which appear during a time evaluation run are stored in table
    ERT in cluster B1 and in table FEHLER in cluster B2 are intended to
    store and display those errors as long as the errors are not corrected.
    If you don't want these errors to be displayed any more you either have
    to correct the errors or you must delete Cluster B1 via report RPUP1D00.
    The old NOTES are transferred from the ERT/B1 to FEHLER/B2 with each
    subsequent run of time evaluation.
    Your time administrators should normally work with PT40 and confirm
    'I' messages or correct errors by using the error handling.
    This report can be run like this
    Relation ID   'B1'
    Sort field    Pers.no. (eight-digit)
    Delete?       X
    Password      Username

  • Deletion of messages created in solution manager service desk

    Hi All,
    I have implemented service desk functionality on solman 4.0. and for the testing we have created a number of messages from the satelite system. now i want to delete the messages from the list in crm_dno_monitor list.
    could someone help me as to how do i delete all the test messages created in the service desk.
    Regards
    Mahendra K

    Hi Ben,
    Thanks a lot for ur reply, but i have a few queries which have not been answered in the attached post.
    after we confirm the message deletion from the table DNOD_NOTIF. but again when we go ot the message list and observe we still find the messages there.
    also how do we delete messages with status of 'External Processing' and the list only shows the messages which are outstanding the date.
    could you help me in resolving the same.
    Regards
    Mahendra K

  • SRM - Delete confirmation (service entry sheet)

    Hi,
    we have the 5.00SRM.
    The user tried to post twice the same confirmation (service entry sheet) so the system replicated the first one in R3 and the second is in error for the Purchase order lock (message class SAP-T100 message-id BBP_ADMIN 010).
    It's right that the second is in error (Luckly!!!), but now we don't know how delete it (the second wrong confirmation), because in the confirmation transaction the delete button is inactive. Now the user need to create a new confirmation for the same purchase order, but since now all the confirmations for that purchase order go in error.
    Please, help me ... I looked all SAP notes and forum messages but I didn't find the solution.
    Thanks
    Lara

    Hi
    Which SRM scenarion and version are you using ?
    <u>Seems to be some bug in the system (Either due to wrong implmentation of some OSS note or some other reasons).</u>
    <b>Anyways, better to raise an OSS message with SAP as well.</b>
    <u>Refer to following OSS notes.</u>
    <b>535765 Too many entries in BBP_DOCUMENT_TAB
    1028584 You cannot delete confirmations that are in approval process
    863198 Confirmation screen is locked on click on delete button
    668829 Error when deleting held goods receipt confirmations
    852327 Disable Deletion of Confirmed PO Items
    994529 Conf can be deleted despite error in DOC_CHECK_BADI
    778489 Partial confirmations for back-end service purchase orders
    602973 Duplicate error messages during confirmation
    499917 EBP: deleted return delivery: BBPERS creates no invoice
    786051 Deleted service lines are checked
    515754 Deletion of held confirmation documents in back-end case
    355138 Cancellation of goods receipt/service confirmation
    430660 Deletion, change, return delivery possible after return</b>
    Hope this will help.
    Regards
    - Atul

  • How do I flag and DELETE all messages in my IN basket -- Seems that if I delete them one by one they still indicate being there even if there are NO messages

    When I retrieve mail and delete the message I still see the message count even if all of the messages are gone

    I had tried that and it appeared to select nothing, so I got thrown off. But yes, I should have tried the delete button at that point. Then delete the swatch, then copy it all and paste it into a new file. The paste-in is my primitive way of confirming what's actually there. I'm sure there are more elegant ways.
    Thanks, guys.

  • Add confirmation message

    Hi-
    I've created a simple form and after the user clicks the submit button, I would like to display a brief confirmation message (e.g., "Record submitted").
    I searched the discussion forums but didn't have any luck. I've attached the html and php code below. Thanks!
    ---HTML CODE--
    <body>
    <h3>Add a Record</h3>
    <form action="add_record.php" method="post" name="Add Record">
        <p>Title:
          <input name="book_title" type="text" value="" size="125" />
        </p>
        <p>Author: <input name="author" type="text" /></p>
        <p>Year: <input name="year" type="text" /></p>
        <p>Publisher: <input name="publisher" type="text" /></p>
        <p>Available as ebook?: <select name="ebook">
            <option value="Yes">Yes</option>
            <option value="No">No</option>
            </select></p>
        <p>Amazon Rank: <input name="amazon_rank" type="text" /></p>
      <p><input name="Submit" type="submit" value="Submit" /></p>
    </form>
    </body>
    --PHP CODE--
    <?php
    include("includes/connect_info.php");
    $connection = mysql_connect($hostname, $mysql_login, $mysql_password);
    $dbs = mysql_select_db($database, $connection);
    $book_title = mysql_real_escape_string($_POST["book_title"]);
    $author = mysql_real_escape_string($_POST["author"]);
    $year = mysql_real_escape_string($_POST["year"]);
    $publisher = mysql_real_escape_string($_POST["publisher"]);
    $ebook = mysql_real_escape_string($_POST["ebook"]);
    $amazon_rank = mysql_real_escape_string($_POST["amazon_rank"]);
    $insert=mysql_query("INSERT INTO mydatabase.mytable (book_title, author, year, publisher, ebook, amazon_rank) VALUES ('$book_title', '$author', '$year', '$publisher', '$ebook', '$amazon_rank')");
    mysql_close();
    ?>

    SuperSonic65 wrote:
    Where should I put the header function? I tried putting it right after
    <?php
    but it didn't work. Do I need to delete the exit; since there are functions that follow the header function? Thanks.
    -------PHP CODE BELOW----
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Update Record</title>
    </head>
    <body>
    <?php
    include("includes/connect_info.php");
    $connection= mysql_connect($hostname, $mysql_login , $mysql_password);
    $dbs = mysql_select_db($database, $connection);
    //Assign the data passed from website to a variable
    $book_id = mysql_real_escape_string($_POST["book_id"]);
    $year = mysql_real_escape_string($_POST["year"]);
    $insert=mysql_query("UPDATE mydatabase.mytable SET year='$year' WHERE book_id='$book_id';");
    mysql_close();
    ?>
    </body>
    </html>
    If that page is your PHP page, get rid of everything that comes before <?php and after ?>.  PHP pages do not need HTML in them.  In fact, if you run the header code on a page in that fashion you will typically generate the error saying that the header was already sent, because the HTML <head> was already processed so the PHP thinks its a duplicate. 

  • 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'));

  • Mail confirm messages; rules

    Is there any way of getting rid of mail confirmation messages; for example, when I want to bounce a message, I shouldn't have to see a dialog box every time. After all, I can delete a message without having to see a confirmation dialog box. Is there some kind of hidden preference for this?
    I want to create a rule as follows:
    Message is from some sender AND the word "foo" is not found more than five times in the message body.
    Is this possible? If so, how?
    I get a digest of "foo" several times a day; however most of the messages in the "foo" group have nothing to do with "foo" -- they are about "bar" or are spam. I'd like the digests that aren't about "foo" to go directly into the trash, but the word "foo" is found at the beginning and end of the message -- at the top where the group name is, and at the bottom where the subscribe/unsubscribe information is.
    Thanks in advance.

    Check the iCloud.com website and look for a rule that may have been created there.

  • How to override confirmation message as part of batch action?

    I have created an action in Illustrator CS5 that ungroups a radar graph and deletes the axis lines. And I would like to run this action on a batch of 100 files. The problem I am having is that when I run the action, I get the following pop-up message at the ungroup command:
    If I click OK, the action continues.  But, as part of a batch, it becomes a bit tedious to have to click "OK" 100 times, and it sort of defeats the purpose of running the action as a batch.
    I see options in the batch window to override action "Save As" and "Export" commands, but is there a way to have the batch override this confirmation message? I suspect there may be a way to do this with a script, but I am not proficient enough with scripting yet to take that route.
    Thanks for looking at my questions.
    NW

    One year of patience. That's commendable …
    Neil, I have not done what you did, but my suggestion would be to take the Flatten Transparency command instead of the Ungroup command in your action.
    You should get the same result – that is, ungrouped (expanded) graph objects – if you carefully set up the Flatten Transparency dialog.

  • Writting confirmation message??

    Hi all friends,
    I am developing one uploading software it is a total automatic process of uploading user only copy the files in predefind folder and click on upload button once and my software starts uploading one by one from queue and move the file one by one into another folder automatically after completion of uploading.After that in between uploading if user copy more files in that folder my software automatically takes those file for uploading not require to click on upload button again.Now I am facing problem on writing confirmation message of uploading of every file on my swing interface which my servlet writing on PrintStream after completion of writing of every file on destination.But my interafce not writing those confirmation messages on textArea but it is writing confirmation message of last file on Dos-Prompt coz iam running my application from Dos-prompt.I want to write every file's uploading confirmation message on textArea of my swing application.Can any one plz guide me how I can do that.Below r my codes:-
    swing application(Iam pasting those portion only):-
    ===================
    class Loglater implements Runnable {
    String msg;
    public Loglater(String s) { msg = s; };
    public void run() { log(msg); }
    public void log(String msg) {
    if (SwingUtilities.isEventDispatchThread()) {
    textArea.append(msg);
    textArea.append("\n");
    System.err.println(msg);
    else {
    SwingUtilities.invokeLater(new Loglater(msg));
    return;
    servlet:-
    ========
    import java.io.*;
    import java.util.Enumeration;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class RecvFileServlet extends HttpServlet {
    String s,str,str1,filename,path;
    public void init() throws ServletException {
    super.init();
    baseFile = new File(BASE_DIR);
    str="false";
    str1="false";
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    response.sendError(response.SC_NOT_ACCEPTABLE, "Must use POST method.");
    public void doPost(HttpServletRequest request,HttpServletResponse response)
    throws ServletException, IOException
    PrintStream pos = new PrintStream(response.getOutputStream());
    response.setContentType("text/plain");
    filename = request.getParameter("name");
    path = request.getParameter("path");
    File outfile = new File(filename);
    System.out.println("path value = " + ((path == null)?("null"):(path)));
    System.out.println("name value = " + ((filename == null)?("null"):(filename)));
    if (path != null && filename != null) {
    outfile = new File(path, filename);
    System.err.println("Final output file: " +
    outfile.getAbsolutePath());
    // create a DataInputStream to read from sender
    DataInputStream dis;
    dis = new DataInputStream(request.getInputStream());
    OutputStream os;
    // create file output stream to write the output file
    System.err.println("Using output file " + outfile);
    os = new BufferedOutputStream(new FileOutputStream(outfile));
    int cc;
    byte [] buf = new byte[1024];
    long tot = 0;
    // read from the input stream and write to the file
    try {
    for(cc = dis.read(buf, 0, 1024);cc > 0 ; cc = dis.read(buf, 0, 1024))
    os.write(buf, 0, cc);
    tot += cc;
    System.err.print("+" + cc + "(" + tot + ")");
    catch (IOException ie) {
    try { os.close(); } catch (Exception e2) { }
    pos.println("Problem : " + ie.getMessage());
    // done reading and writing, close the file output stream
    System.err.println("Write" + tot + " bytes.");
    os.close();
    // Send back a response message to the application
    pos.println("File" +" "+ filename+" "+"Upload Completed !");
    Regards
    Bikash

    OK, he must have just put that limit in because of some reports of looping, although when I tested it, it seemed to work.
    If you are happy with running javascripts, there is a java script to do the same thing in the Apple iTunes COM SDK which you can download from here:
    http://developer.apple.com/sdk/itunescomsdk.html
    I wouldn't bother unless you have some knowledge of how to run scripts from the cmd Window.
    EDIT added later, sorry I am going mad here, I was talking about another script. What you need to do is to delete your iTunes preference files which resets iTunes to the state it was in when you first installed it.
    May need to make hidden files visible
    My Documents>Tools>Folder Options>View
    Check Show hidden files and folders
    -- Quit iTunes
    -- Delete C:\Documents and Settings\<your username>\Application Data\Apple Computer\iTunes\iTunes.pref and/or iTunesPrefs.xml
    -- Delete C:\Documents and Settings\<your username>\Local Settings\Application Data\Apple Computer Inc\iTunes.pref and/or iTunesPrefs.xml
    For Vista the files are in:
    C:\Users\username\AppData\Local\Apple Computer\iTunes
    C:\Users\username\AppData\Roaming\Apple Computer\iTunes

Maybe you are looking for

  • Pricing procedure for germany

    Hello all, Does anybody know the standard pricing procedure for germany or Europe? wat about RVCEU? -Prashant

  • Illustrator CS5 rendering Bug?

    Hi All, This is my first post in this forum. Recently I found this shared PDF rendering bug by both Adobe products: Illustrator CS5 and Adobe Reader X. Look at the attached images. Although these screenshots are from Adobe Reader X and Nitro PDF Read

  • Creating variable for attribute

    Hi guys, Is it possible to create variable for an attribute. My requirement is that the user wants Serial # as one of the user selection criteria which is an attribute of system code equipment in Dimension material. If not, is there any other possibl

  • External disks spinning up for no apparent reason.

    Hi. As long as I have had this iMac 27" i7 my external disks will at random intervals spin up for no apparent reason. One is set as a TimeMachine disk, the other is just for storage. I run iStat Pro, but have uninstalled it to see if it made any diff

  • Any key to stop the screen from sliding

    any key or application for IPAD, that may help to stop the screen from sliding?