Apache OpenOffice (AOO) Bugzilla – Issue 113519
SwXTextFieldTypes.refresh() does not change format
Last modified: 2017-05-20 10:44:57 UTC
If you run this code: <code> oTextFieldCon = thisComponent.getTextFields() oTextFields = oTextFieldCon.createEnumeration() Do while oTextFields.hasMoreElements() oTextField = oTextFields.nextElement() if oTextField.VariableName = "TEST" then oTextField.NumberFormat = 5036 oTextField.setPropertyValue("Content", "2009-05-01") end if loop oTextFieldCon.refresh() </code> it will set the text field to the content "2009-05-01" but the presentation will show "25.06.1905". If I change the format manually via menu it will work fine.
Created attachment 70876 [details] screenshot with content and presentation
Created attachment 70877 [details] a test file that produces the issue
Reassigned to JSK
.
Assign to new default-assignee
Reassigned to TBO.
Confirmed with AOO410m14(Build:9760) - Rev. 1573601 2014-03-03 17:47:48 (Mo, 03 Mrz 2014) Win 7
Reset the assignee to the default "issues@openoffice.apache.org".