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.

Similar Messages

  • 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

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

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

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

  • 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

  • Eliminating delete confirmation dialog

    Is there any way to eliminate the delete confirmation dialog in Finder? When I remotely browse the files on my iMac from my MacBook, I occasionally want to delete one. But I always get the popup dialog "Are you sure you want to delete the selected items?"
    Of course I'm sure. Besides, I have backups if I need them. How can I eliminate this nag message?
    Thank you!

    Press Command-Option-Delete
    http://www.macworld.com/article/143594/2009/10/networkdelete.html
    Message was edited by: Martin Pace

  • 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 batch delete iMessage messages on Desktop (Macbookpro)

    Hey guys,
    I was wondering if there is a better method to delete the messages than deleting one by one the message in the iMessage panel...
    thanks very much for your help
    Jeff Chaine

    daniel lfromorlando wrote:
    I understand that I can reset or restore the iPhone, but this shouldn't have to be an everyday procedure.  For example, under "Settings/General/Safari", you can "Clear History", "Clear Cookies" and/or "Clear Cache".  You should be able to do the same with text messages.
    Any other thoughts or suggestions is greatly appreciated.
    The problem should go away after resetting or restoring once, so it won't be a everyday procedure.
    If you just want a new feature added to reset or clear text message cache, leave a feature request here -> http://www.apple.com/feedback/iphone.html
    WTH.

  • How to delete the messages from JMS Queue

    Hi,Can anybody help how to delete the messages from the JMS Queue.Thanks in advance.

    You can dequeue the message using a JMS client or delete it using Weblogic Admin Console -
    http://download.oracle.com/docs/cd/E17904_01/apirefs.1111/e13952/taskhelp/jms_modules/queues/ManageQueues.html
    Regards,
    Anuj

  • 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

  • How to delete multiple messages in the same mailbox all at once? Unity Connection

    I just was assigned the task of administrating three Unity Connection servers that are networked. The Operator mailboxes on each system have been taking messages since 2010 and have over 5 thousand messages in them (nearly 3 mega bytes). I've corrected the set up so the mailboxes no longer are taking messages, but would like to delete all the new messages in order free up memory resources, and I don't want to undo all the Call Handler relationships in order to delete the mailboxes and then recreate them, etc. I used the PCA tool  to clean up the Operator MBX on a standalone Unity Connection that had nearly 1800 messages, but it took nearly 30 minutes for the PCA tool to load and another 4.5 hours to delete one message at a time (major carpal tunnel afterwards!).  For these mailboxes with 5-6K messages, the PCA tool was  not loaded after 3 hours!   Is there a faster, more efficient tool for deleting all new messages in a single mailbox? (i.e., Message Hunter?)

    Hi There,
    +5 to heath for his good notes!
    One nice way with Unity Connection is with the use of this excellent tool from the great suite of Unity Tools (use the ** reset" feature **).
    Unity Connection Bulk User Delete   
    For resetting users you have the option of emptying the mailbox,  resetting greetings, deleting voice names,  resetting passwords,  removing private lists and a number of other  options you may choose.   For installations where the user base “changes  over” frequently such as  schools this may be a nicer option.  This  option is also allowed for  CoRes installations since it does not involve  the removal of user  objects from the Connection database.
    http://www.ciscounitytools.com/Applications/CxN/BulkUserDelete/BulkUserDelete.html
    Cheers!
    Rob
    Please support CSC helps Kiva
    https://supportforums.cisco.com/blog/12122171/cisco-support-community-helps-kiva

  • 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

Maybe you are looking for

  • Whats is difference between Java JRE  and  Java SDK

    Hi, what is the difference between Java JRE and Java SDK... i think both of them have the same set of files to be installed... I am not able to understand where they differ

  • Macbook pro i7 - Mid 2010 - Lion 10.7.2 fresh install CRASHES

    Hello MacHeads like my self, I have a macbook pro - mid 2010 (i7, 8gb ram), I had a major disk corruption a few days ago (WD 750gb 7200rpm), bunch of bad sectors and I belive it took place becouse I had the crazy black screen failiur going on for a f

  • Can no longer connect for audio or video chat : Error -8 drama

    I've been video and audio chatting to Europe for quite some time with no problem. After installing a new modem (Motorola Surfboard SB5101) I'm now getting the dreaded Error -8 and can not connect for either audio or video. Text works fine. I've poked

  • DVI-D - HDMI switcher - DVI-D

    Hey friends, I've got a fairly convoluted and confusing HDMI situation. As DVI matrix switchers are so expensive, I decided to get a HDMI switcher and HDMI to DVI cables. I have two Mac Pro towers, each with two DVI outputs, and two 24" Cinema HD dis

  • SQL Server 2000 -collation.

    Hi, If its important collation in SQL Server 2000, i have - SQL_Latin1_General_CP850_BIN(master, msdb, model etc.), but DB <SAP> haves SQL_Latin1_General_CP850_BIN2. I try to change collation on the server by instcoll.exe but i have error: C:\col\ins