Problem with date format in PDF

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

Problem with date format in PDF

jr
Hi everybody !,

I have a problem with the date format of the generated pdf. I need to show date information like this 28/07/2012 in pdfs generated by orbeon.

To show the correct date format in forms I configure Orbeon whit this :

      <property as="xs:string"  name="oxf.xforms.format.input.date"  value="[D]/[M]/[Y]"/>


The date picker looks like that (with correct format) :
Inline image 1


But when pdf is generated with forms data this are the results (with and without template) :

  • without pdf template
Inline image 4
  • with pdf template
Inline image 3


Any help?.

Thanks.


--
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
Reply | Threaded
Open this post in threaded view
|

Re: Problem with date format in PDF

wlau
Hi,

I think that you have to use also :

<property as="xs:string"  name="oxf.xforms.format.<b>output.date"  value="[D]/[M]/[Y]"/>

Wafa

Reply | Threaded
Open this post in threaded view
|

Re: Problem with date format in PDF

wlau
<property as="xs:string"  name="oxf.xforms.format.output.date" value="[D]/[M]/[Y]"/>
jr
Reply | Threaded
Open this post in threaded view
|

Re: Re: Problem with date format in PDF

jr
Didn't work. 

I add "<property as="xs:string"  name="oxf.xforms.format.output.date" value="[D]/[M]/[Y]"/>", to the orbeon config.

The date format in pdf generated without template change to YYYY-MM-DD, and with template i have the same result.

Samples :


       Without template i have this result : 
       Inline image 1

      With the template pdf i have the same output :

            Inline image 2




On Fri, Jul 27, 2012 at 12:14 PM, wlau <[hidden email]> wrote:
<property as="xs:string"  name="oxf.xforms.format.output.date"
value="[D]/[M]/[Y]"/>



--
View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Problem-with-date-format-in-PDF-tp4655545p4655547.html
Sent from the Orbeon Forms (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




--
José R. Pla


--
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
jr
Reply | Threaded
Open this post in threaded view
|

Re: Re: Problem with date format in PDF

jr
Some updates.

With this config ( in properties-local.xml ) :

<property as="xs:string"  name="oxf.xforms.format.output.date" value="format-date(.,'[D01]/[M01]/[Y0001]')"/>
<property as="xs:string"  name="oxf.xforms.format.output.*.*.date" value="format-date(.,'[D01]/[M01]/[Y0001]')"/>


The generated pdf without template it's ok, date is show as 30/07/2012.



But with template i have the same problem.

Inline image 1


Any idea?

On Fri, Jul 27, 2012 at 1:07 PM, Jose R. <[hidden email]> wrote:
Didn't work. 

I add "<property as="xs:string"  name="oxf.xforms.format.output.date" value="[D]/[M]/[Y]"/>", to the orbeon config.

The date format in pdf generated without template change to YYYY-MM-DD, and with template i have the same result.

Samples :


       Without template i have this result : 
       Inline image 1

      With the template pdf i have the same output :

            Inline image 2




On Fri, Jul 27, 2012 at 12:14 PM, wlau <[hidden email]> wrote:
<property as="xs:string"  name="oxf.xforms.format.output.date"
value="[D]/[M]/[Y]"/>



--
View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Problem-with-date-format-in-PDF-tp4655545p4655547.html
Sent from the Orbeon Forms (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