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
Jan StaufenbergJan Staufenberg 

Visualforce Override of Accept-Button

Dear all,

I am trying to override the "Accept"-Button on a Custom-Object. Bizarrely only the pages that are using StandardControllers appear when trying to select a custom Visualforce Page and NOT the ones utilizing a StandardSetController. I want to know the Ids the User selected, which is not possible with a StandardController related page, because "ids"-Parameter of the form passed to the custom page (retrieved by ApexPages.CurrentPage().getParameters() only contains the Id of the first selected record.
If I build a page using StandardController, assign it as the override page for the "Accept"-Button, then change the page afterwards including the recordSetVar-attribute to the page, I am able to retrieve the records, but I bet I will not be able to deploy the override this way.

I assume this is a bug, as the StandardSetController makes a lot more sense...
Please help!

Thanks & regards,
Jan