+ Start a Discussion
SFDC_DevloperSFDC_Devloper 

How do I show an edit button for a custom object in a visual force page and allow the user to edit the custom object?

Hi All,

       How do I show an edit button for a custom object in a visual force page and allow the user to edit the custom object?Please proviode me code?


Thanks
HitHit
Hi,

You can use standard controller of Custom object and use Command Button in VF page as follows:

<apex:commandButton action="{!save}" value="Save" id="theButton"/>