Keyboard Delete button to delete row in array

Is there a way to use the delete key on the keyboard to delete a row from an array?

Hi Liz,
If you are Using LV 6.1, this is easily done. There are three steps to the Process.
1. Trap the Event when the Delete Key is Pressed. With LV 6.1 Event Structure can do this and give you which Key is Pressed Using VKey Node.
2. There must be Some way that you can identify which row must be deleted. It could be a Simple Slider or Program output.
3. The Physical deletion from the Array. With 6.1 you get a function "Delete from Array" and you specify either Column no or Row No to Delete.
I have Attached a Sample VI for you to see in LV 6.1
If you Do not Have LV 6.1 then Action 1 to Trap Delete Key Stroke is not In built LV function. You may Want to get "Danny Lauers ToolBOx" I think it is available at www.openG.org
There is a Functi
on in there"Get Keys" which will tell which Key is Pressed.
Then you will have to Build Funtionality to Manipulate Array to Delete the row.
Good Luck!!
Mache
Good Luck!
Mache
Attachments:
Delete_Row_from_Arry.vi ‏30 KB

Similar Messages

  • Delete rows from array within limits

    Hello,
    I am attempting to delete the rows that are a multiples of the fundamental entry.  However, the multiples of the fundamental are not always an exact multiple, they can differ by up to 3M.  So, from the origial array,:
    130.4M -65.386
    149.4M 9.6346
    172.2M -64.981
    301.4M -17.273
    426.8M -68.169
    449.6M -820.72m
    472.4M -66.132...
    with the multiples of 149.4M deleted, the output array should be:
    130.4M -65.386
    172.2M-64.981
    426.8M -98.169
    472.4M -66.132...
    Any help will be greatly appreciated!
    Thanks,
    hiNi.
    Attachments:
    delete rows 2.vi ‏13 KB

    This?
    "In theory, theory and practice are the same. In practice, they’re not."
    Attachments:
    Solved.vi ‏11 KB

  • Delete rows from array

    Hello,
    I am attempting to delete the rows that contain a multiple of the x-data from the original array and have the output array show the original array minus the delete harmonics array.
    Original array:
    100 3
    200 18
    300 13
    400 8
    500 0
    600 0
    700 0
    delete rows that contain multiples of 300.  Output array will be
    100 3
    200 18
    400 8
    500 0
    700 0
    Any help will be sincerely appreciated.
    Thanks,
    hiNi.
    Solved!
    Go to Solution.
    Attachments:
    delete rows.vi ‏14 KB

    Hello,
    I wanted to further expand on this program as follows:
    I wanted to delete the rows that are a multiples of the fundamental entry.  However, the multiples of the fundamental are not always an exact multiple, they can differ by up to 3M.  So, from the origial array,:
    130.4M -65.386
    149.4M 9.6346
    172.2M -64.981
    301.4M -17.273
    426.8M -68.169
    449.6M -820.72m
    472.4M -66.132...
    with the multiples of 149.4M deleted, the output array should be:
    130.4M -65.386
    172.2M-64.981
    426.8M -98.169
    472.4M -66.132...
    Any help will be greatly appreciated!
    Thanks,
    hiNi.
    Attachments:
    delete rows 2.vi ‏13 KB

  • BPM Object Presentation - array items - (add / delete rows dynamically)

    Hi,
    We have a BPM Object presentation which uses a 'group' inner object to display ROWS of data. The presentation has an 'array0' created by default to handle the 'group' of rows. It also has the '+' and '-' buttons by default.
    There is a field at the upper level which shows the 'sum' of values in individual rows. It needs to 'REFRESH' when an add (+) or deletetion (-) or rows happen.
    But we see that all the controls (text boxes etc which are wired to the 'inner' bpm object of the group and the +/- buttons are one unit 'array0'. And the only method if at all, is an 'Event Listner' which is not showing any methods related to BPM Object.
    Can anyone help us with a clue as to how to handle the '+' and '-' events or wire the 'array/group' events to code - any clue with 'events'?
    This is a little urgent as it is an issue and we need to fix the same. Appreciate any quick responses/clues.
    Thanks in advance,
    -user8702013.

    The SUM field needs refresh() method to be called to reflect the new value whenever we are adding/deleting rows.
    To call this method for to show the reflection we have to declare a method on BPM object level which receives a argument of type ‘Fuego.Util.GroupEvent’, then in this method you can have your logic(here refresh() method is required to show new value on deletion/addition, hence this method is being called). This method can then be wired (it shows up) to the 'Event Listener' of the group/array.
    The newly created method will be called whenever a new row is added/deleted (Event will be fired hence method call).

  • What is the keyboard shortcut for "delete row" in a table?

    What is the keyboard shortcut for "delete row" in a table within a pages document?

    Click on the row number to select the entire row. Right-click, and select Delete Row from the menu. There is no keyboard shortcut.

  • Deleting rows in a table with a button

    Good Day All;
    I seemed to have run into a snag with trying to add a delete button in a table that will delete a row. Let me expain.
    The form has 1 table that has 7 cells made up of text fields and drop downs. This table is in its own subform.
    There is a button to add rows as the user requires. The code I am using to add rows: psl_list_subform.instanceManager.addInstance(1);
    I have been asked to add a delete button so a user can delete rows. I have added this to the end of the table. SO each time a row gets repeated, there is a delete button. The code I am “trying” to use is;
    Table4.Row1.instanceManager.removeInstance(this.parent.index);
    When I click on the button to delete, nothing happens. I brought up the JavaScript debugger, there are no errors.
    Any ideas what I missed.
    Thanks All
    Chomp

    Hi,
    from my understanding of your form, you adding new instances of the subform "psl_list_subform" which contains a single table row.
    The hierarchy that will look like "psl_list_subform.Table4.Row1.RemoveButton".
    To remove an instance of the subform, from a button within the table row the script needs to refer to the 3rd parent of the remove button.
    this.parent.parent.parent.instanceManager.removeInstance(this.parent.parent.parent.index);
    Explaination: this = RemoveButton, 1st parent = Row1, 2nd parent = Table4, 3rd parent = psl_list_subform

  • Editable ALV- Disable Add, delete row buttons

    Hi,
    I have an editable ALV using OO Grid. Some columns are editable and some are not using field catalog. I want to disable the 'add new row' and 'delete row' buttons. How to go about it ?
    Regards,
    Vin

    You can simply add them to the "Exclude" table and pass them to the SET_TABLE_FOR_FIRST_DISPLAY method.
       data: iexclude type ui_functions,
       data: xexclude type ui_func.
        define macro_exclude.
         xexclude = &1.
          append xexclude to iexclude.
        end-of-definition.
        macro_exclude cl_gui_alv_grid=>mc_fc_loc_copy_row.
        macro_exclude cl_gui_alv_grid=>mc_fc_loc_delete_row.
        macro_exclude cl_gui_alv_grid=>mc_fc_loc_append_row.
        macro_exclude cl_gui_alv_grid=>mc_fc_loc_insert_row.
        macro_exclude cl_gui_alv_grid=>mc_fc_loc_move_row.
        macro_exclude cl_gui_alv_grid=>mc_fc_loc_copy.
        macro_exclude cl_gui_alv_grid=>mc_fc_loc_cut.
        macro_exclude cl_gui_alv_grid=>mc_fc_loc_paste.
        macro_exclude cl_gui_alv_grid=>mc_fc_loc_paste_new_row.
        macro_exclude cl_gui_alv_grid=>mc_fc_loc_undo.
        call method alv_grid->set_table_for_first_display(
            exporting
                 it_toolbar_excluding  = iexclude     "<--- Right HEre
                 is_layout             = xlayout
            changing
                 it_outtab       =  izcmptrans[]
                 it_fieldcatalog = ifc[] ).
    Regards,
    Rich Heilman

  • Delete row by button in popin

    hi all,
    i am using table popin toggle cell, by this i am opening rows.
    i have a delete button in popin, and i want to delete row by this popin button, how can i identify in which row , in the popin the button is pressed. so that i can delete  that row only.
    i have tried by which row is open, delete that, but user can open more than one popin cell, and that button is deleting all open row.
    please give your valuable suggestion 
    Regards
    Bala
    Edited by: bala on Sep 25, 2008 9:19 AM

    yes you can delete the row by setting lead selection in the event of delete button,
    use this coding,
    data lo_nd_nodename type ref to if_wd_context_node.
    data lo_el_nodename type ref to if_wd_context_element.
    data ls_nodename type wd_this->element_nodename.
    navigate from <CONTEXT> to <NODENAME> via lead selection
    lo_nd_nodename = wd_context->get_child_node( name = wd_this->wdctx_nodename ).
    get element via lead selection
    lo_el_nodename = lo_nd_nodename->get_element( ).
    lo_el_nodename = wdevent->get_context_element( name = 'CONTEXT_ELEMENT' ).
    @TODO handle not set lead selection
    if lo_el_nodename is not initial.
    get all declared attributes
    lo_el_nodename->get_static_attributes(
    importing
    static_attributes = ls_nodename ).
    endif.
    if lo_nd_nodename is not initial.
    call method lo_nd_nodename->set_lead_selection
    exporting
    element = lo_el_nodename.
    endif.
    Yogesh N

  • Print,Check,Apppend Row,Delete Row,Insert Row buttons actions code

    HI,
    I have a ALV table in that buttons Print,Check,Apppend Row,Delete Row,Insert Row buttons are there.But client requirement is they don't want those buttons in ALV they want in above the ALV table.
    Can you please let me know how to hide those buttons in ALV.and give me code Print,Check,Apppend Row,Delete Row,Insert Row action code..HI,

    I hope you have instantiated your ALV. Check the below code
    * Instantiate the used component " You can use code wizard to get this code.
      DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
      lo_cmp_usage =   wd_this->wd_cpuse_usg_alv( ). "usg_alv should be your usage name
      IF lo_cmp_usage->has_active_component( ) IS INITIAL.
        lo_cmp_usage->create_component( ).
      ENDIF.
    * Get Model
      DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .
      lo_interfacecontroller =   wd_this->wd_cpifc_usg_alv( ).
      DATA lo_value TYPE REF TO cl_salv_wd_config_table.
      lo_value = lo_interfacecontroller->get_model(
    * Hide Standard buttons on ALV toolbar
      DATA: l_std_func TYPE REF TO if_salv_wd_std_functions.
      l_std_func ?= lo_value                                 .
      l_std_func->set_edit_append_row_allowed( abap_false )  .
      l_std_func->set_sort_headerclick_allowed( abap_true ) .
      l_std_func->set_edit_append_row_allowed( abap_false )  .
      l_std_func->set_edit_insert_row_allowed( abap_false )  .
      l_std_func->set_edit_delete_row_allowed( abap_false )  .
      l_std_func->set_view_list_allowed( abap_false )        .
      l_std_func->set_sort_headerclick_allowed( abap_false ) .
      l_std_func->set_edit_check_available( abap_false )     .
      l_std_func->set_pdf_allowed( abap_false )              .
      l_std_func->set_export_allowed( abap_true )            .
    Radhika.

  • Button column delete row

    Hi guys i have a problem i have a code to delete row from datagridview following:
     If DataGridViewX1.SelectedRowsRows.Count > 0 Then
                DataGridViewX1.Rows.Remove(DataGridViewX1.SelectedRows(0))
            Else
                MessageBox.Show("DUMB SELECT A ROW TO DELETE")
            End I f
    but when i am using this code on button of button column its not working bcz this code wants a row to be selected. i want to delete row using a button in button column.
     Plz Help
    Thank You.

    Hi guys i have a problem i have a code to delete row from datagridview following:
     If DataGridViewX1.SelectedRowsRows.Count > 0 Then
                DataGridViewX1.Rows.Remove(DataGridViewX1.SelectedRows(0))
            Else
                MessageBox.Show("DUMB SELECT A ROW TO DELETE")
            End I f
    but when i am using this code on button of button column its not working bcz this code wants a row to be selected. i want to delete row using a button in button column.
     Plz Help
    Thank You.
    Hello,
    You could get that task done inside its cellcontent_click event, because we could get the rowindex of that row which we clicked. You could refer to the sample below.
    Private Sub DataGridView1_CellContentClick(sender As Object, e As DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick
    Dim senderGrid = DirectCast(sender, DataGridView)
    If TypeOf senderGrid.Columns(e.ColumnIndex) Is DataGridViewButtonColumn AndAlso
    (e.RowIndex >= 0 And e.RowIndex < senderGrid.RowCount - 1) Then
    If MsgBox("Would you like to remove this row?", MsgBoxStyle.YesNo, "Delete Row") = MsgBoxResult.Yes Then
    senderGrid.Rows().RemoveAt(e.RowIndex)
    End If
    End If
    End Sub
    Regards.
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to add a delete button on each row of the table.

    i create a table with a list , and i add a new column.
    and then i drag a delete botton from the list operation to the column.
    when i create several rows. and click any delete botton of the new created rows. all the new created rows will be deleted.
    rows that already exist when the page render are not influenced.and when i click these rows' delete botton,
    just the current row will be delete.
    that's because when i click the new created rows' delete botton,all the new created botton in this column will automatically be clicked.
    i think adf consider all the delete botton are the same one.
    is it the table bug? please tell me how to resolve this problem. thanks.
    Edited by: 917391 on 2012-3-21 下午6:53
    Edited by: 917391 on 2012-3-21 下午10:07
    Edited by: 917391 on 2012-3-21 下午10:16

    i don't use the adf BC, so it is not a VO. it's just a service method that return a list.
    and i create the datacontrol and drag it to the page.
    Edited by: 917391 on 2012-3-21 下午10:26

  • Keyboard shortcut to delete row or column

    OK, I like how you can add rows by a quick couple of key strokes, is there any to delete a row simply using keystrokes?

    There is no such built-in shortcut but, as it was written a lot of times, you may add your own ones thru:
    The menu item is named "Delete Row"
    You may also define one for
    "Delete Rows"
    "Delete Column"
    "Delete Columns"
    Yvan KOENIG (from FRANCE mercredi 25 février 2009 14:52:26)

  • On select delete rows

    Hi , I have a custom page with Add Row button. On click of button it adds new rows.
    Now new requirement has come ,to add new button delete rows. For this a check box should be added against each row and on select of check box and delete the row should be deleted.
    How to capture the selected row? The above said is all new requirement.How to proceed on this ? pl help me on this requirement.
    Thanks,
    Ragahv

    Hi,
    Now get all the rows in an row[] array and for each check whether that transient attribute is 'Y' or not.
    If it is selected, then remove that row. Below is sample code for the same:
    deleteMethod() {
    XxVOImplvo = getXxVO1();
    Row row[] = vo.getAllRowsInRange();
    For (int i =0; i<row.length;i++) {
    XxVORowImplrowi = (XxVORowImpl) row;
    if ("Y".rowi.getTransAtt().toString()) {
    rowi.remove();
    getOADBTransaction.commit();
    return;
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to add or delete rows in tablecontrol?

    Hi,
    I am using a tablecontrol to enter data records.
    I want to use 2 buttons, one to insert a row into a tablecontrol and another to delete a selected row of a tablecontrol.
    How do I insert or delete rows of a tablecontrol?
    Thanks.

    Hi Kumar,
    Please look at the below sections......
    ADDING BLANK LINES
    To add blank lines to table control we do not need to change any of the fields of the structure CXTAB_CONTROL simply adding blank lines to the internal table will do.
    INSERT INITIAL LINE INTO itab.
    DELETING SELECTED ROWS
    Deletion of selected rows is simple. To delete selected rows first we will determine the rows which have been selected through selection column .
    FOR SINGLE ROW SELECTION
    IF mark EQ 'X' .             "mark is the name of selection column field
    DELETE itab FROM workarea . 
    ENDIF.
    FOR MULTIPLE ROW SELECTION
    *To deetermine the rows selected we will use the selection column field to loop
    *through the internal table.
    LOOP AT itab WHERE mark EQ 'X'.  "mark is the name of selection column field
    DELETE itab                                    " and is part of the internal table .
    ENDLOOP.
    Thanks,
    Ravi Kanth

  • Right way to delete row before insert

    I create a new row with method of ViewObject.
    Row row = viewObject.createRow();Then I want to delete this row. I found there are 4 methods. Which is the right answer?
    //1.
    row.remove();
    //2.
    row.refresh(Row.REFRESH_REMOVE_NEW_ROWS);
    //3.
    row.refresh(Row.REFRESH_FORGET_NEW_ROWS);
    //4.
    row.removeFromCollection();Thanks,

    Timo, we're having a problem when deleting as you describe, maybe you can offer some advice?
    We have a button to delete a row from an editable table, this is set to immediate=true (obviously the user should be able to skip validation when doing a delete). After deleting, if the user then clicks another button to add a new row, the values from the deleted row show in the new row :(
    If we set immediate=false this seems to fix the problem, but we then get the undesirable side effect that the user has to make sure all the values in the row are correct before it can be deleted (because the validation is firing). The user experience becomes a bit strange.

Maybe you are looking for

  • How do I change Adobe Flash Settings to never allow pop-ups?

    How do i change AFP to never allow pop-ups, especially and particularly pop-ups asking to use storage space on my computer?

  • Can't see the home page for Orgchart

    Hi, I have installed Orgchart 3.0 on Netweaver CE 7.1 SP11 (Oracle) and the ECC 6 EhP4 running on Solaris. I have installed the Add ons and the transport packages also and the orgchart sca in the CE. The netweaver administrator page is working fine a

  • Migration from SQLBase to Oracle8i

    Hello, is there any special utility for direct migration from SQLBase to Oracle8i, or I have to unload the entire SQLBase database into text files and then load them into an Oracle database? Thanks for your help, Nina.

  • Cant imessage on my ipad

    Why i cant imessage using my ipad

  • Done with Verizon - BTW, TY Smith6612!

    Well, I gave Verizon another two weeks while I called up Comcast to get another line setup and as to be expected, next to nothing was done on Verizon's end to fix the issue. I noticed that my speed went down on speedtest.net which is likely why I hav