You need to sign in to do that
Don't have an account?
raju p 4
i am geting this Error>>>>>>>>>>>>>>
Error: multiselectPicklistAccountANDlead Compile Error: Constructor not defined: [multiselectPicklistAccountANDlead.wrap].<Constructor>(Boolean, Lead) at line 7 column 11
: Constructor not defined
public class multiselectPicklistAccountANDlead { public list<wrap>ares; public list<wrap> ls= new list<wrap>(); public list<wrap>getares(){ for(lead l:[select Account_del__r.Id,Account_del__r.Phone,account_del__r.Name,Id,Name,LastName,city,phone from lead limit 5]){ ls.add(new wrap(false,l)); return ls; }} public class wrap{ public Boolean sel{set;get;} public account ac{set;get;} public lead ld{set;get;} public wrap(Boolean b,account a,lead l){ sel=b; ac=a; ld=l; } } }
i am geting this Error>>>>>>>>>>>>>>
Error: multiselectPicklistAccountANDlead Compile Error: Constructor not defined: [multiselectPicklistAccountANDlead.wrap].<Constructor>(Boolean, Lead) at line 7 column 11
You need to add a constructor of youe class like bleow .
Let me know if it helps !!
Thanks
Manoj
Your wrapper constructor has three parameter but you are passing two thats the reason you are getting error .
Let me know if it helps !!
Thanks
Manoj
I think you can try with below code ,I don't it is required to pass account as a parameter .
Try with below cade and let me know incase same issue or any .
You can diaplay account detail from lead record where you have in query so i have removed the account from wrapper .you can itereate the wrapper list and display in vf .