Menu

#10 Date components forces modified status

open
None
5
2004-07-29
2004-07-06
No

An unmodified Date component in a GuiWindow (may) force(s) the
status "modified" for its JDataSet. The value stored in the JDataSet
for a Date has the format "dd.MM.yyyy hh:mm:sss". The date
which comes out of the GuiWindow.getDatasetValues() has the
format "dd.MM.yyyy" which always differs if only a string
comparison is made.

Discussion

  • Burghard W.V. Britzke

    Logged In: YES
    user_id=374092

    an extra sequence of
    <GuiWindow>.setDataSet(<GuiWindow>.getDataSetValues());
    may help as a workaround.

     
  • Burghard W.V. Britzke

    • assigned_to: nobody --> bubi
     
  • Burghard W.V. Britzke

    Logged In: YES
    user_id=374092

    I found a quick and dirty solution to this problem. But I did not actually
    fix it.
    I inserted a comment in GuiComponent.setDataSetValues (...) to get the
    value out of the component right after setting it and set it in the
    JDataSet. It would be nicer when this would be done only if the
    component is a date.
    If this is the way it should be done... remove the comment.

     

Log in to post a comment.

MongoDB Logo MongoDB