At 20:17 23/12/2010 -0500, Jonathan Noname wrote:
I have noticed that the Find & Replace feature of OpenOffice Writer will not detect text within fields.

Example:
1. create a document that contains today's date on the first page, using Insert > Fields > Date.
[...]
3.  Press ctrl-f.
4. As the search key, enter the day of today's date (for example, if today is 12/23/10 then enter 23 in the search box).
[...]
2.  A second dialog box appears, saying:  "Search key not found."

Is this is a bug, or is the software working as designed?

I strongly suspect that this happens by design. Inserting a field isn't simply a quick way of inserting some text - in this case, the date. Instead, the inserted field retains the ability to be updated later, and merely *displays* as you intend. The "23" isn't really there in the document: by the time I'm writing this, the displayed "23" will have become "24". In addition, note that the field can be displayed in a variety of formats; most of these will contain "23", but even some provided formats (such as "4th quarter 10") will not.

Are you familiar with spreadsheets? The behaviour is similar to that with formatting dates and times in spreadsheet cells.

Note that if you format the field, select it, cut it, and paste it back into place but using Edit | Paste Special... (or Ctrl+Shift+V) and selecting "Unformatted text", the field will be frozen (it will still show yesterday's date today) and will display in the format that you had chosen. Find & Replace will then find whatever text you have.

I trust this helps.

Brian Barker


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to