https://bugs.freedesktop.org/show_bug.cgi?id=75568
Priority: medium
Bug ID: 75568
Assignee: [email protected]
Summary: Date Field : the text property is not updated when the
date property is updated
Severity: normal
Classification: Unclassified
OS: Windows (All)
Reporter: [email protected]
Hardware: x86-64 (AMD64)
Status: NEW
Version: 4.1.5.3 release
Component: BASIC
Product: LibreOffice
In a LibreOffice Basic script, I initialize the fldDate Date control of the Dlg
dialog with the following code, before Dlg.execute() :
dim d as date
dim unodate as object
d=now()
unodate=createObject("com.sun.star.util.Date")
dim fldDate as object
fldDate=Dlg.getControl("fldDate")
unodate.Day=Day(d)
unodate.Month=Month(d)
unodate.Year=Year(d)
fldDate.model.date=unodate
msgbox fldDate.text
The msgbox statement shows an empty string. Nor is the text property updated
after the Dlg.execute() statement. The text property is only updated if the
user enters something manually in the Date control.
NB : I also tried this with a numeric field, in this case updating the value
property causes the text property to be updated immediately.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs