You need to sign in to do that
Don't have an account?

Formula in <apex:column> Value= gets error "Missing ')'" when I try to save it
The following works:
<apex:column headerValue="Opportunity Id">{!CASESAFEID(op.Id)}</apex:column>
But if I replace the above with the one-liner below, where I specify the value in the value= field of the apex:column, it fails to save with the error:
Syntax error: Missing ')'
<apex:column headerValue="Opportunity Id" value="{!CASESAFEID(op.Id)}" />
That seems wierd, there is no missing or mismatched paren there. I cannot seem to modify the line to get it to save. I can also reproduce the error with other formula expressions, it is not specific to CASESAFEID. Is this a bug?
I was able to recreate the error. Looks like this has been a known issue for a little while. See this post: http://forums.sforce.com/t5/Visualforce-Development/VF-Syntax-problem-bug/td-p/258343#M33582
Regards, jh
All Answers
Hi,
Replace ‘()’ with ‘[]’.
Try the below code snippet as reference:
<apex:column headerValue="Opportunity Id" value="{!CASESAFEID[op.Id]}" />
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
Sorry, this did not fix the problem.
If I make that change, it says: Error: Unknown property 'YourController.CASESAFEID'
I was able to recreate the error. Looks like this has been a known issue for a little while. See this post: http://forums.sforce.com/t5/Visualforce-Development/VF-Syntax-problem-bug/td-p/258343#M33582
Regards, jh
Excellent, I'll just use the workaround. Thanks for finding that original bug posting, for some reason I could not find it myself.