how to get edit and delete button in a custom visual force page of account.....? if click on edit it should edited and delete means it should deleted.....
Hi pandey, for deleting account use : <apex:commandButton action="{!URLFOR($Action.Account.delete,AccountObject.Id)}" value="Delete" id="deleteButton" />
and to update use : <apex:commandButton action="{!URLFOR($Action.Account.Edit,AccountObject.id)}" value="update" id="updateButton"/>
get AccountObject by get set or iterating List of Accounts as per your requirement
just add this code in your vf page pageblock table...
hope this helps you...
All Answers
for deleting account use :
<apex:commandButton action="{!URLFOR($Action.Account.delete,AccountObject.Id)}" value="Delete" id="deleteButton" />
and to update use :
<apex:commandButton action="{!URLFOR($Action.Account.Edit,AccountObject.id)}" value="update" id="updateButton"/>
get AccountObject by get set or iterating List of Accounts as per your requirement
Best Regards,
Amit Ghadage.
just add this code in your vf page pageblock table...
hope this helps you...