Skip to main content
John Neff (Ring2Media) a posé une question dans #Data Management
Hello, 

 

I have a pageBlockTable that returns a list of records, but how can I sum the column values at the bottom?  Do I need to create an extension to my controller?  Or is there a way I can sum the values "on the fly"?  Is there a way that I can do this declaratively? 

 

Here is my table: 

 

 

<apex:pageBlockTable value="{!listOfCO}" var="co">

<apex:column value="{!co.Buyer_Name__c}"/>

<apex:column value="{!co.Total_Order__c}"/>

<apex:column value="{!co.Balance_to_Collect__c}"/>

</apex:pageBlockTable>

 

John
4 réponses
  1. 19 mars 2015, 19:11
    This Answers Community is focused on administrative questions. Programmatic questions are best suited on the developer forums at https://developer.salesforce.com where the forums and participants are geared toward programming troubleshooting and support.

     

    Also check out the Salesforce Stack Exchange: http://salesforce.stackexchange.com/

     

    Don't forget to select a Best Answer before you go and help us keep our community clean! Thanks!
0/9000