SmartDate to text #1617
Replies: 2 comments
-
It depends on your UI technology. Some UI technologies have controls that allow you to put default text in the control if the underlying property value is empty. |
Beta Was this translation helpful? Give feedback.
-
We use nullable dates in a lot of our applications and they show a blank string when there's no date. Your situation may dictate something different, but in general, personally, from a UX standpoint, I think a blank string is better than "Not Available". Your end-users will be very comfortable with this concept as most apps like Excel that deal with a lot of data do this. I'm assuming this is in a data entry form? On a grid, I would for sure leave it blank as it's much easier for the eye to see that there's something vs. nothing there. |
Beta Was this translation helpful? Give feedback.
-
I have an interesting scenario, one of our datetime fields in sql database allows null (long story :)), if the value is 'empty' datetime according to SmartDate, we want to show the user text "Not Available". We are declaring our property as of type SmartDate in both Csla business object and our Data transfer object.
I know I could declare the property of type string but I was wondering if we could use something different?
Kind regards
Beta Was this translation helpful? Give feedback.
All reactions