+ Start a Discussion
Amber090Amber090 

VF Page Not Saving Edits

We have a "edit" and "view" VF page for Cases.  They work fantastic for creating new records and viewing them, but once we select the "Edit" button, change values, and select "Save", it doesn't save our changes.

Any initial thoughts on what we need to change to the VF pages?
Also, the user we're testing with has full access to Cases.
Thanks!
Best Answer chosen by Amber090
Pramod_SFDCPramod_SFDC
Hi,

My opinion is, if you are using a standard action like Edit, Save, kinldy utilse the Standard Controller Class functionality.For which you dont have to writ a addiditional code. Salesforce at the backend provided code for these functionality. Below link might provide you with more information.

>>https://www.salesforce.com/us/developer/docs/pages/Content/apex_pages_standardcontroller.htm

Regards
Pramod

All Answers

Pramod_SFDCPramod_SFDC
Hi,

My opinion is, if you are using a standard action like Edit, Save, kinldy utilse the Standard Controller Class functionality.For which you dont have to writ a addiditional code. Salesforce at the backend provided code for these functionality. Below link might provide you with more information.

>>https://www.salesforce.com/us/developer/docs/pages/Content/apex_pages_standardcontroller.htm

Regards
Pramod
This was selected as the best answer
Amber090Amber090
Thanks so much!  I found the issue in my command.  I was using:
<apex:commandButton value="Save" action="{!savepage}"/>

When I removed "page", it resolved the issue completely!