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
Sumanth Kumar 17Sumanth Kumar 17 

Wrapper Class for custom object

Hi,
i need to write wrapper class for custom object for delete create options
can anyone help me with this..
Thanks..
Sumanth kumar
Amit Chaudhary 8Amit Chaudhary 8
Please check below post for Wrapper classes
1) http://amitsalesforce.blogspot.com/2016/03/wrapper-class-in-salesforce-select-all.html

For Custom object you simply need to add like below

Public mainClass
{
    public class AccountWrapper 
    {
        public CustomObject__c acc {get; set;}
        public Boolean selected {get; set;}
        public AccountWrapper(CustomObject__c  a) 
        {
            acc = a;
            selected = false;
        }
    }
}

Please start your code with above sample code and link. We will help you once you will stuck ( in this way you will learn alot)