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
MLamb2005MLamb2005 

Processing related list checkboxes from a custom button

I can't seem to find the answer to this anywhere.  I've got a related list with checkboxes for mutli-select, along with a custom button called Do Anything (see the image below).

 

I'm trying to understand how to recognize, in the coding of the button, which checkboxes were checked and which were not.  This seems trivial but I can't find any supporting documentation about this anywhere.

 

Thanks!

Matt

 

 

ArtabusArtabus

GETRECORDIDS is the solution

You can find an example in the online help by looking for "Getting Record IDs"

SteveBowerSteveBower

and, in the visualforce documentation:

 

http://www.salesforce.com/us/developer/docs/pages/index.htm

SteveBowerSteveBower

and, since your VF code would be passed a standard set controller, then in the Apex documentaion:

 

http://www.salesforce.com/us/developer/docs/apexcode/index.htm

 

(and you can see that the {!selected} in the VF documentation refers to the getSelected() method on the list controller you're being passed.)

 

best, Steve.

MLamb2005MLamb2005
Perfect, thanks all!
KadyInfyKadyInfy

Hi,

 

Could you get the soltution for accessing checkboxes in the related list in your controller. Please provide some inputs for the same.

 

Thanks 


MLamb2005 wrote:
Perfect, thanks all!