Skip Menu |

This queue is for tickets about the OpenOffice-OODoc CPAN distribution.

Report information
The Basics
Id: 54004
Status: resolved
Priority: 0/
Queue: OpenOffice-OODoc

People
Owner: Nobody in particular
Requestors: rlauer6 [...] comcast.net
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 2.102
Fixed in: 2.112



Subject: User defined fields
user defined fields seem to have stopped working in versions after 2.035. The values after being set properly in 2.035 appear in the document. 2.102+ seems to have broken that feature. We can no longer set user defined fields and see them in the document. I suspect something obvious was changed, but we've spun our wheels for a day trying to figure it out. Any clues would be much appreciated. $doc->userFieldValue($name, $value);
From: rlauer6 [...] comcast.net
On Tue Jan 26 07:36:44 2010, rlauer6@comcast.net wrote: Show quoted text
> user defined fields seem to have stopped working in versions after > 2.035. The values after being set properly in 2.035 appear in the > document. 2.102+ seems to have broken that feature. We can no longer > set user defined fields and see them in the document. > > I suspect something obvious was changed, but we've spun our wheels for a > day trying to figure it out. Any clues would be much appreciated. > > $doc->userFieldValue($name, $value);
Some additional information... the user defined field is contained in a table cell...examining the XML we find that the attribute "table:value" is set after a call to userFieldValue rather than "text-string-value"
Hello, In order to allow me to reenact the issue, could you please post in attachments the document and the perl script that produce the error ? In addition, could you check if: 1) the issue appears specifically with SXW files (i.e. the old OpenOffice 1.0 format) or both with SXW and ODT files ? 2) the issue is the same when the user field is located in a table cell as when the user field is in a text paragraph ? Thanks. Le Mar 26 Jan 2010 11:07:02, rlauer6@comcast.net a écrit : Show quoted text
> On Tue Jan 26 07:36:44 2010, rlauer6@comcast.net wrote:
> > user defined fields seem to have stopped working in versions after > > 2.035. The values after being set properly in 2.035 appear in the > > document. 2.102+ seems to have broken that feature. We can no longer > > set user defined fields and see them in the document. > > > > I suspect something obvious was changed, but we've spun our wheels for a > > day trying to figure it out. Any clues would be much appreciated. > > > > $doc->userFieldValue($name, $value);
> > Some additional information... > > the user defined field is contained in a table cell...examining the XML > we find that the attribute "table:value" is set after a call to > userFieldValue rather than "text-string-value" >
Bug located and fixed in the development version. The issue will be resolved in 2.112.
Subject: Re: [rt.cpan.org #54004] User defined fields
Date: Wed, 27 Jan 2010 07:06:27 -0500
To: bug-OpenOffice-OODoc [...] rt.cpan.org
From: Rob Lauer <rlauer6 [...] comcast.net>
Great! Thanks so much for the great work you've done on this project! Our work around for now is below (which seems to allow the fields to display): my $element = $doc->getUserField($name); $element->set_att('text:display', 'value'); instead of... $doc->userFieldValue( $name, $value ); On Wed, Jan 27, 2010 at 3:49 AM, Jean-Marie Gouarné via RT <bug-OpenOffice-OODoc@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=54004 > > > Bug located and fixed in the development version. > The issue will be resolved in 2.112. >
-- Rob
Le Mer 27 Jan 2010 07:07:24, rlauer6@comcast.net a écrit : Show quoted text
> Great! Thanks so much for the great work you've done on this project! > > Our work around for now is below (which seems to allow the fields to > display): > > my $element = $doc->getUserField($name); > $element->set_att('text:display', 'value');
Right ! However, be careful: by changing the 'text:display' attribute, you just update the visible value but not necessarily the internal value of the field. It possibly doesn't matter in your application. On the other hand, wait for my next message ;-)
OpenOffice::OODoc 2.112 is now available. Hopefully, the bug is fixed in this new release. Please check and report, so I'll close the ticket if everything is OK.
From: salewski [...] worldnet.att.net
On Wed Jan 27 07:51:56 2010, JMGDOC wrote: Show quoted text
> OpenOffice::OODoc 2.112 is now available. > Hopefully, the bug is fixed in this new release. > Please check and report, so I'll close the ticket if everything is OK.
Yep, 2.112 fixes it for us. Thanks again for your work on this issue, and for OO::OODoc generally. -Al
Subject: Re: [rt.cpan.org #54004] User defined fields
Date: Wed, 27 Jan 2010 09:43:25 -0500
To: bug-OpenOffice-OODoc [...] rt.cpan.org
From: Rob Lauer <rlauer6 [...] comcast.net>
Sorry I meant to say that the patch we actually used was: my $element = $doc->getUserField($name); $element->set_att('text:string-value, $value); Our first stab was to see if the 'text:display' attribute was the issue...but we later looked into the XML and saw the 'table:value' attribute being set instead of the 'text:string-value' attribute...hence our work around. On Wed, Jan 27, 2010 at 7:49 AM, Jean-Marie Gouarné via RT <bug-OpenOffice-OODoc@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=54004 > > > Le Mer 27 Jan 2010 07:07:24, rlauer6@comcast.net a écrit :
>> Great!  Thanks so much for the great work you've done on this project! >> >> Our work around for now is below (which seems to allow the fields to >> display): >> >>   my $element = $doc->getUserField($name); >>   $element->set_att('text:display', 'value');
> > Right ! However, be careful: by changing the 'text:display' attribute, > you just update the visible value but not necessarily the internal value > of the field. It possibly doesn't matter in your application. > > On the other hand, wait for my next message ;-) > >
-- Rob