Created
April 7, 2016 18:04
-
-
Save brianmfear/40d37e091e02d179c5191e05a7ce5c46 to your computer and use it in GitHub Desktop.
Visualforce Formula Compilation Error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class OpportunityController { | |
public Opportunity[] getOpps() { | |
return [SELECT Name, Amount FROM Opportunity LIMIT 10]; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page controller="OpportunityController"> | |
<apex:dataTable value="{!opps}" var="opp"> | |
<apex:column headerValue="Opp Name" value="{!opp.Name}" /> | |
<!-- The following line will not compile: | |
<apex:column headerValue="Amount (Thousands)" value="{!opp.Amount / 1000}" /> | |
--> | |
<apex:column headerValue="Amount (Thousands)"> | |
{!opp.amount / 1000} | |
</apex:column> | |
</apex:dataTable> | |
</apex:page> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment