the calendar offered by ExtJS is not very intuitive for entering a birthdate, is it possible to use three separate fields (year, month, day) connected to each other and submit to the server only one value which is a composition: YYYY-MM-DD?
Or is there any good way to get a nicer calendar for entering a birthdate in an intuitive way?
Thank you.
Why isn't the ExtJS Datepicker worth for entering birthdate? In which field do you think it isn't proper - year, month or day? Yes, it is not same as 3 drop down lists with year month and day, but it provides absolute usability with least amount of code to select a date.
To answer your question as asked, you can use an xtype of "hidden" to send the date formatted how you wish.
Using a common blur event on the three dropdowns or textboxes you choose, you check to see if all three have been filled in and pass simple validation. you then set the value of the hidden field based on the format that you choose from the 3 separate fields.
Related
I am looking for a datepicker that allows me to select multiple single dates and multiple date ranges all within the same calendar with the output being all single dates (also for the date ranges).
I found this https://dojo.telerik.com/ELARAlOW which looks great but requires a 999 euro purchase to access a full range of UI elements I don't need, just to have access to the calendar.
Anyone know of any open source, inexpensive or free datepicker which would work?
I have a typical calendar datepicker that allows us to select multiple dates. We use it to close out availability for specific dates. The problem is that the dates need to be selected one by one and that can be a pain as sometimes I need to block out weeks or entire months at a time. Need an easier way to select multiple dates in less clicks and output a list of single dates (so not just the start and end date of the range)
Is there a way to "grey out" dates that are not deemed available from the date picker calendar parameter? I realize you can limit the available dates by using a drop down parameter, but it would be nice to have this extended to the date picker parameter.
Thanks,
Kirstie Jo
It is not possible(As far as I know) to control how SSRS handles user entry of date/time values in parameters. If there is a need to restrict to date (or time) only or do cross-field validation then you need to implement your own front-end.
How to protect only Month and Year of a date in Powerbuilder so user can only edit day of the date?
As comments suggest, this reads more like a user requirement than a technical question (e.g. lack of mention of what type of control is involved), but if this were my requirement, I'd try one of these (user exercise to figure out which ones would actually work; it's not my requirement grin).
EditChanged: I'd put a date EditMask on a DataWindow (remember external DataWindows; it's a common misconception to think that controls on DataWindows have to be tied to a database column), and code the EditChanged to revert the year and month back to their set values if they've been changed. (I'd consider this pretty aggravating for the user, but it's possible)
Day field: Make the year and month StaticText, and make the day only an editable field. Edit, EditMask or EditMask with spin control would be appropriate for this (spin gives you control over the range with minimal scripting).
Custom control: Grab the source code for a dropdown calendar (PFC comes to mind), and customize it to disable the navigation between years and months.
Good luck,
Terry
I'm trying to set up a form in which user's supposed to enter his/her birthday using three different input fields (day, month, year).
What's Spring MVC's way of:
a) prefilling those inputs when showing the form coming from a Date object.
b) getting it from the user, validating and putting into a Date object?
EDIT:
Here's an example link to how we'd like it look: yahoo registration
In spring mvc, for the default, it can't automatically convert the object as this date to a Date type object, so you just get the string in controller, so before get/post the request to server, you should combine these year, month, day together. In controller, you convert the string to Date with java. and it's the same that the controller should return a string, then in the page, you can use js to split it. But I recommend you choose a datepicker plugin, it will be better and save a lot of work.
Hey #user1241320 you can do format his/her birthday from view tier with calendar of any one javascript framework, for example, JQuery.
I hopes these helps :)
How do I show only a particular day of the week in gwt-datePicker ?
E.g
If I select January or any month of the year, I want to see only "Tuesdays" for that month.
Cheers
Prince
Short answer: With the default component you cannot.
I would recommend you to create your own widget. Remember that GWT doesn't have support for the Calendar Object, so you'll need to do your own calculations.
I had a similar requirement once where the datepicker popup needed to show the week number in an additional column. Since you cannot subclass/override all the necessary behaviour of the standard classes, there was nothing for it in the end but to rip out the source code and create a new implementation with minor changes.
As for date calculations, there is a port of joda time which you can import client-side. Quite a bit of overkill if you only need the day of the week, though.
http://code.google.com/p/gwt-time/