In Calendar Field I want the week start in sunday

Questions and answers for designing and implementing forms in Servoy

In Calendar Field I want the week start in sunday

Postby gonayp » Wed Dec 04, 2019 5:51 pm

Hi all.

What I want is that when displaying the calendar in a field, it shows me as the first day of the week on Sunday and not Monday, I don't know where I have to change this setting.

Thanks for the help

I have this:
Image

And I want this:
Image
gonayp
 
Posts: 10
Joined: Wed Sep 06, 2017 3:33 pm

Re: In Calendar Field I want the week start in sunday

Postby gonayp » Tue Jan 07, 2020 6:58 pm

Does anyone know how to fix this?
gonayp
 
Posts: 10
Joined: Wed Sep 06, 2017 3:33 pm

Re: In Calendar Field I want the week start in sunday

Postby sean » Tue Jan 07, 2020 7:12 pm

Hi Gonayp,

I believe this property will do it:
https://wiki.servoy.com/display/DOCS/UI ... EEK_NUMBER

Which uses ISO standard (Monday start) instead of Locale
Software Engineer
Servoy USA
sean
 
Posts: 370
Joined: Mon May 21, 2007 6:26 pm
Location: USA

Re: In Calendar Field I want the week start in sunday

Postby gonayp » Sat Jan 11, 2020 5:47 pm

Thanks for your answer

Please could you explain in more detail. I do not understand what you are suggesting to do
gonayp
 
Posts: 10
Joined: Wed Sep 06, 2017 3:33 pm

Re: In Calendar Field I want the week start in sunday

Postby sean » Fri Jan 17, 2020 9:10 pm

As the docs say, you would set this early in the session (most likely one time, in the onOpen event of the solution)

Code: Select all
function onOpen(arg,params){
    application.putClientProperty(APP_UI_PROPERTY.CALENDAR_NG_SHOW_ISO_WEEK_NUMBER, true)
}
Software Engineer
Servoy USA
sean
 
Posts: 370
Joined: Mon May 21, 2007 6:26 pm
Location: USA

Re: In Calendar Field I want the week start in sunday

Postby gonayp » Mon Jan 20, 2020 2:56 pm

I already saw that, but it doesn't solve the problem, just put the week number. What I need is that when displaying the calendar in a field, it shows me as the first day of the week on Sunday and not in Monday.

Thanks for the help
gonayp
 
Posts: 10
Joined: Wed Sep 06, 2017 3:33 pm


Return to Forms

Who is online

Users browsing this forum: No registered users and 5 guests