I haven't used the groovy sysntax yet, instead I use java (actually
beanshell) syntax.
In your case it should be something like:
use-when="${currentDate.after(startDate)}"
HTH
Bilgin
"N".equals(isPosted)
On Tue, Nov 9, 2010 at 9:00 AM, soumya jyoti guru <[email protected]>wrote:
> Hi all,
> I have problem of comparing two dates using use-when.I am
> working in a list form where a field is needed to do multiple task
> according to the condition set in use-when.
> Now i am trying to compare the startDate with the current date
> in another field which serves multiple purpose using use-when, but the
> problem is that i don't know the write syntax which serves the
> purpose.Could any body provide me the write syntax of doing so.I tried
> a groovy kind of thing (use-when="${groovy:currentDate>startDate}")
> which returns the value of the condition as true all the time and the
> purpose of use-when is not fulfilled.
> Eagerly waiting for the solution.
> With Regads
> Soumya
>