Crooss checking Dates

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Crooss checking Dates

adev
Hi All,

In my form I have two date fields  Start Date and End Date.

Through orbeon's existing calendar control, user can choose an End date which is lesser than the start date.
How do we cross check that?
Alternatively can we use any other calendar control where the user is not allowed to choose the End date smaller than the start date.

Thanks in advance....
Reply | Threaded
Open this post in threaded view
|

Re: Crooss checking Dates

Alexander Žaťko
You can test validity of node values using constrains on bind elements  
the date controls are bound to. The fact that control is rendered as a  
calendar has nothing to do with this (unless I understand your  
question).

Otherwise the calendar widget can be customized to restrict date  
selection, but you will have to read the instructions:

http://www.dynarch.com/projects/calendar/

The JS files responsible for look and functionality of the calendar  
are in the orbeon-resources-public.jar in /ops/javascript/jscalendar/

A.

On Mar 26, 2008, at 8:17 AM, adev wrote:

>
> Hi All,
>
> In my form I have two date fields  Start Date and End Date.
>
> Through orbeon's existing calendar control, user can choose an End  
> date
> which is lesser than the start date.
> How do we cross check that?
> Alternatively can we use any other calendar control where the user  
> is not
> allowed to choose the End date smaller than the start date.
>
> Thanks in advance....
> --
> View this message in context: http://www.nabble.com/Crooss-checking-Dates-tp16296684p16296684.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws