2 replies [Last post]
rustyspoone
Offline
Joined: 2010-06-23

I am using OpenOffice to create templates that are populated with Java objects. I like the build in date renderer. But it printed out the default format of the date and the custom date format I specified.

<<myObj.someDate{renderer=date('dd/MM/yyyy hh:mm')}>>

Resulted in: 15 Jun 201015/06/2010 04:38

Any ideas?

Rusty

admin
Offline
Joined: 2010-09-06
Hello rustyspoone. It appears

Hello rustyspoone.

It appears that you have two fields next to each other (one with a renderer and one without). This can happen easily in Open Office writer templates since you can give a field no display value. It can happen in Word too, since you can "mostly" delete a field. So to check if this is the problem and fix:

Open Office Template:
1) right click on the field with the renderer on in and select "Fields..."
2) use the left arrow to move to the previous field. This will turn up a hidden field if one exists.
3) Delete/correct the field from within the Edit Fields dialog box.

Word Template:
1) select all (ctrl-a)
2) update (F9) - this will update all fields to show what they really are, since the display value can be out of sync with the actual value.

Is this the problem?

rustyspoone
Offline
Joined: 2010-06-23
Works

Thanks paulj. There was a "hidden" field there. And thanks for the tip to edit the field. That is useful.