Search code examples
salesforcevisualforce

Syntax error in Visual Force page


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

Solution

  • Change to

     <apex:column value="{!CASE(item.dayOfWeek__c, 1, 'Monday', 2,
        'Tuesday','Friday')}" />