To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=110706


User sba changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|NEW                       |RESOLVED
--------------------------------------------------------------------------------
              Resolution|                          |INVALID
--------------------------------------------------------------------------------




------- Additional comments from [email protected] Fri Apr  9 10:07:47 +0000 
2010 -------
Mechtilde, as discussed in IRC today:
A "User Field" is NOT a variable. Unfortunately, it behaves like one until you
save the document.
-> Set issue to "Invalid"

What is need here is a Variable to be set. That field updates on-the-fly when
you enter new pages. I will attach a bugdoc to show this working.

This is the way I created the "Page correction field" in the document:
 - New Writer doc, Ctrl+Enter two times to get 3 empty pages
 - Insert-Footer-Standard, Click into Footer
 - Enter Page Number and Page Count fields
 - Insert - Fields - Other...
 - On tab "Variables", in left box "Type" choose "Set variable"
 - Enter a name in field "Name" (I took "PageCorrection")
 - In Field "Value", enter (without Quotation marks) "PAGE+6"
 - Click "Insert"
-> Done

I also entered the "Wrong Field":
 - On tab "Variables", in left box "Type" choose "User field"
 - Enter a name in field "Name" (I took "UPageCorrection")
 - In Field "Value", enter (without Quotation marks) "PAGE+6"
 - Click "Insert"
-> Now both fields show the correct value (9)

If needed, enable tip help: Tools-Options-OOo-General-Help, check "Tips", OK 
-> When hovering over the fields, you can see that the first field shows
"PageCorrection = PAGE+6" while the second one shows the name (UPageCorrection)
only. Now when you enter a new page, the first field updates immediately, the
second one only after pressing <F9>.

And after a save and reload of the document, the second field keeps the value
that was calculated before saving even if F9 is used. Since the bugdoc is a
saved document, it only shows the "final state" :-)


---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

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


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

Reply via email to