0
votes

Im using orbeon 4.10 to collect data and fill back a PDF from a template. I would like to choose how the time is displayed on the pdf. I have seen the oxf.xforms.format.input.time and oxf.xforms.format.output.time properties, but they seem to only control the form itself.

I have also seen this, but it seems to relate to the date format.

What value do I need to change in my properties?

Thanks

2

2 Answers

0
votes

UPDATE: I don't think my solution below actually works. I think this might have worked at some point but might not work anymore. We do have an RFE for this.

You can use the following property:

<property
    as="xs:string"
    name="oxf.fr.resource.$app.$form.$lang.print.formats.time"
    value="[H01]:[m01]:[s01]]"/>

where:

  • $app is the app name
  • $form is the form name
  • $lang is the language which applies

You can use wildcards (*) for all of those.

0
votes

As a workaround i used a Hidden field to format my time correctly for the pdf.

Here is the formating code :format-time($controlname, '[H01]:[m01]') that i used in the calculated value
Here is the visibility code : $fr-mode = 'email' for the pdf generated from email or $fr-mode = 'pdf' for pdf button.