function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sslatersslater 

Accessing apex:listViews selected items in controller

I don't know if this can be done, but let's see if anyone knows how. I need to have at least 2 lists of items on a page. The user can select a bunch (1000s) of records from list1, and select a handful from list2. I will then have a button that says "GO" that does some custom apex magic with the data in these two lists.

 

I know I can manually do this with datatables, soql, etc... But can I leverage the nice apex:listViews object so that I have two of them on a custom page. (this I can do). But then I need my commandButton to "do the magic" with the items selected. I can't see how my apex code can access the items in the lists.

 

In JSF, this would be a binding="" type of deal where I bind the jsf element to a List object in the backing bean.

 

Is there any way for my apex controller to discover which items were selected?

 

Thanks!