http://openoffice.org/bugzilla/show_bug.cgi?id=117995


bmarcelly <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]




--- Comment #2 from bmarcelly <[email protected]>  2011-05-10 17:14:11 
---
Developer's Guide says :
The method update() of the interface com.sun.star.util.XUpdatable affects only
the following field types:

    * Date and time fields are set to the current date and time.
    * The ExtendedUser fields that show parts of the user data set for
OpenOffice.org, such as the Name, City, Phone No. and the Author fields that
are set to the current values.
    * The FileName fields are updated with the current name of the file.
    * The DocInfo.XXX fields are updated with the current document info of the
document. 

All other fields ignore calls to update().

_________________________________________

If, instead of update(), I do after the enumeration a global refresh of the
textfields, no such problem.

Sub Main2
Dim tf As Object, vEnum As Object, vVal As Object

tf = ThisComponent.TextFields
vEnum = tf.createEnumeration
Do While vEnum.hasMoreElements
  vVal = vEnum.nextElement
  If vVal.supportsService("com.sun.star.text.textfield.Input") then
    vVal.Content = "Random number: " & int(rnd()*100)+1
  end if
Loop
tf.refresh
End Sub

-- 
Configure bugmail: http://openoffice.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification
from Bugzilla. Please log into the website and enter your comments.
---------------------------------------------------------------------
-- 
-----------------------------------------------------------------
To unsubscribe send email to [email protected]
For additional commands send email to [email protected]
with Subject: help
-- 
-----------------------------------------------------------------
To unsubscribe send email to [email protected]
For additional commands send email to [email protected]
with Subject: help

Reply via email to