Issue 77713 - User Field in linked section is not updated correctly
Summary: User Field in linked section is not updated correctly
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: OOo 2.2
Hardware: PC Windows XP
: P4 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-23 13:46 UTC by cedricg
Modified: 2017-05-20 11:25 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
FileA of description (6.70 KB, application/octet-stream)
2007-05-23 13:47 UTC, cedricg
no flags Details
FileB of description (6.69 KB, application/octet-stream)
2007-05-23 13:47 UTC, cedricg
no flags Details
File A, after modification suggested by cornouws (7.18 KB, text/plain)
2007-05-24 09:34 UTC, cedricg
no flags Details
File B, after modification suggested by cornouws (7.09 KB, text/plain)
2007-05-24 09:34 UTC, cedricg
no flags Details
File A, fist one, rev. by Cor (6.70 KB, application/vnd.oasis.opendocument.text)
2007-05-25 07:23 UTC, cno
no flags Details
File B, fist one, rev. by Cor (6.99 KB, application/vnd.oasis.opendocument.text)
2007-05-25 07:24 UTC, cno
no flags Details
Screenshots mentioned in post. -- I think bug status should become "CONFIRMED". (711.50 KB, application/vnd.oasis.opendocument.presentation)
2008-02-27 10:44 UTC, madmaxx
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description cedricg 2007-05-23 13:46:02 UTC
Step 1 : Create document B with section and user field in section
 - Create a new document in Writer
 - Create a section named SectionB1
 - Create a user field named UserFieldB1 in this section, give a value to the
field, "ValueB1" for example
 - Save the document and give it the name fileB.odt

Step 2 : Create document A with a section linked to document B section
 - Create a new document in writer
 - Insert a section named SectionA1 linked to SectionB1 of fileB.odt (do not use
DDE link)
 - SectionA1 should contain the field UserFieldB1 with the velue "ValueB1"
 - Save the document and give it the name fileA.odt

Step 3 : Modify field in document B
 - Modify the value of UserFieldB1 in document fileB.odt, "ValueBBBBB2" for example
 - Save fileB.odt

Step 4 : Update section in file A
 - Update the links in fileA.odt(either by closeing, re-opening the document, or
Edit > Links > Update or Tools > Update > Fields)
 - The field UserFieldB1 in section SectionA1 is not updated
Comment 1 cedricg 2007-05-23 13:47:11 UTC
Created attachment 45340 [details]
FileA of description
Comment 2 cedricg 2007-05-23 13:47:37 UTC
Created attachment 45341 [details]
FileB of description
Comment 3 cno 2007-05-23 22:55:08 UTC
Hi Cedric,
I can confirm this, in the situation from your test files.
However:
a- I open B
b- add few paragraphs before and anfter the one with field
c- Open A, > Update > OK
d- Close A
e- Add new userfield in B (not in paragraph next to section border)
f- Open A, > Update > OK
g- Close A
h- Update new field in B
i- Open A, > Update .... OK

Can you pls try this?

Comment 4 cedricg 2007-05-24 09:31:40 UTC
Unfortunately that doesn-t work on PC...

I've downloaded 2.2.1RC2, it doesn't work too... 
I join the files to get sure I've understood well your explanation. Can you try
just to open the files, re-save them and update links in doc A, then attach the
files back again on the Issue ?



Comment 5 cedricg 2007-05-24 09:34:03 UTC
Created attachment 45362 [details]
File A, after modification suggested by cornouws
Comment 6 cedricg 2007-05-24 09:34:26 UTC
Created attachment 45363 [details]
File B, after modification suggested by cornouws
Comment 7 cno 2007-05-25 07:21:16 UTC
AFAIK, I work on a PC
Strange enough, I can't do it with you latest attached files.
But in the files I downloaded first, the fields in A still update.
I attach those files, so that you can have a look.
Comment 8 cno 2007-05-25 07:23:27 UTC
Created attachment 45383 [details]
File A, fist one, rev. by Cor
Comment 9 cno 2007-05-25 07:24:07 UTC
Created attachment 45384 [details]
File B, fist one, rev. by Cor
Comment 10 cedricg 2007-06-27 14:08:15 UTC
Hello

Sorry for lasting so long time : I had a lot of lot of.. tons of work...
Anyway, I've moved forward in the analysis of the issue :

I've tried again the steps you asked me to try (on 05/23). The first time I told
you It didn't work, but, indeed, I think it worked partially.

To sum-up last investigations :
After step e of your sequence of your instructions, I got the following :
    File B, containing SectionB1 with fields :
        UserFieldB1 (Value=ValueBBBBBB1)
        UserFieldB2 (Value=MadeByCed_Rev-1)
    File A, containing SectionA1 with field :
        UserFieldB1 (Value=ValueB1)... this one is not updated

After step f, SectionA1 contains :
        UserFieldB1 (Value=ValueB1)... still not updated
        UserFieldB2 (Value=MadeByCed_Rev-1)... added

step h, I change UserfieldB2 (Value=MadeByCed_Rev-2)

Step i, SectionA1 contains
        UserFieldB1 (Value=ValueB1)... still unwilling to update
        UserFieldB2 (Value=MadeByCed_Rev-2)... updated correctly!!!

That was the point I told you it did'nt work : I thought that, on your PC, both
fields B1 and B2 were updated, whereas you asked me if only UserFieldB2 was
updated, isn't it? I confirm that, at this point, new field B2 IS CORRECTLY UPDATED!

Now, try the following :
DOn't close FileA
j- modify new field in B (Value=MadeByCed_Rev-3) and save B
k- update links in A by clicking Edit->links->update
        UserFieldB1 (Value=ValueB1)... no comment
        UserFieldB2 (Value=MadeByCed_Rev-2)... not updated!!!
l- Close A
m- modify new field in B (Value=MadeByCed_Rev-4) and save B
n- Open A > Update.... not updated !!!

After step k, both field are not updated correctly.
Do you confirm new field is not updated correctly at steps k and n ?
Do you confirm it isn't possible to update FieldB2 in FileA any longer ?lysis of
the issue :
Comment 11 michael.ruess 2007-07-20 14:36:36 UTC
MRU->OS: as described, a User field's value in a linked section will not be
updated anyway when the value becomes changed in the source file/section.
Comment 12 madmaxx 2008-02-27 10:41:57 UTC
Hello
I think that bug is even more basic in the sense that no sections are needed.

1) Open empty document, define a user field and insert it twice. (screenshot 1)
2) Then, edit the field by double-clicking on it. (screenshot 2)
3) When closing the edit window, you get zeros instead of the updated value.
(screenshot 3)

This is a crucial feature when defining letter templates (that should have,
e.g., the same subject line on each page) and should be treated on higher
priority I think. 
Comment 13 madmaxx 2008-02-27 10:42:08 UTC
Hello
I think that bug is even more basic in the sense that no sections are needed.

1) Open empty document, define a user field and insert it twice. (screenshot 1)
2) Then, edit the field by double-clicking on it. (screenshot 2)
3) When closing the edit window, you get zeros instead of the updated value.
(screenshot 3)

This is a crucial feature when defining letter templates (that should have,
e.g., the same subject line on each page) and should be treated on higher
priority I think. 
Comment 14 madmaxx 2008-02-27 10:44:56 UTC
Created attachment 51748 [details]
Screenshots mentioned in post. -- I think bug status should become "CONFIRMED".
Comment 15 Marcus 2017-05-20 11:24:55 UTC
Reset assigne to the default "issues@openoffice.apache.org".
Comment 16 Marcus 2017-05-20 11:25:52 UTC
Reset assigne to the default "issues@openoffice.apache.org".