|
To answer the last question, the following code is OK to update user fields with text content:
$element->set_att('text:string-value', "whatever");
Provided that, of course, $element is a user field element previously retrieved by name using getUserField("name").
However, it's just a hack that allows to wait either a new release of OpenOODoc (where, hopefully, the userFieldValue() bug will be fixed) or the full replacement of SXW by ODT. It will *not* work with user fields whose value type is not text; for example, the right attributes are "text:date-value", "text:time-value", and "text:value" respectively for date, time and numeric fields. |