Posted on 2010-01-26 13:13:48.42881-08 by jmgdoc in response to 12246
Re: 2.0x --> 2.1x user field behavior change

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.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.