function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
monica selesmonica seles 

i am geting error at vf page

in visualforce [age i am not geeting the save button. please some one help me.
 
<apex:page standardController="student__c" >
    <apex:form>
        <apex:pageBlock title="{student__c.Name}">
           
            <apex:commandButton value="SAVE" action="{!SssAVE}"/> 
            
            <apex:pageBlocksection>
                <apex:inlineEditSupport>
                    <apex:outputField value="{!student__c.Name__c}"/>
                     <apex:outputField value="{!student__c.Date_of_Joining__c}"/>
                     <apex:outputField value="{!student__c.Mobile__c}"/>
                     <apex:outputField value="{!student__c.City__c}"/>
                </apex:inlineEditSupport>
           </apex:pageBlocksection>
           
        </apex:pageBlock>
    </apex:form>
</apex:page>

 
srinu vassrinu vas
Hi monica,

<apex:commandButton value="SAVE" action="{!SssAVE}"/>\
instead of this place the below code 

<apex:commandButton value="SAVE" action="{!save}"/>
 
Alexander TsitsuraAlexander Tsitsura
Hi Monica,

You can not impelmeted SssAVE method, you need use standart method 'Save' from standart controller or write your extensions.
Try this code:
<apex:page standardController="student__c" >
    <apex:form>
        <apex:pageBlock title="{student__c.Name}">
           
            <apex:commandButton value="SAVE" action="{!save}"/> 
            
            <apex:pageBlocksection>
                <apex:inlineEditSupport>
                    <apex:outputField value="{!student__c.Name__c}"/>
                     <apex:outputField value="{!student__c.Date_of_Joining__c}"/>
                     <apex:outputField value="{!student__c.Mobile__c}"/>
                     <apex:outputField value="{!student__c.City__c}"/>
                </apex:inlineEditSupport>
           </apex:pageBlocksection>
           
        </apex:pageBlock>
    </apex:form>
</apex:page>



Thanks,
Alex
salesforce mesalesforce me
hi copy&paste it...
<apex:page standardController="student__c" >
    <apex:form>
        <apex:pageBlock title="{student__c.Name}">
           
            <apex:commandButton value="SAVE" action="{!SAVE}"/> 
            
            <apex:pageBlocksection>
                <apex:inlineEditSupport>
                    <apex:outputField value="{!student__c.Name__c}"/>
                     <apex:outputField value="{!student__c.Date_of_Joining__c}"/>
                     <apex:outputField value="{!student__c.Mobile__c}"/>
                     <apex:outputField value="{!student__c.City__c}"/>
                </apex:inlineEditSupport>
           </apex:pageBlocksection>
           
        </apex:pageBlock>
    </apex:form>
</apex:page>

 
Alexander TsitsuraAlexander Tsitsura
And i think that you wand use apex:inputField insted of apex:outputField
 
<apex:page standardController="student__c" >
    <apex:form>
        <apex:pageBlock title="{!student__c.Name}">
           
            <apex:commandButton value="SAVE" action="{!save}"/> 
            
            <apex:pageBlocksection>
                <apex:inlineEditSupport>
                    <apex:inputField value="{!student__c.Name__c}"/>
                     <apex:inputField value="{!student__c.Date_of_Joining__c}"/>
                     <apex:inputField value="{!student__c.Mobile__c}"/>
                     <apex:inputField value="{!student__c.City__c}"/>
                </apex:inlineEditSupport>
           </apex:pageBlocksection>
           
        </apex:pageBlock>
    </apex:form>
</apex:page>

As a common practice, if your question is answered, please choose 1 best answer. 
But you can give every answer a thumb up if that answer is helpful to you.

Thanks,
Alex
Ajay K DubediAjay K Dubedi
Hii monica,

Since you are using an standard controller so it uses an standard functionality of salesforce. So for that purpose you have to change your action function name to {!save} which is functionality of salesforce.
If you were using extension than in that case you can use any method name in your controller and define its functinality in that particular method.

Thanks.