-
Notifications
You must be signed in to change notification settings - Fork 0
/
StdSetControllerWithPagination.page
33 lines (31 loc) · 1.32 KB
/
StdSetControllerWithPagination.page
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<apex:page controller="StdSetControllerWithPaginationOpps" tabStyle="Opportunity">
<!--Custom CSS -->
<style type="text/css">
.paginator {
height: 1rem;
padding: 0.5rem;
background-color:yellow;
}
</style>
<apex:form id="theForm">
<apex:pageBlock title="Opportunities with Std Set Controller Example & Pagination">
<apex:pageblockTable value="{!opportunities}" var="o">
<apex:column headerValue="Opp Name" value="{!o.Name}"/>
<apex:column headerValue="Amount" value="{!o.Amount}"/>
<apex:column headerValue="Account" value="{!o.Account.Name}"/>
<apex:column headerValue="Close Date" value="{!o.CloseDate}"/>
</apex:pageblockTable>
<apex:pageBlockSection id="pbsection2">
<apex:panelGrid columns="2">
<apex:commandLink action="{!objController.previous}" value="Previous" rendered="{!objController.hasPrevious}" />
<apex:commandLink action="{!objController.next}" value="Next" rendered="{!objController.hasNext}" />
</apex:panelGrid>
</apex:pageBlockSection>
<div class="paginator">
<span>
Showing page {!objController.pageNumber} of {!totalPages}
</span>
</div>
</apex:pageBlock>
</apex:form>
</apex:page>