Mass Inline Edit Visualforce Page Example
<apex:page standardController="Order" recordSetVar="records">
<apex:form >
<apex:pageBlock title="Order Summary" mode="inlineEdit">
<apex:pageBlockTable value="{!records}" var="recd">
<apex:column headerValue="Name" >
<apex:outputField value="{!recd.Name__c}" />
</apex:column>
<apex:column headerValue="Owner" >
<apex:outputField value="{!recd.def__c}" />
</apex:column>
<apex:column headerValue="Status " >
<apex:outputField value="{!recd.pqr__c}" />
</apex:column>
<apex:column headerValue="Other" >
<apex:outputField value="{!recd.xyz__c}" />
</apex:column>
<apex:inlineEditSupport showOnEdit="saveButton, cancelButton"
hideOnEdit="editButton" event="ondblclick"
changedStyleClass="myClass" resetFunction="resetInlineEdit"/>
</apex:pageBlockTable>
<apex:pageBlockButtons>
<apex:commandButton action="{!quicksave}" id="saveButton" value="Save" rendered="true"/>
<apex:commandButton onclick="resetInlineEdit()" id="cancelButton" value="Cancel" rendered="true"/>
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>
Comments
Post a Comment