Issue 113519 - SwXTextFieldTypes.refresh() does not change format
Summary: SwXTextFieldTypes.refresh() does not change format
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: programming (show other issues)
Version: OOo 3.2.1
Hardware: PC Windows 7
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-29 12:29 UTC by thegambler
Modified: 2017-05-20 10:44 UTC (History)
4 users (show)

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


Attachments
screenshot with content and presentation (6.14 KB, image/jpeg)
2010-07-29 12:31 UTC, thegambler
no flags Details
a test file that produces the issue (9.45 KB, application/vnd.oasis.opendocument.text)
2010-07-29 12:32 UTC, thegambler
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description thegambler 2010-07-29 12:29:52 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.
Comment 1 thegambler 2010-07-29 12:31:24 UTC
Created attachment 70876 [details]
screenshot with content and presentation
Comment 2 thegambler 2010-07-29 12:32:26 UTC
Created attachment 70877 [details]
a test file that produces the issue
Comment 3 eric.savary 2010-07-29 12:39:31 UTC
Reassigned to JSK
Comment 4 Oliver Brinzing 2010-07-30 08:17:14 UTC
.
Comment 5 eberlein 2010-08-03 11:11:16 UTC
.
Comment 6 hans_werner67 2011-03-28 11:58:38 UTC
Assign to new default-assignee
Comment 7 eric.savary 2011-04-11 07:21:44 UTC
Reassigned to TBO.
Comment 8 Edwin Sharp 2014-03-13 09:08:17 UTC
Confirmed with
AOO410m14(Build:9760)  -  Rev. 1573601
2014-03-03 17:47:48 (Mo, 03 Mrz 2014)
Win 7
Comment 9 Marcus 2017-05-20 10:44:57 UTC
Reset the assignee to the default "issues@openoffice.apache.org".