This is related to my other question, but it's a different case so I'm starting my own thread:
I have a field in the database which is an integer (like in the other thread), but this one is representing a timebank balance. I.e. 2 hours and 10 minutes more than expected , or 29 minutes less than expected.
So, it can be a negative integer (in the database they are stored as seconds, so 8940 and -1740 in the two examples above.
Here's what I would like to happen:
The user can see and edit this on a "time" format. I.e see and enter 2:29 or -00.27.
On the server, I am translating this integer in the database to and from a java.time.Duration, but from what I've found in the docs, there is no support for that in smartGWT?
Of course, I could just have the integer field and ask the users. to "enter the balance in minutes", but that's not a great user experience.
You guys are wizards, so perhaps you have a suggestion as to how I could handle this?
I have a field in the database which is an integer (like in the other thread), but this one is representing a timebank balance. I.e. 2 hours and 10 minutes more than expected , or 29 minutes less than expected.
So, it can be a negative integer (in the database they are stored as seconds, so 8940 and -1740 in the two examples above.
Here's what I would like to happen:
The user can see and edit this on a "time" format. I.e see and enter 2:29 or -00.27.
On the server, I am translating this integer in the database to and from a java.time.Duration, but from what I've found in the docs, there is no support for that in smartGWT?
Of course, I could just have the integer field and ask the users. to "enter the balance in minutes", but that's not a great user experience.
You guys are wizards, so perhaps you have a suggestion as to how I could handle this?
Comment