I like to add a javascript snippet in skuid to display message if no row selected in the table

MatrixMatrix Member
edited September 2017 in Problems


  • edited September 2017

    You can use a snippet similar to this to check if there are selected items on the table.  Make sure to update the table Unique ID and reference it in the snippet:
    // Change MainTable to the name of your table
    var table = skuid.$('#MainTable').data('object');
    var list = table.list;
    var selectedItems = list.getSelectedItems();
    if (selectedItems.length === 0) {
        // Take action here to show your error message
        alert('No Items Selected!');
    Hope this works for you!  

  • MatrixMatrix Member
    edited September 2017
    Thanks Christine
Sign In or Register to comment.