Skip to main content

RecordsetVAR with Pagination and inline Editing


<apex:page standardController="Account" recordSetVar="Accounts" sidebar="false" >

<apex:sectionHeader title="My Accounts" subtitle="Account Management"/>
    <apex:form >
        <apex:pageBlock >
          <apex:pageMessages id="error" />
            <apex:panelGrid columns="7" id="buttons">
                <apex:commandButton reRender="error,blocktable,buttons" action="{!Save}" value="Save"/>
                <apex:commandButton reRender="error,blocktable,buttons" action="{!Cancel}" value="Cancel"/>
                <apex:inputHidden />
                <apex:commandButton reRender="error,blocktable,buttons" disabled="{!!hasprevious}" action="{!First}" value="First"/>
                <apex:commandButton reRender="error,blocktable,buttons" disabled="{!!hasprevious}" action="{!Previous}" value="Previous"/>
                <apex:commandButton reRender="error,blocktable,buttons" disabled="{!!hasnext}" action="{!Next}" value="Next"/>
                <apex:commandButton reRender="error,blocktable,buttons" disabled="{!!hasnext}" action="{!Last}" value="Last"/>
            </apex:panelGrid>
            <apex:pageBlockSection id="blocktable" >
                <apex:pageBlockTable value="{!Accounts}" var="t">
                    <apex:column headerValue="Account" value="{!t.Name}" />
                   
                    <apex:column headerValue="Priority">
                        <apex:outputField value="{!t.Priority__c}" />
                    </apex:column>
                   

                   
                    <apex:inlineEditSupport event="onClick"/>
                </apex:pageBlockTable>
            </apex:pageBlockSection>  
           
           
        </apex:pageBlock>
    </apex:form>
</apex:page>

Comments

Popular posts from this blog

Override Name in the Salesforce Cloud Console

Service Cloud Console HyperLink Opens new window outside of the console, Opens new tab inside the console. HYPERLINK("javascript:if(typeof(srcUp)=='function') {srcUp('/" & Id & "?isdtp=vw');}"+ " else {window.location.href='/" & Id & "'}", User__r.FirstName + ' ' + User__r.LastName, "_self" ) Checks if the srcUp exists and if it does, you're in the console.