You need to sign in to do that
Don't have an account?
vfexp41
Inline Edititng For Visualforce page
HI,
I am connecting to Quote custom object by using standard controller may i know how can i get inline editing
<apex:pageBlock title="Quote Information" mode="edit">
<apex:pageBlockButtons >
<apex:commandButton value="Save" action="{!save}"/>
<apex:commandButton value="Cancel" action="{!cancel}"/>
</apex:pageBlockButtons>
<apex:pageBlockSection title="Information" columns="2">
<apex:inputField value="{!Quote__c.Name}"/>
<apex:inputField value="{!Quote__c.Opportunity__c}"/>
<apex:inputField value="{!Quote__c.Contact__c}"/>
<apex:inputField value="{!Quote__c.Email__c}"/>
<apex:inputField value="{!Quote__c.Expiration_Date__c}"/>
</apex:pageBlockSection>
I am connecting to Quote custom object by using standard controller may i know how can i get inline editing
<apex:pageBlock title="Quote Information" mode="edit">
<apex:pageBlockButtons >
<apex:commandButton value="Save" action="{!save}"/>
<apex:commandButton value="Cancel" action="{!cancel}"/>
</apex:pageBlockButtons>
<apex:pageBlockSection title="Information" columns="2">
<apex:inputField value="{!Quote__c.Name}"/>
<apex:inputField value="{!Quote__c.Opportunity__c}"/>
<apex:inputField value="{!Quote__c.Contact__c}"/>
<apex:inputField value="{!Quote__c.Email__c}"/>
<apex:inputField value="{!Quote__c.Expiration_Date__c}"/>
</apex:pageBlockSection>
<apex:form >
<apex:pageBlock title="Quote Information" mode="inlineEdit">
<apex:pageBlockButtons >
<apex:commandButton value="Save" action="{!save}" id="editButton"/>
<apex:commandButton value="Cancel" action="{!cancel}" id="saveButton"/>
<apex:commandButton onclick="resetInlineEdit()" id="cancelButton" value="Cancel"/>
</apex:pageBlockButtons>
<apex:pageBlockSection title="Information" columns="2">
<apex:outputField value="{!Quote__c.Name}">
<apex:inlineEditSupport showOnEdit="saveButton, cancelButton" hideOnEdit="editButton" event="ondblclick" changedStyleClass="myBoldClass" resetFunction="resetInlineEdit"/>
</apex:outputField>
<apex:outputFieldvalue="{!Quote__c.Opportunity__c}"/>
<apex:outputFieldvalue="{!Quote__c.Contact__c}"/>
<apex:outputFieldvalue="{!Quote__c.Email__c}"/>
<apex:outputFieldvalue="{!Quote__c.Expiration_Date__c}"/>
</apex:pageBlockSection>
</apex:form>
This should solve your problem.
For more details you can refer to this doc: http://www.salesforce.com/us/developer/docs/pages/Content/pages_quick_start_inline_editing.htm