Thanks Raj. Can you please tell me how to write code without using Account as Standard Controller in VF page.(For example, declare the variables in apex class and display it in VF Page)
public class MyController {
private final Account account;
public MyController() {
account = [SELECT Id, Name, Industry,Phone FROM Account
WHERE Id = :ApexPages.currentPage().getParameters().get('id')];
}
public Account getAccount() {
return account;
}
public PageReference save() {
update account;
return null;
}
}
Thanks Raj.
Can you please tell me how to write code without using Account as Standard Controller in VF page.(For example, declare the variables in apex class and display it in VF Page)