Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

[Enhancement] Allow user-supplied date to be optional field #56

Closed
lamorton opened this issue Mar 22, 2018 · 5 comments
Closed

[Enhancement] Allow user-supplied date to be optional field #56

lamorton opened this issue Mar 22, 2018 · 5 comments
Assignees
Milestone

Comments

@lamorton
Copy link

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.

@joshirio
Copy link
Collaborator

joshirio commented Mar 22, 2018

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...).

bildschirmfoto_2018-03-22_14-18-27

EDIT: ah you mean a date field that can be left empty (optional)?

@lamorton
Copy link
Author

Yes, a date field that can be left empty (optional).

@joshirio
Copy link
Collaborator

joshirio commented Mar 22, 2018

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?

@joshirio joshirio added this to the 2.4 milestone Mar 22, 2018
@joshirio joshirio self-assigned this Mar 22, 2018
@lamorton
Copy link
Author

I suppose that would work. Can you elaborate on why the date field cannot be empty?

@joshirio
Copy link
Collaborator

joshirio commented Mar 22, 2018

QDateTime can be null, but QDateTimeEdit which we use to edit and display dates won't accept null dates.
https://forum.qt.io/topic/3068/solved-enhancing-qdateedit-to-allow-for-null-empty-dates/

joshirio added a commit that referenced this issue Dec 11, 2018
* 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants