Page 1 of 1

Weblet datepicker

Posted: Thu Sep 27, 2018 7:33 am
by rhoehle
Hello,

Please see the attached picture. It is a date field visualization:
Begin_Com Role(*Visual #PRIM_EVDT) Name(#VisualDate) Defaultvisual(True) Showtime(False) Componentversion(1) Height(21) Marginleft(221) Width(401)
End_Com
Begin_Com Role(*Weblet 'std_datepicker.std_datepicker') Name(#WebletTemplate) Defaultweblet(True)
End_Com
It starts the work week on Monday, and I need it to start on Sunday, is there any way to accomplish this?

Thanks.

Re: Weblet datepicker

Posted: Thu Sep 27, 2018 8:07 am
by AbelS
Your screenshot datepicker looks like the deprecated std_date weblet, not the current jQuery UI datepicker (std_datepicker).

In the WAM Editor, click on the date field and in Details, see which weblet it is.

If you use the jQuery UI datepicker, change the "firstDay" property to choose the first day of the week.

PS: If you have the ISO language code in your partition set to "en" (Default is US English), the default starting day is Sunday, so you don't need to override it.

HTH

Re: Weblet datepicker

Posted: Thu Sep 27, 2018 8:56 am
by davidbalansa
If you go to the visualization of the date field and select the visualdate visualization, you can change the startOfWeek property to Sunday.
Capture.JPG
Capture.JPG (94.34 KiB) Viewed 7280 times

Re: Weblet datepicker

Posted: Fri Sep 28, 2018 4:55 am
by rhoehle
That got it guys. Thank you!