I've been having a fun time trying to get the dojo date picker to work. I'm using dojo 1.1.1 that ships with Domino 8.5.
It seems that the dijit.form.DateTextBox widget won't load a date value that already exists in the document if its not in the format dojo is expecting, which is "yyyy-mm-dd". I tried reformatting the date in the "HTML Attributes" event for the field, but the date is still cleared out by the widget:
date := SurveyDate;
year := @Text ( @Year ( date ) );
month := @Text ( @Month ( date ) );
@If ( @Length ( month ) < 2; month := "0" + month; "" );
day := @Text ( @Day ( date ) );
@If ( @Length ( day ) < 2; day := "0" + day; "" );
"dojoType=\"dijit.form.DateTextBox\" value=\"" + year + "-" + month + "-" + day + "\""
The
Dojomino dojomino.dijit.form.DateTextBox widget solves this problem, but the load time for Dojomino far from optimal.
Is there a way I can solve this problem using dojo 1.1.1? Or this problem been resolved with a later version of dojo? Or is there a way I can just load the one Dojomino widget I need?