Currently in my VF Page (inline editing support enabled) after clicking "Save" button, I am being taken to the default detail page layout.
I want "Save" operation to be executed upon clicking the "Save" button but make the user stay on the same page.
Can someone tell what should I do ?
My Code :
<apex:page standardcontroller="Expense__c" sidebar="false" showHeader="true" showChat="false" >
<apex:form >
<apex:inlineEditSupport />
<apex:commandButton action="{!save}" value="Save" id="theButton"/>
<apex:pageBlock title="List of Expenses">
<apex:pageBlockTable value="{!Expense__c}" var="item" >
<apex:column value="{!item.Date__c}"/>
<apex:column value="{!item.Type__c}"/>
<apex:column value="{!item.Amount__c}"/>
<apex:column value="{!item.Comments__c}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>