Weblet datepicker

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
rhoehle
Posts: 3
Joined: Tue Dec 12, 2017 9:01 am

Weblet datepicker

Post by rhoehle » Thu Sep 27, 2018 7:33 am

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.
Attachments
Weblet_DatePicker.PNG
Weblet_DatePicker.PNG (15.19 KiB) Viewed 1167 times

AbelS
Posts: 24
Joined: Wed Nov 16, 2016 1:43 pm
Location: Sydney, Australia
Contact:

Re: Weblet datepicker

Post by AbelS » Thu Sep 27, 2018 8:07 am

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

davidbalansa
Posts: 47
Joined: Mon Feb 01, 2016 10:08 am
Location: Australia

Re: Weblet datepicker

Post by davidbalansa » Thu Sep 27, 2018 8:56 am

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 1158 times

rhoehle
Posts: 3
Joined: Tue Dec 12, 2017 9:01 am

Re: Weblet datepicker

Post by rhoehle » Fri Sep 28, 2018 4:55 am

That got it guys. Thank you!

Post Reply