• cloud explorer.ax1858
  • 0 Points
  • Member since 2013

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 2

Hi Experts,

can i call standard controller's save action in my extension controller...



<apex:page standardcontroller="opportunity" extension="oppoExtesion"> <apex:form> <apex:pageblock> <apex:pageblockbutton> <apex:commandbutton value="Save" action="{!mysave}"/> </apex:pageblockbutton> <apex:inputfield value="{!opportunity.name}"/> <apex:inputfield value="{!opportunity.amount}"/> <apex:inputfield value="{!opportunity.closedate}"/> </apex:pageblock> </apex:form> </apex:page> ********Extension************* public class oppoextension { public pagereference mysave() { my validation check...... //Here i wnat to call standard controller's Save Action to perform the save operation as standard way... save(); } }


i want to experience standard salesforce validation check , field level security , profile base permission 

as well as my custom validation through apex code


so how can i standard controller's Save from my extension's save method...


For a custom object, is there a built-in action I can specify within a command button to get a "Save & New" button?
<apex:commandButton value="Save" action="{!Save}"/>