function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Joseph FerraroJoseph Ferraro 

Calculating values in a pageBlockTable

How do I accomplish what I'm trying to do below (notice I'm trying to get a calculated value in the third column)?

Thanks in advance.

Code:
<apex:page controller="myController" action="{!init}" showHeader="false" sidebar="false" tabStyle="Account">
 <apex:pageBlock title="Calls">         
        <apex:pageBlockTable value="{!calls}" var="c" columns="3">
            <apex:column value="{!c.Date__c}" headervalue="Call Date"/>
            <apex:column value="{!c.Percent__c}" headervalue="Percent"/>
            <apex:column value="{!c.Percent__c} * {!another binded value}" headervalue="Amount"/>
        </apex:pageBlockTable> 
    </apex:pageBlock> 
</apex:page>

 

Sam.arjSam.arj
The pageBlockTable provide the flexibility for you to accomplish this.

Check the below url, there is a good article that addresses this problem.

http://salesforcesource.blogspot.com/2008/09/how-to-cutomize-pageblocktable-columns.html

http://salesforcesource.blogspot.com/2008/09/how-to-cutomize-pageblocktable-columns.html



Message Edited by Sam.arj on 09-30-2008 12:41 PM
Joseph FerraroJoseph Ferraro
thanks!