You need to sign in to do that
Don't have an account?
SriRamya Beram
I want to display object records using wrapper with inline edit and addrow (where i can enter new account and save)
public class WrapperClass {
public List<Account> AccountList{get; set;}
public List<Account> getAccounts(){
if(AccountList==null){
AccountList=new List<Account>();
for(Account acc:[select name,phone,Type from Account limit 10]){
AccountList.add(new Account(acc));
}
}
return AccountList;
}
}
public List<Account> AccountList{get; set;}
public List<Account> getAccounts(){
if(AccountList==null){
AccountList=new List<Account>();
for(Account acc:[select name,phone,Type from Account limit 10]){
AccountList.add(new Account(acc));
}
}
return AccountList;
}
}
Use page block table and apply inline edit as follow :
and you can refer the below link to show add row feature with wrapper
http://bobbuzzard.blogspot.in/2011/07/managing-list-of-new-records-in.html
Thanks
If you're satisfied with the answers provided, please don't forget to select a Best Answer.