You need to sign in to do that
Don't have an account?
Joseph 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.
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>
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