Hi,
I have a bunch of problems concerning my dates in the text fields and was wondering if anyone can help me find a good way out.
1. The field must have a mask (display ' / / ') and only allow integers. Well, that's sorted out. The problem was putting a mask and format together on a field that has a dataprovider of type timestamp. Creating a text var and putting it as the dataprovider works well, though requires some programming and using naming conventions for date fields. It would be great in Servoy has a separate property for format and mask.
2. The double-click on the date field should put the today's date in it. The users love this feature and they want it.
Currently we put an icon next to the field that will perform the same functionality.
However, the double-click on a field would be highly desirable in the next release of Servoy.
Generally, different types of elements should support all kinds of events on them because it might be frustrating having a double-click on a label but not being able to set the format for it, or on the contrary - being able to format a text field without the ability of a double-click.
Could the Servoy developers, please, comment on this?
3. The users also love to change the date to next or previous by hitting '+' or '-' on the keyboard while the focus is in the date field.
This obviously requires a key listener which is implementable with a JTextField bean.
But again, we can't put a mask on a JTextField, after all we'd like to leave alone the beans for this purpose.
Is there any other solution to this problem that I don't see? (except adding the buttons to go to the next/previous date)
Thanks,
Maria