Skip to main content
Hello, 

I have created the following pageBlockTable: 

 

<apex:variable var="totalBalance" value="{!0}"/>

<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:variable var="totalBalance" value="{!totalBalance+co.Balance_to_Collect__c}"/>

</apex:column>

and am trying to summarize a column in the table using apex:variable but I am getting this error: 

 

Error Error: You may specify either a ''value'' attribute or a body for the column component, but not both

How do I accomplish this?  Thanks!

John
3 answers
  1. Mar 25, 2015, 3:22 PM
    Thank you Sagar - is there any other option for summarizing the columns?
0/9000