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

Rendering outputPanel in Template where [cx.date_match_approved__c>2009-01-10T23:59:59.000Z]
The following code works if [cx.date_match_approved__c>2009-01-10T23:59:59.000Z] is removed.
When added, I am recieving an error that I need an additional ')'. I can't undertsand why this would be the case.
Any ideas?
-----------
<apex:outputPanel rendered="{!AND(cx.date_match_approved__c>2009-01-10T23:59:59.000Z,cx.Status__c ='Request NDA',cx.Declined_by_Buyer__c = false)}">
-----------
Thank you Jill!
There may be a bug in the compiler....but using '=' '>' and '<' all result in the same error:
Again...if I specifically take out the date related statement, this error goes away.
Any other ideas?
Thanks!
- Brian
Just curious, is it even correct to use '>' or '<' in this situation?
If you just put this on your page:
{!cx.date_match_approved__c>2009-01-10T23:59:59.000Z}
(outside of a component or attribute entirely) what does it display? Does it compile, or display true or false? It doesn't seem like the date string you have up there is something that can be operated on with '>' or '<'. If I were you I'd move the logic to my controller and use the Date object that's built into apex to do date comparisons.
Thanks for the additional suggestions!
Unfortunately, this is for a visualforce email template, so I don't have the ability to use a controller for this functionality. How else could I restrict the related list by date?
Thanks,
Brian