You need to sign in to do that
Don't have an account?
Hoysala
please send the pagination for this vf page. as i am new am not understanding to do it... thanks
<apex:page Controller="AccController" showHeader="true" tabStyle="account" >
<apex:form >
<apex:pageMessages ></apex:pageMessages>
<apex:pageblock title="New Account" id="CreateRecordBlock" Rendered="{!ShowCreateBlock}">
<apex:pageblockSection >
<apex:inputField value="{!NewAccountRecord.Name}"/>
<apex:inputField value="{!NewAccountRecord.Phone}"/>
<apex:inputField value="{!NewAccountRecord.Email__c}"/>
</apex:pageblockSection>
<apex:pageblockButtons >
<apex:commandButton value="saveAccount" action="{!saveRecord}"/>
</apex:pageblockButtons>
</apex:pageblock>
<apex:pageBlock id="SearchBlock" Rendered="{!ShowBlock}">
<apex:inputText value="{!searchstring}" label="Input"/>
<apex:commandButton value="Search records" action="{!search}" />
<apex:commandButton value="Clear records" action="{!clear}"/>
<!-- <apex:commandButton value="Create account" action="{!create}"/>-->
<apex:pageBlock title="Search Result" id="resBlock" rendered="{!DisplaySearchResults}">
<apex:actionSupport event="onchange" reRender="Account"/>
<apex:pageblockTable value="{!acc}" var="a">
<apex:column value="{!a.name}"/>
<apex:column value="{!a.id}"/>
</apex:pageBlockTable>
</apex:pageBlock>
<apex:pageBlock >
<apex:inputField value="{!Account.Type}"/>
<apex:pageBlockTable value="{!showList}" var="a">
<apex:column headerValue="Account Name">
<apex:outputLink value="/{!a.id}">{!a.name}</apex:outputLink>
</apex:column>
<apex:column headerValue="Account Phone" value="{!a.Phone}"/>
<apex:column headerValue="Account Email" value="{!a.Email__c}"/>
<apex:CommandButton action="{!executeSearch}" value="Search"/>
<apex:selectList >
<apex:selectOptions value="{!options}"/>
</apex:selectList>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:pageBlock>
</apex:form>
</apex:page>
<apex:form >
<apex:pageMessages ></apex:pageMessages>
<apex:pageblock title="New Account" id="CreateRecordBlock" Rendered="{!ShowCreateBlock}">
<apex:pageblockSection >
<apex:inputField value="{!NewAccountRecord.Name}"/>
<apex:inputField value="{!NewAccountRecord.Phone}"/>
<apex:inputField value="{!NewAccountRecord.Email__c}"/>
</apex:pageblockSection>
<apex:pageblockButtons >
<apex:commandButton value="saveAccount" action="{!saveRecord}"/>
</apex:pageblockButtons>
</apex:pageblock>
<apex:pageBlock id="SearchBlock" Rendered="{!ShowBlock}">
<apex:inputText value="{!searchstring}" label="Input"/>
<apex:commandButton value="Search records" action="{!search}" />
<apex:commandButton value="Clear records" action="{!clear}"/>
<!-- <apex:commandButton value="Create account" action="{!create}"/>-->
<apex:pageBlock title="Search Result" id="resBlock" rendered="{!DisplaySearchResults}">
<apex:actionSupport event="onchange" reRender="Account"/>
<apex:pageblockTable value="{!acc}" var="a">
<apex:column value="{!a.name}"/>
<apex:column value="{!a.id}"/>
</apex:pageBlockTable>
</apex:pageBlock>
<apex:pageBlock >
<apex:inputField value="{!Account.Type}"/>
<apex:pageBlockTable value="{!showList}" var="a">
<apex:column headerValue="Account Name">
<apex:outputLink value="/{!a.id}">{!a.name}</apex:outputLink>
</apex:column>
<apex:column headerValue="Account Phone" value="{!a.Phone}"/>
<apex:column headerValue="Account Email" value="{!a.Email__c}"/>
<apex:CommandButton action="{!executeSearch}" value="Search"/>
<apex:selectList >
<apex:selectOptions value="{!options}"/>
</apex:selectList>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:pageBlock>
</apex:form>
</apex:page>
https://redpointcrm.com/add-pagination-to-your-visualforce-pages-using-the-soql-offset-clause
https://blog.jeffdouglas.com/2009/07/14/visualforce-page-with-pagination/
https://salesforce.stackexchange.com/questions/126938/i-wanna-achieve-pagination-on-a-visualforce-page-via-custom-controller-class
https://www.linkedin.com/pulse/visualforce-pagination-standardsetcontroller-madhura-priyadarshana/
https://wedgecommerce.com/pagination-using-setcon-visualforce-page/
https://sfdcfanboy.com/2016/06/14/visualforce-pagination-with-dynamic-search/
for this refer this link (https://hisrinu.wordpress.com/2012/01/09/pagination-using-standardsetcontroller/)