Hi,
To answer part of my own question:
As well as switching day and month, I would really like to output the
dates that the user selects in the format we recommend to our users:
'dd.mm.YYYY'. I've tried writing a <setvalue> command, but to no avail:
> <action ev:event="xforms-ready">
> <setvalue
> ref="ProcedureTemplate/Object/Movement/DateRequested"
> value="concat(substring-before(substring-after(., '/'), '/'), '.',
> substring-before(., '/'), '.', substring-after(substring-after(.,
> '/'), '/'))"/>
> </action>
Is this approach doomed to failure, or have I just made a minor coding
error?
I had indeed made a coding error. In my XForms document I have chosen to
declare the xf: prefix, so the above code was never acted upon. On
adding the prefix, it works perfectly, in a sense. When I click on the
three dots to the right of the input I get:
without the date picker ever being displayed. Two dots is exactly what
my value XPath should produce, when acting on an empty string.
Presumably I need to call my action in response to a different event? Or
is this whole approach doomed to failure?
Thanks,
Richard
--
------------------------------------------------------------------------
*Richard Light*
[email protected]
/@richardofsussex/
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support