Posts

Showing posts from January 7, 2017

Pagination On Visual force Page Using StandardSetController

Image
Requirement:  Need to create a visual force page and add processed the records on selection of check boxes Solution: Class Name: public class ContactController {     Public class WrapperContactCls     {         public Contact con{get;set;}         public boolean isSelected{get;set;}         public WrapperContactCls(Contact c,boolean isSelected)         {             this.con = c;             this.isSelected = isSelected;         }     }       public String size { get; set; }     //This is Our collection of the class/wrapper objects WrapperContactCls     Public List<WrapperContactCls> wrapperlist;     Public Integer noOfRecords{get; set;}     // Create a new Map to verify whether the contact is already added in the Map     Map <id,Contact> MapOfSelectedcontactIDToContactObj = new Map <id,Contact>();     public boolean display{get;set;}     public list<Contact> selectedList {get;set;}     // instantiate the StandardS