Hi Orbeon,
Do you have any idea when input date formats other then m/d/y will be supported in Orbeon? properties.xml oxf.xforms.format.input.date = [M]/[D]/[Y] Is this something that can easily be changed or overcome (i.e. by using a different calendar or some clever js hack)? And while on the subject, why chose the American date format as a default? Errg. I assume your using a date library which makes this simple. Chris. -- 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 |
Administrator
|
Chris,
We support [M]/[D]/[Y] at the moment, right? I.e. the US format. Do you mean [D]/[M]/[Y]? As for what default to pick: difficult question, right? ;-) -Erik On Oct 13, 2008, at 2:42 AM, Chris Bailey wrote: > Hi Orbeon, > > Do you have any idea when input date formats other then m/d/y will > be supported in Orbeon? > > properties.xml > oxf.xforms.format.input.date = [M]/[D]/[Y] > > Is this something that can easily be changed or overcome (i.e. by > using a different calendar or some clever js hack)? > > And while on the subject, why chose the American date format as a > default? Errg. I assume your using a date library which makes this > simple. > > Chris. Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.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 |
> We support [M]/[D]/[Y] at the moment, right? I.e. the US format. Do
> you mean [D]/[M]/[Y]? Yes, can you offer any kind of hack to get [D]/[M]/[Y] in an input of kind date. It's a must for my client requisites. This works in 3.6.0 <xforms:input bind="rule_fecha_cuestionario" xxforms:format="if (. != '') then format-date(xs:date(.),'[D]/[M]/[Y]', 'en', (), ()) else ." id="fecha" class="resultado" <xforms:label class="campos-ejercicio">Fecha: </xforms:label></xforms:input> but does not in 3.7 beta. thx a lot. -- 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 |
In reply to this post by Erik Bruchez
> We support [M]/[D]/[Y] at the moment, right? I.e. the US format. Do
> you mean [D]/[M]/[Y]? Yes, can you offer any kind of hack to get [D]/[M]/[Y] in an input of date type. It's a must for my client requisites. This works in 3.6.0 <xforms:input bind="rule_fecha_cuestionario" xxforms:format="if (. != '') then format-date(xs:date(.),'[D]/[M]/[Y]', 'en', (), ()) else ." id="fecha" class="resultado" <xforms:label class="campos-ejercicio">Fecha: </xforms:label></xforms:input> but does not in 3.7 beta. thx a lot. -- 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 |
In reply to this post by Erik Bruchez
Yeah I'd very much like [D]/[M]/[Y] but the input control doesn't
support that. Erik Bruchez wrote: > Chris, > > We support [M]/[D]/[Y] at the moment, right? I.e. the US format. Do you > mean [D]/[M]/[Y]? > > As for what default to pick: difficult question, right? ;-) I understand the reason, just hoped that the computer scientists developing the apps would code up a logical date arrangement first and then handle those 'crazy' Americans ;) > > -Erik > > On Oct 13, 2008, at 2:42 AM, Chris Bailey wrote: > >> Hi Orbeon, >> >> Do you have any idea when input date formats other then m/d/y will be >> supported in Orbeon? >> >> properties.xml >> oxf.xforms.format.input.date = [M]/[D]/[Y] >> >> Is this something that can easily be changed or overcome (i.e. by >> using a different calendar or some clever js hack)? >> >> And while on the subject, why chose the American date format as a >> default? Errg. I assume your using a date library which makes this >> simple. >> >> Chris. > > -- > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > http://www.orbeon.com/ > Chris Bailey Senior Technical Researcher Institute for Learning and Research Technology University of Bristol [hidden email] -- 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 |
Administrator
|
Chris,
On Wed, Oct 15, 2008 at 3:04 AM, Chris Bailey <[hidden email]> wrote: > Yeah I'd very much like [D]/[M]/[Y] but the input control doesn't support > that. If you type a date in the text field, the way it will be parsed won't depend on the oxf.xforms.format.input.date property: if you enter a slash-separated (/) date it will expect the month first, if you enter a dot-separated (.) date it will expect the day first. So right now, even if you have set the format to [M]/[D]/[Y], you can enter 15.10.2008, and when you tab out of the field it will be transformed in 10/15/2008. The benefit of this system is that you can enter the date in the format you are used to, but of course this assumes that people used to the EU format will naturally use a different separator (.) than people used to the US format (/). This is the case in Switzerland, but might not be the case in the UK. Are people usually using a slash as a separator in the UK, like they do in the US? If this is the case, we could enable/disable different and conflicting parsing patterns based on the oxf.xforms.format.input.date you set. This wouldn't allow different people to enter date in US and EU format on the same form, but would be more natural to those who would like to enter a date in the EU format using slash as a separator. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- 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 |
Users do what is easiest to adapt to. A point (.) will do, or a comma
if needed (,) but it is the way they see culturally their date data, the numerical stream. Right now the choice of the (.) separator in the French date picker has been greatly accepted by our users. Thanks, -- einar -- 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 |
Administrator
|
Einar,
On Wed, Oct 15, 2008 at 12:47 PM, Einar Moos <[hidden email]> wrote: > Users do what is easiest to adapt to. A point (.) will do, or a comma > if needed (,) but it is the way they see culturally their date data, > the numerical stream. Right, and we wouldn't remove that capability. The benefit of using a different separator for the US vs. EU format (what we do now), is that you know just by looking at the separator what format people are using. Of course this break down if people use the '/' separator but intended to enter the day fist (EU format). Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- 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 |
In reply to this post by Chris Bailey-2
On Wed, 15 Oct 2008 11:04:45 +0100
Chris Bailey <[hidden email]> wrote: > Yeah I'd very much like [D]/[M]/[Y] but the input control doesn't > support that. Please, have you solved this with any worthwile hack I can apply? I need so much to output the date in format [D]/[M]/[Y] thx in advance. -- 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 |
See how a date is parsed here: http://en.wikibooks.org/wiki/XForms/Formatting_a_date . I have used the technique for xf:output - it works. Have not tried it on formatting an xf:input - it might work.
On Fri, Oct 24, 2008 at 12:20 PM, Richard C. Hidalgo Lorite <[hidden email]> wrote:
-- 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 |
In reply to this post by Alessandro Vernet
Alessandro Vernet wrote:
> Chris, > > On Wed, Oct 15, 2008 at 3:04 AM, Chris Bailey <[hidden email]> > wrote: >> Yeah I'd very much like [D]/[M]/[Y] but the input control doesn't support >> that. > > If you type a date in the text field, the way it will be parsed won't > depend on the oxf.xforms.format.input.date property: if you enter a > slash-separated (/) date it will expect the month first, if you enter a > dot-separated (.) date it will expect the day first. So right now, even > if you have set the format to [M]/[D]/[Y], you can enter 15.10.2008, and > when you tab out of the field it will be transformed in 10/15/2008. much on the fringes of the EU). However doesn't the automatic conversion to US format confuse users? Or maybe it would just confuse the UK folks who might be use to seeing both formats. > > The benefit of this system is that you can enter the date in the format > you are used to, but of course this assumes that people used to the EU > format will naturally use a different separator (.) than people used to > the US format (/). This is the case in Switzerland, but might not be the > case in the UK. Are people usually using a slash as a separator in the > UK, like they do in the US? The UK uses the '/' separator. > > If this is the case, we could enable/disable different and conflicting > parsing patterns based on the oxf.xforms.format.input.date you set. This > wouldn't allow different people to enter date in US and EU format on the > same form, but would be more natural to those who would like to enter a > date in the EU format using slash as a separator. That would be very much appreciated. I think it would be unlikely that people would want both input systems on the same form. However I would still like to see the date displayed in the same format as it's been entered. Otherwise 1/2/2008 displayed as 2/1/2008 would be ambiguous. Chris. -- 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 |
Administrator
|
In reply to this post by richhl
> On Wed, 15 Oct 2008 11:04:45 +0100
> Chris Bailey <[hidden email]> wrote: > >> Yeah I'd very much like [D]/[M]/[Y] but the input control doesn't >> support that. > > Please, have you solved this with any worthwile hack I can apply? I > need so much to output the date in format [D]/[M]/[Y] Output, or input? -Erik -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.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 |
Administrator
|
In reply to this post by Chris Bailey-2
>> If this is the case, we could enable/disable different and
We discussed this not long ago, and we think that a combination of
>> conflicting parsing patterns based on the >> oxf.xforms.format.input.date you set. This wouldn't allow different >> people to enter date in US and EU format on the same form, but >> would be more natural to those who would like to enter a date in >> the EU format using slash as a separator. > That would be very much appreciated. I think it would be unlikely > that people would want both input systems on the same form. However > I would still like to see the date displayed in the same format as > it's been entered. Otherwise 1/2/2008 displayed as 2/1/2008 would be > ambiguous. language and input format should be used to determine how the date you type is converted into an ISO date. This would be probably enough on a page per page basis. -Erik -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.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 |
I would like to use Orbeon for a project which will use date logic extensively. Here in Australia, the date format is [D]/[M]/[Y]. Perhaps we are a parochial bunch down here, but I don't think many Aussies are aware that date formats other than [D]/[M]/[Y] even exist. To make Orbeon work for this project, I would need to ensure that no other form of input or display is possible. Can you advise when the us Aussies will be able to enter and view the date in the format expected? |
Anyone has solution for this yet ? I also need to have the date input in D/M/Y
And I don't have to deal with other date format at all, so this is the only thing I need, any hack or work around to achieve this ? Thanks.
|
Free forum by Nabble | Edit this page |