Reputation: 1724
I have a problem in the below code:
<apex:column value="{!(CASE((item.dayOfWeek__c), 1, 'Monday', 2, 'Tuesday','Friday'))}" />
This code is giving me the error:
Syntax error. Missing ')'
Error is in expression '{!(CASE((item}' in component <apex:pageBlockTable> in page addimr
Upvotes: 1
Views: 1702
Reputation: 1085
I stumbled into this same dumb error myself. The solution is to display the value in an <apex:outputText>
contained within the <apex:column>
tag, as outlined in this solution:
Syntax error. Missing ')' -only occurs in Apex:column
<apex:column>
<apex:outputText value="{!LEFT( r.Contact__c,1) } "></apex:outputText>
</apex:column>
Upvotes: 1
Reputation: 1189
Change to
<apex:column value="{!CASE(item.dayOfWeek__c, 1, 'Monday', 2,
'Tuesday','Friday')}" />
Upvotes: 2