List argument not passed into button on popup

  • 1
  • Problem
  • Updated 2 years ago
  • Solved
Before upgrading to Rockaway, we were able to call list.getSelectedItems() from a button in a page title that is in a popup originating from a mass action. This was very valuable and allowed us to have mass actions that took some other input, and then fired a snippet looping through the selected rows.

Now the list option on arguments is gone when accessing from a popup derived from a mass action. Is there another way to get the originally selected rows?
Photo of Craig Rosenbaum

Craig Rosenbaum

  • 4,776 Points 4k badge 2x thumb

Posted 2 years ago

  • 1
Photo of JD Bell

JD Bell, Senior Product Engineer

  • 2,996 Points 2k badge 2x thumb
Official Response
Unfortunately, the list property was not part of our supported API and was "leaked" accidentally. Because this leak caused other issues, we "fixed" it in the Rockaway release.

We recognize that even undocumented features are used by our customers, and we should have been more explicit in our documentation that this was going away.

To answer your question, though, it is possible to get the selected rows from a table component. Using the table component's unique Id, you can use Skuid's API to get the component and it's list. From that point, everything should behave as before:

    // Find the Javascript component
var table = skuid.$C('TableUniqueId'),
    // Get the associated List object
    list = table.element.data('object').list;

See Getting the selected records on a table without using mass/row action and instead using a button
(Edited)