How can I get just the items in the user's current view/filter? Using Sharepoint 2010 Client Object Model (i.e. Javascript/ECMAScript).
A user could select a view that shows a subset of the items available in the library or list, and they could then apply a filter to one or more columns. I want to get the net result of all that filtering. I want all the items visible to the user, in all pages.
I've seen lots of sample code that depends on knowing the current view in order to constuct a query - that doesn't really help in this case. I already know how to get just selected items, e.g.
SP.ListOperation.Selection.getSelectedItems(SP.ClientContext.get_current());
However, that only selects the items in the current page.
Thanks!