-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello Peter,
> I've been experimenting with date fields in dialogues and have > found what I think is an anomaly. As I understand it, a date field > is intended to hold a single date in its model. This can be viewed > when the dialogue is displayed. Apart from initialising it within > the editor, there are at least three ways of setting this field : > > 1) by setting its Text property within a macro 2) by setting its > Date property within a macro 3) by typing a date into the field. > > However, if one uses (1), the Date property is not changed, if one > uses (2) the Text property is not changed, and if one uses (3) both > properties are changed. Surely both properties should follow the > displayed view of the field, however it is modified. Is this > designed, or a bug? You could work with a view on the dialog and with the model. The view only shows, what you could see on the screen. Could be there is some content behind which will be saved if you press the SAVE-Button. The model has content, which could be saved. I don't know much about dialogs, in form-controls the text could be changed and nothing would be saved by the database, because the value of the control hasn't been saved. If I will change a date in a form I write down oDateField.BoundField.updateDate( unoDate ) and this changes both: The content I could see and the content behind for the database. It works as typing it in the field. Regards Robert - -- Homepage: http://robert.familiegrosskopf.de LibreOffice Community: http://robert.familiegrosskopf.de/map_3 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJYa+A7AAoJELDKYwaoS9AIkdwP/RAKxmTRIIFuJUAQ2PuhB9yx cGPHsmborqS6LHc4tjjx5w30FesVUGTYZFnpq8yL0h/1kZx0SNTHsPQ4x4+TxxR9 xuJZMBb7Wpz3sHla0XUpsInvE9iAgO2yXnZ3ysE+z0/IPDibevwXJZX4Uo24iodb h1RP9AQUYhnjpvqIJG41jMjnqmCRzhIIHeDol1avKuAyniR+Wpd4C77kb9ZU6nrE 3vmR9xVceCXt3/RWtBeRrIxtNnCxtOla0aoAPM5WdD5bssTOECXBWXSX1a8T+Uy/ bO/9PjhR4kGEfApCRylwjYcHrvORy7ZegYwaJmfa78/UFcGcE+vbeKLqjMPSB/SH XETZpBAIRdSj1cO9MjqkruEFVeXL4JVc0XLT/3JIJx8VxyAY/vogDjgeWrr8oSll rEU1WtMZFrRKI4fQpZGgBQZPrpqsCRsI9/4MBNakBYhMgN7yvTCTdS5YBjyt+Ph5 z0oyYn2TcS80IW3hEju2AvnwpxeqtIUWPgi5no/HEB7n0o+nVBpLwTbgHOVzSuG7 u4DGam2u/SYhG85mT1xZYHIj3Df0yFwWBmBdsAqYZWI+5/JPT0UyVy/10y0duSXR All1uwn8VljnsozfvPtE0zsLtMLDoThyxzhxsofVTSB6/6NSkty8m1/lwtRzOs/P jp+7yeD6gjJ1RnUX3Iid =8xTn -----END PGP SIGNATURE----- -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted