ALV: check before delete a row

Hi,
I would like to delete a row in ALV.
Before the deletion I would like to send popup with the options "OK" and  "cancel".
If the user presses on cancel, it should not to be deleted.
Can I catch it in ON_DATA_CHECK? Popup is not the problem.
I would like that the row is not deleted.
Are there an instruction RESET?
Regards
Vedat

You can implement your own delete function instead of using the inbuilt function of the ALV. There you can check and depending on the popup, either delete a row from the internal table or dont delete and bind it back to the node.
Regards
Nithya

Similar Messages

  • Checks before deleting data connection in Infopath 2010

    I have one form which has more than 80 fields and about  7 sections. This form was published to PROD before year back now client found some performance issues while opening/submitting form.
    I checked and found one retrieve data connection is culprit. Now i want to delete that connection and create different one, but before deleting it, i have to find out all the references of this connections i.e- check where any columns used in rules, default
    values or validations etc.
    It's difficult and time consuming task to check each and every field in the form. Is there any easy trick to do this?
    w: sandippatilblog.blogspot.com/

    Found the solution, here below are the check
    1: Run Rule Inspector, for this go to DATA-->Rule Inspector form toolbar
    2: Delete the connection and try to publish the form, if form contains any rules or default value corresponding to deleted connection then form will not get published. It will give prompt to check errors, for this check the form using design check and see
    errors, then find the references about the errors on the form.
    w: sandippatilblog.blogspot.com/

  • How to enforce a check before deleting a transaction

    Hi,
    We want to restrict the deletion of order based on status . Eg: When the status of the order is Inprocess , deletion should be aborted with error message.
    Is there a BAdi to achieve this?
    Thanks,
    Shaik

    Hi Shaik,
    As of you cannot directly delete any Business Transaction. You can use the SAP Archiving to Achive and then delete the Transactions. You can have a look at the following link for the SAP Archiving for CRM
    http://help.sap.com/saphelp_crm70/helpdata/en/e1/f5fc37a0ca3144e10000009b38f8cf/frameset.htm
    For Archiving and then Deletion of Orders, have a look at the following link:
    http://help.sap.com/saphelp_crm70/helpdata/en/e1/f5fc37a0ca3144e10000009b38f8cf/frameset.htm
    This will give you a detailed information about the Activity of Carrying out the Data Archiving
    http://help.sap.com/saphelp_crm70/helpdata/en/09/72f63ad65c3b5ce10000000a11402f/content.htm
    For the Check and Delete Archiving Object,
    http://help.sap.com/saphelp_crm70/helpdata/en/85/1cc041e01e6624e10000000a1550b0/frameset.htm
    Hope this will help.
    Thanks,
    Samantak

  • Check before deleting Payment Proposals ( F110 )

    Hi gurus,
    I have the following scenario:
    When the user runs F110 and creates a payment proposal we start a workflow for approbation of the payment.
    I have successfully found a badi to start the workflow, the problem arises when the same user that created the proposal goes erases it.
    I can't let him just delete the proposal in the middle of the approbation, so I'm trying to find an exit to check if the workflow is executing for the proposal at the moment of deletion.
    I've tried with BTEs but couldn't trigger any.
    The transaction has a big number of user exits but they are for sending and Idoc, downloading a file or checking something country related.
    Does anyone know what can I do to check something before the proposal deletion? I'm running out of options and I'm afraid the requirement is not feasible.

    In F110, display the payment proposal log. Shift+F7.
    in the heading line 'ob log overview for job'  you can see the job name.
    say  'F110-20110104-FR4NA -X'
    if it is F110-20110104-FR4NA -X / 05170400, you have to take the part before the slash that is F110-20110104-FR4NA -X
    Go to SM37, enter this in the job name. Enter * in the user id. Enter the date , on which payement run was done.
    Then execute. YOu will see, who has run the proposal or payement run in the resulting screen.

  • To delete the row for the corresponding checked rows in alv

    hi,
    i have a alv report with check boxes,
    can any one say how to delete the row for the corresponding checked rows.

    hi
    give In REUSE_ALV_LIST_DISPLAY
    I_CALLBACK_USER_COMMAND  = P_USER_COMMAND
    FORM F_USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
                              RS_SELFIELD TYPE SLIS_SELFIELD.
    IF R_UCOMM = C_DELETE. where CONSTANTS : C_DELETE(6) TYPE C VALUE 'DELETE',
      READ TABLE IT_ITAB WITH KEY REC_SEL = C_X.
    LOOP AT IT_MARA WHERE REC_SEL = 'X'.
            MOVE-CORRESPONDING IT_ITAB TO IT_TEMP.
            APPEND IT_TEMP.
            CLEAR IT_TEMP.
          ENDLOOP.
    where it_temp IT_TEMP TYPE STANDARD TABLE OF itab WITH HEADER LINE,
    DELETE ITAB FROM TABLE IT_TEMP.
    HOPE THIS HELPS
    PRIYA

  • How to delete particular row in ALV list display

    Hi All,
    My requirement is :
    I am displaying ouput using lav list dispplay befor the first colomn i am displaying check box. i defined my own pf status here . in pf status i have 3 buttons .
    1 select all
    2 deselect all
    3 delete.
    First two options are working fine when i click select all it is selecting all the rown in a program(selectiong all the check boxex) like working fine for deselecting all.
    3 optioin  Delete when i click delete option it has to delete partcular row in a list display and at the same time this entry should delete from the table. this is my requirement. for the third point(delete) option i dont have any logic. anybody can suggest me or send me the sameple code. i am sending my code below.if possible please modify the code and resend it to me.
    type-pools : slis.
    tables : zuser_secobjects.
    data : t_header1 like zuser_secobjects.
    data : begin of it_secobjects occurs 0.
            include structure t_header1.
    *data :  box,
           input(1) type c,
    data :   checkbox type c,
            flag type c,
          end of it_secobjects.
    data : wa_ita like line of it_secobjects.
    *data : it_secobjects like zuser_secobjects occurs 0 with header line.
    data : i_field type slis_t_fieldcat_alv with header line.
    data : w_field like line of i_field.
    data : i_sort type slis_t_sortinfo_alv.
    data : w_sort like line of i_sort.
    data : it_filt1 type slis_t_filter_alv with header line.
    data:
    i_tabname type tabname,
    i_repid like sy-repid,
    is_lout type slis_layout_alv.
    data :   it_filt type slis_t_filter_alv   with header line,
             it_evts type slis_t_event        with header line.
    DATA : is_vari type disvariant.
    constants :   c_default_vari value 'X',
                  c_save_vari    value 'U',
                   c_checkfield type slis_fieldname     value 'ACTION',
                   c_f2code     type sy-ucomm           value '&ETA'.
    data : chk_box type slis_fieldname.
    selection-screen: begin of block b1 with frame title text-t01.
    parameters : p_appln type zuser_secobjects-appln.
    parameters : p_user type usr02-bname, "zuser_secobjects-appln_user,
    p_partnr type zuser_secobjects-appln_partner,
    p_ptype type zuser_secobjects-partner_type default '02',
    p_upostn type zuser_secobjects-user_position,
    p_sdate like likp-erdat default sy-datum,
    p_edate(10) default '12/31/9999',
    p_revnum type zuser_secobjects-revnum,
    p_cted type zuser_secobjects-created_by,
    p_cdate type zuser_secobjects-creation_date,
    p_ctime type zuser_secobjects-creation_time,
    p_chnby type zuser_secobjects-changed_by,
    p_cdate1 type zuser_secobjects-changed_date,
    p_ctime1 type zuser_secobjects-changed_time.
    selection-screen: end of block b1.
    form user_command using p_ucomm like sy-ucomm
    rs_selfield type slis_selfield.
    *DATA :   it_filt type slis_t_filter_alv   with header line.
      case p_ucomm.
        when 'SELECT_ALL'. " SELALL is the FCODE of ur push button
          loop at it_secobjects into wa_ita.
            wa_ita-checkbox = 'X'.
            modify it_secobjects from wa_ita.
          endloop.
      rs_selfield-refresh = 'X'.   "<-  ADD THIS
      when 'DESLCT_ALL'.
        loop at it_secobjects into wa_ita.
            wa_ita-checkbox = ' '.
            modify it_secobjects from wa_ita.
          endloop.
      rs_selfield-refresh = 'X'.   "<-  ADD THIS
        is_lout-f2code               = c_f2code.
        is_lout-box_fieldname        = c_checkfield.
        is_lout-get_selinfos         = 'X'.
        is_lout-detail_popup         = 'X'.
        is_lout-detail_initial_lines = 'X'.
    when 'HIDE_DEL'.
          rs_selfield-exit  = 'X'.
          it_filt-fieldname = 'ACTION'.
          it_filt-tabname   = '1'.
          it_filt-valuf     = 'X'.
          it_filt-intlen    = '1'.
          it_filt-inttype   = 'C'.
          it_filt-datatype  = 'CHAR'.
          it_filt-valuf_int = 'X'.
          it_filt-sign0     = 'E'.
          it_filt-optio     = 'EQ'.
          if it_filt[] is initial.
            append it_filt.
          else.
            modify it_filt index 1.
          endif.
         perform display using i_object.
    PERForm  ALV_LIST_DISPLAY.
    WHEN 'SHOW_DEL'.
          rs_selfield-exit = 'X'.
          free it_filt.
    PERForm  ALV_LIST_DISPLAY.
    when 'SAVE1'.
           select * from zuser_secobjects where
                        appln = zuser_secobjects-appln
                  and   appln_partner = zuser_secobjects-appln_partner
                  and   partner_type = zuser_secobjects-partner_type
                  and   start_date = zuser_secobjects-start_date
                  and   end_date = zuser_secobjects-end_date.
          endselect.
          if sy-subrc eq 0.
            message e000(ZV) with 'Duplicate Entry'.
          endif.
      endcase.
    endform.
    *&      Form  delete
    form delete.
      data : begin of is_secobjects occurs 0.
              include structure zuser_secobjects.
      data : checkbox type c.
      data : end of is_secobjects.
      is_secobjects-checkbox = 'X'.
      modify is_secobjects
        from it_secobjects
        transporting checkbox
      where checkbox = 'X'.
    endform.
    *&      Form  get_data
    form get_data.
      select * from zuser_secobjects
      into table it_secobjects.
    endform.                    " get_data
    *&      Form  prepare_fieldcatalog
          text
    -->  p1        text
    <--  p2        text
    form prepare_fieldcatalog.
      clear: w_field,i_field.
      refresh:i_field.
      i_field-key = 'X'.
      i_field-col_pos = 1.
      i_field-ddictxt = 'S'.
      i_field-seltext_s = '@11@'.
    i_field-checkbox = 'X'.
      i_field-input = 'X'.
      i_field-fieldname = 'HEADER'.
      i_field-outputlen = 0.
      append i_field.
      clear i_field.
      w_field-fieldname = 'APPLN'.
      w_field-tabname = 'IT_SECOBJECTS'.
      w_field-seltext_l = text-m01.
      w_field-outputlen = '10'.
      w_field-col_pos = 1.
      append w_field to i_field.
      clear w_field.
      w_field-fieldname = 'APPLN_USER'.
      w_field-tabname = 'IT_SECOBJECTS'.
      w_field-just = 'C'.
      w_field-seltext_l = text-m02.
      w_field-outputlen = '7'.
      w_field-col_pos = 2.
      append w_field to i_field.
      clear w_field.
    endform.                    " prepare_fieldcatalog
    *&      Form  ALV_LIST_DISPLAY
          text
    -->  p1        text
    <--  p2        text
    form alv_list_display.
      i_repid = sy-repid.
      is_lout-box_fieldname = 'CHECKBOX'.
      it_filt-fieldname = 'ACTION'.
      call function 'REUSE_ALV_LIST_DISPLAY'
           exporting
                i_callback_program       = i_repid
                i_callback_pf_status_set = 'PF_STATUS_SET'
                i_callback_user_command  = 'USER_COMMAND'
                is_layout                = is_lout
                it_fieldcat              = i_field[]
                it_filter                = it_filt[]
                 it_events                = it_evts[]
                i_default                = c_default_vari
                i_save                   = c_save_vari
                is_variant               = is_vari
           tables
                t_outtab                 = it_secobjects.
    endform.                    " ALV_LIST_DISPLAY
    *&      Form  display
          text
         -->P_I_OBJECT  text
    form display using    object.
      case object.
    ENDCASE.
    endform.                    " display
    thanks,
    maheedhar.t

    HI
    In my program checkbox(before the record is displayed)
    I used following lines to display checkbox .
      i_field-key = 'X'.
      i_field-col_pos = 1.
      i_field-ddictxt = 'S'.
      i_field-seltext_s = '@11@'.
      i_field-checkbox = 'X'.  <- Using this command i am getting checkbox
      i_field-input = 'X'.
    when i select this checkbox i press delete option then this entry will remove from internal table and refresh the screen and at the same time i will click on save button this ztable has to update according to that action.
    this is my requirement.
    thanks,
    maheedhar.

  • ALV grid oo delete rows and update to table

    Hi all
      How can I delete one row and update to the db table?
    thanks

    Hi,
    Refer:-
    The ALV Grid has events data_changed and data_changed_finished. The former method is
    triggered just after the change at an editable field is perceived. Here you can make checks for
    the input. And the second event is triggered after the change is committed.
    You can select the way how the control perceives data changes by using the method
    register_edit_event. You have two choices:
    1. After return key is pressed: To select this way, to the parameter i_event_id pass cl_gui_alv_grid=>mc_evt_enter.
    2. After the field is modified and the cursor is moved to another field: For this, pass cl_gui_alv_grid=>mc_evt_modifies to the same parameter.
    To make events controlling data changes be triggered, you must select either way by
    calling this method. Otherwise, these events will not be triggered.
    To control field data changes, ALV Grid uses an instance of the class
    CL_ALV_CHANGED_DATA_PROTOCOL and passes this via the event data_changed.
    Using methods of this class, you can get and modify cell values and produce error messages.
    Hope this helps you.
    Regards,
    Tarun

  • Check Box for each row in report -- all rows deleting when pressing DELETE

    Hello experts! I have set up a report with a check box for each row. When I click the DELETE button to delete the selected rows, every single one of the rows get deleted...even the ones that are not selected. I have my process point set to "On Submit - After computations and validations".
    This is my delete process (SHG is the table and SHG_ID is the primary key):
    FOR i in 1..HTMLDB_APPLICATION.G_F01.count
    LOOP
    DELETE FROM SHG
    WHERE SHG_ID = HTMLDB_APPLICATION.G_F01(i);
    END LOOP;
    Also, I've added to query in the region source this line:
    htmldb_item.checkbox(1, SHG_ID) del,
    Where does the "1" come into this? Not sure what I am doing wrong!
    Message was edited by:
    user477193
    Message was edited by:
    user477193

    The 1 (first argument to all the htmldb_item.* APIs) corresponds to the array number in htmldb_application.g_fNN. So 1 will populate array g_f01, 2 will populate g_f02 and so on.
    Your code seems fine, it should delete only the checked rows. Are you sure there is no other process on the page that might be deleting the rows? See if you can put up an example on htmldb.oracle.com

  • How to check if a Site Column is being used before deleting

    Hi All,
    Before deleting a SharePoint Online site column I would like to check to see if it is being used by any list or library. I know how to do this when the site is on
    premise using a PowerShell script.
    $web
    = Get-SPWeb
    http://”sitecollectionurl”
    $column
    = $web.Fields[“Column Display Name”]
    $column.ListsFieldUsedIn()
    but I am having problems doing it on a SharePoint Online site. I know how to connect to the site, but I can not find any information on getting the field details,
    like above.
    if ((Get-ModuleMicrosoft.Online.SharePoint.PowerShell).Count
    -eq0) {
    Import-Module
    Microsoft.Online.SharePoint.PowerShell -DisableNameChecking
    $username
    = "[email protected]"
    $url
    = "https://mySite.sharepoint.com/sites/Dev"
    Write-Host
    "Connecting to SharePoint Online, URL = $url"
    try
    Connect-SPOService
    -Url $url /
    -credential $username
    Write-Host "Successfully connected.."
    -ForegroundColor Green
    $web =
    Get-SPOSite -Identity
    https://mySite.sharepoint.com/sites/Team1
    $column
    = $web.Fields[“Column Display Name”]
    $column.ListsFieldUsedIn()
    =
    $web.Fields[“Page Content”]
    catch
    Write-Error "Failed to connect to
    $url - check the credentials and URL!"
    $_
    Write-Host
    "Disconnecting from SharePoint Online, URL =
    $url"
    Disconnect-SPOService
    Write-Host
    "Successfully disconnected.."
    -ForegroundColor Green
    Does any know what I am doing wrong, or does anyone have a script examples.
    Many thanks
    Colin

    Hi Colin,
    Unfortunately the Get-SPOSite doesn't return a fully fledged SPWeb object like you're used to in On-Prem PowerShell.
    The only way to get at particular objects like this is to use CSOM in PowerShell, however even then it doesn't return quite the same object that you see on prem. (In short, the method you want doesn't exist.. but I'll show you how to get there at least.)
    You'll need the Microsoft.SharePoint.Client.dll installed (You can download the SharePoint 2013 Client SDK, just do a search for it.)
    Once that's installed, then the following script will retrieve a single column which you can then run
    $column | gm to see the available properties.
    $siteCollectionURL = "https://<tenantname>.sharepoint.com/sites/etc"
    $Credentials = Get-Credential -UserName "[email protected]" -Message "Enter the password for $AdminUser"
    ##Then we'll establish a ClientContext for CSOM.
    $scContext = New-Object Microsoft.SharePoint.Client.ClientContext($siteCollectionURL)
    $SPOcredentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Credentials.UserName, $Credentials.Password)
    $scContext.Credentials = $SPOcredentials
    $web = $scContext.Web
    $siteCols = $web.Fields
    $column = $sitecols.GetByInternalNameOrTitle("ColumnInternalName")
    $scContext.load($web)
    $scContext.load($siteCols)
    $scContext.Load($column)
    $scContext.ExecuteQuery()
    Once you run that, $column contains as much info as you can get about the column.
    Paul.
    Please ensure that you mark a question as Answered once you receive a satisfactory response. This helps people in future when searching and helps prevent the same questions being asked multiple times.

  • Delete Selected rows in ALV display

    Hi everyone,
    I have a requirement where in my output display, I will have 3 buttons, like Select all, Deselect all and Delete selected.
    For Select all and Deselect all I am able to write code and they are working fine. But for Delete selected I am not getting
    its actual functionality in the output.
    Please help me in this and provide some part of code which can fulfill this.
    Regards.
    Moderator Message: FAQ. Explore the already given answers and search the forum and the web for more.
    Edited by: kishan P on Sep 15, 2010 12:45 PM

    Hi Dieter,
    I think the problem is smwhr else...Delete is a stanard functionality in the ALV Grid and would not fire your own code...
    @Latha: I guess the row is getting deleted but your functionality is not working..If that is right then follow this approach:
    When u delete a row it doesnot call your event handler and hence your code is not executed...You have to implement the toolbar event for this...In the toolbar event put a breakpoint and see the sy-ucomm for delete...you will then have to manually change this standard delete sy-ucomm to your custom sy-ucomm...
    The code in the handle_toolbar method would be somthing like this
    loop at mt-toolbar.
    if sy-ucomm = standarad delete code
      replace with your own custom code for exapmle 'DELETE'.
    endif.
    endloop. 
    Once you have done this then the Delete row would fire your own code for delete event...
    Hope this helps...
    Regards,
    Sitakant

  • Delete the rows if the check box is selected.

    Dear all,
    i have a block (not database block). i added a check box to the same block. now i want to delete the row against which the check box is selected.
    i wrote the following code in when-button-pressed trigger.
    IF Checkbox_Checked('CHK_DEL') THEN
         delete from fa_01_11
         where as_id = :as_id;
    END IF;
    commit;
    but when i select only one check box it delete the all rows from the table if the condition is satisfied.
    here is the data in my table
    as_id year month
    63     2006     4     0     -1183.92     1
    63     2006     5     0     -1183.92     1
    63     2006     6     0     -1183.92     1
    63     2006     7     0     -1183.92     1
    63     2006     8     0     -1183.92     1
    63     2006     9     0     -1183.92     1
    63     2006     10     0     -1183.92     1
    63     2006     11     0     -1183.92     1
    63     2006     12     0     -1183.92     1
    what's the proble?
    Regards:
    Muhammad Nadeem
    Message was edited by:
    Muhammad Nadeem

    You need to run the code for each record and you need to find something which is unique. as_id is not unique.
    untested:
    declare
      last_rec boolean := false;
      deleted boolean := false;
    begin
      first_record;
      loop
        deleted := false;
        last_rec := :system.last_record = 'TRUE';
        IF Checkbox_Checked('CHK_DEL') THEN
          delete from fa_01_11
            where as_id = :as_id
            and year = :year
            and month = :month;
          clear_record;
          deleted := true;
        END IF;
        exit when last_rec;
        if not deleted then
          next_record;
        end if;
      end loop;
      commit;
    end;

  • Does't delete final row in alv

    hi. friends..^^
    i want delete row in alv.
    I can delete first row and second row ... final - 1 row.(r_param->t_deleted_rows is not initial)
    But...I can't delete final row.(r_param->t_deleted_rows is initial)
    how to delete final row?
    vesion 2004s
    METHOD on_alv_delete .
      DATA : ls_row LIKE LINE OF r_param->t_deleted_rows.
      DATA : ls_lecture TYPE REF TO zlecture.
      FIELD-SYMBOLS : <fs_lecture> TYPE zlecture.
      LOOP AT r_param->t_deleted_rows INTO ls_row.
        ls_lecture ?= ls_row-r_value.
        ASSIGN ls_lecture->* TO <fs_lecture>.
        DELETE FROM zregistration WHERE lecture_num = <fs_lecture>-lecture_num
                                    AND devide_num  = <fs_lecture>-devide_num.
      ENDLOOP.
    ENDMETHOD.
    Edited by: Ki-Joon Seo on Aug 22, 2008 12:09 PM

    Hi
    Are you using the method <node_name>->Invalidate( ). to delete it's data ?
    If not, try using this method in you logic to delete the data.
    Regards,
    Trikanth

  • To add/delete the rows in ALV report outpout

    Hi,
    Is there any way by which we can  add/delete the rows in ALV report output.
    Thanks
    Ankul

    Hi,
    Try out this way:
    data: i_modified TYPE STANDARD TABLE OF mara,"For getting modified rows
            w_modified TYPE mara.
    CASE e_ucomm.
          WHEN 'EDIT'.
          perform save_database.
          CALL METHOD ref_GRID->REFRESH_TABLE_DISPLAY.
        ENDCASE.
    FORM SAVE_DATABASE .
    data: i_selected_rows TYPE lvc_t_row,                "Selected Rows
          w_selected_rows TYPE lvc_s_row.
    * Getting the selected rows index
        CALL METHOD ref_grid->get_selected_rows
                    IMPORTING  et_index_rows = i_selected_rows.
    * Through the index capturing the values of selected rows
        LOOP AT i_selected_rows INTO w_selected_rows.
        READ TABLE it_tab INTO wa_it_tab INDEX w_selected_rows-index.
        IF sy-subrc EQ 0.
          MOVE-CORRESPONDING wa_it_tab TO w_modified.
          APPEND w_modified TO i_modified.
        ENDIF.
      ENDLOOP.
      MODIFY mara FROM TABLE i_modified.
    Thanks,
    Krishna

  • Display Warnning message before delete row

    i have a table and i added a column and but in it a button that perform delete action
    when i press the button a row is deleted but i want to display warning message before deleting for example
    "are you sure you want to delete this row ?" Yes or No
    If press yes the row will be deleted else no action is taken
    how can i do this ?

    You can use clientListener to do this.
    <af:commandImageLink text="Submit" id="cil1" partialSubmit="true" >
    <af:clientListener type="action" method="customConfirm"/>
    </af:commandImageLink>
    <af:resource type="javascript">
    customConfirm = function(event) {
    var answer = confirm('Are you sure you want to delete this row?');
    try
    if (!answer) {
    var component = AdfPage.PAGE.findComponentByAbsoluteId("cil1");
    ..... your action here.....
    catch(e) {
    alert(e)
    </af:resource>
    But if there is a event or event listener on the commandimagelink then it will always be called. To avoid that you could remove the actionlistener and add serverlistener and call it through the javascript function. See the "Web User Interface Developer's Guide for Oracle Application
    Development Framework" for more info.

  • Warning Message - "Delete this row?" before deletion occurs.

    I'm trying to find a way to warn the user that the button they clicked will delete the entire row. If they answer "Yes" to continue the deletion occurs. If they answer "No", the row does not delete.

    Hi,
    If you declare a variable to the value of the reponse from a dialog, then you can test that response and take action:
    // Prompt the user
    var nResponse = xfa.host.messageBox("You are about to delete this row. \n\nDo you want to continue?", "Deleting a row", 2, 2)
    // Test the response: Yes = 4
    if (nResponse == 4) {
         // You deletion script
    Hope that helps,
    Niall

Maybe you are looking for