我在下面的代码中遇到了问题:
<apex:column value="{!(CASE((item.dayOfWeek__c), 1, 'Monday', 2, 'Tuesday','Friday'))}" />
此代码给出了错误:
Syntax error. Missing ')'
Error is in expression '{!(CASE((item}' in component <apex:pageBlockTable> in page addimr
答案 0 :(得分:2)
更改为
<apex:column value="{!CASE(item.dayOfWeek__c, 1, 'Monday', 2,
'Tuesday','Friday')}" />
答案 1 :(得分:0)
<apex:outputText>
标记中包含的<apex:column>
中显示值,如此解决方案中所述:
Syntax error. Missing ')' -only occurs in Apex:column
<apex:column>
<apex:outputText value="{!LEFT( r.Contact__c,1) } "></apex:outputText>
</apex:column>