You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Reinhard Poetz <re...@apache.org> on 2004/11/22 11:46:39 UTC

Re: [CForms] aggregatefield on date for separate input of date an d ti me - please help

H.vanderLinden@MI.unimaas.nl wrote:
> Thanks for replying.
> 
> 
>>According to the xReporter docs 
>>(http://new.cocoondev.org/xreporter/docs/core/> 91 
>>) following expression could work:
>>
>>SetTime(date, number, number, number)
> 
> 
> Yes I noticed after sending this mail.
> 
> 
>>>2: how do I prevent the time widget from styled as a "date" field 
>>>(i.e. with the calendar script and button"?
>>
>>  <ft:widget id="birthdate">
>>    <fi:styling type="text"/>
>>  </ft:widget>
>>
>>worked for me. (You could use any value for style except "date").
>>
>>I wonder why you use the datatype "date" for your time 
>>widgets at all? Wouldn't it be easier to combine a widget of type date
> 
> with two 
> 
>>widgets with the datatype integer (containing hour and minute)?
> 
> 
> How about validation of the time? 

What's your validation szenario?

> Since the date is one widget, I'd like the
> time widget also to be one. I could of course make the time widget also an
> aggregate (do nested aggregates work?) 

good question: Does anybody know?


-- 
Reinhard