Hello OS community!
I'm having an issue using DatePickerDisableDays here's the scenario
Here's my current DatePickerOnitialized and I will provide my OML
Can anyone please help to achieve this? I will truly appreciate it.
Hi, i made some changes, very briefly you have to put the inactive days in a single list and insert and execute the DatePickerInitialized initialization when the data is loaded, for this you can put the container that contains the dstapicker inside an if.
See my changes below
Thanks @Adão Pedro I will also try to understand this solution thanks again!
It works now thank you so much @Adão Pedro
Hi!
You need to run this "DatePickerOnitialized" action, or one similar to that, also in the OnAfterFetch of the queries GetAvailableDays and Getholidays.
There are no guaranties that those queries have already finished when the initialize from the datepicker runs.
Hope this help
Graça
can you show me a sample on how to do this?😅
Sorry I didn't see you are already refreshing the queries in the action.
this don't work but why?
let me see
Found!!!!!
You cannot use two "DisableDatePicker" widgets in the same initialize action.
you need to create a list
and add all the disabled days to that list
best regards
ps - added the changed oml
Oh to be honest I'm not familiar with this List function. Can you send the revised OML?
yes
i have changed my answer but i'm sending it again
@Maria da Graça Peixoto thank youu I will try to implement and learn this solution