-
Notifications
You must be signed in to change notification settings - Fork 63
[Enhancement] Allow user-supplied date to be optional field #56
Comments
OK please help me understand this. It is possible to add date fields to the form other than creation/modification time. Or do you mean, a date field which is not formatted? If so, you could just use text fields, otherwise you have to use one of the available date formats to make it work (sorting, date reminers, etc...). EDIT: ah you mean a date field that can be left empty (optional)? |
Yes, a date field that can be left empty (optional). |
Yes that makes sense. The issue is that technically a date cannot be empty. What I can do is to add a checkbox "initialize with current date and time on record creation" (or something similar), if then this is unchecked, the default date which is 2000-01-01 00:00 is used. When you see that date you know it was not set and you can ignore it. I know, not ideal, but that's the best I can do. Would that be acceptable? |
I suppose that would work. Can you elaborate on why the date field cannot be empty? |
QDateTime can be null, but QDateTimeEdit which we use to edit and display dates won't accept null dates. |
* Remove ambiance toolbar theme support obsolete feature * show info on windows to restart after background color change, fixes #66 * Allow small minimum date 100.01.01 and display empty fields on form view for unset dates * Allow empty dates as default value for new records, fixes #56 * Reload views when undo redo commands are executed, fixes #68 * Fix warning about virtual and non-virtual function about destructor * Fix typo in de_DE translation * Allow custom font style in form view, closes #70 * Add original directory import path for file type, closes #57 (#71) * Show an info dialog after a successful software upgrade * Fix restore saved build number on first launch * Add wiki link to help menu * Fix successful upgrade dialog when update checking is disabled * Lock form view to prevent unwanted field movements (#73) * collection list reordering by single steps up or down in collection list view * Improve database upgrade Add error checking and backup handling during upgrade * MEGA sync driver upgrade to Megacmd 1.0.0 and 2FA support (#77) * workaround to force light theme on macOS mojave Qt doesn't support yet dark theme, so force light theme. * Add donation doc * Update donate.md * Update donate.md * Update donate.md * fix donation qr codes * Donate URL definition * Add donate actions to menu and info windows * Update .gitignore * add donate question after 30 days * fix compiler warning * Compress python dropbox SDK deps and files to exlude from git and github tracking * Update LICENSE
Presently, I don't see a way to set a date as an optional field (I mean the free-form date, not the creation/modification date). Seems like it should be doable. I'm building a list of action items, and some of them do not have a 'due by' date when I create them.
The text was updated successfully, but these errors were encountered: