35
Views
6
Comments
MinDate on datepicker doesn't show the default date if it's the same as starting date
Application Type
Reactive
Platform Version
11.30.0 (Build 43791)

I have the following problem,

I have a popup with a list of things and for each one a start date and an end date.

So, for example, if i have a Min date of CurrDate() and a max date of CurrDat() + 3 months, when the popup opens i should see:

- Element 1 ; Start date 03/09/2024 ; end date 03-12-2024

but i see just the end date, the start date is empty at UI level, while debugging i see its value and also i can select the current date with no problems.


Also i have tried to put the min date of the StartDate widget to CurrDate() -1 and it works, but i need it to be the date that corresponds to the startdate.



StartDate_Widget.png
EndDate_Widget.png
2024-03-23 18-16-49
Bryan Villalobos

Hi @Filippo Dimo ,


I tried how you described it and based on the screenshots, but it works fine for me. When you say "but i see just the end date, the start date is empty at UI level", you meant you cannot see the selected current date in the datepicker, correct? I tried it but I can see the initial selected date as today.

I have attached my working oml. If you can try to send your oml maybe i can have a look at it.


Regards,

Bryan

TestDatePick.oml
UserImage.jpg
Filippo Dimo

Sorry, I forgot to attach the screenshot of the date picker but yes that kind of is what i ment.

When the MinDate and InitialDate correspond, and i open the popup, the date isn't deplayed by default.

dates.png
2024-03-23 18-16-49
Bryan Villalobos


I tried to replicate the issue with the same setup (you can see the attached OML file in my previous reply), but it works as expected. Are you able to share your OML?

UserImage.jpg
Filippo Dimo

Unfortunatelly i cannot, but i tried in another environment and it works, so i have no clue now.

But thanks!

2024-03-23 18-16-49
Bryan Villalobos


Yeah, that is a little bit harder to figure out. Most likely some environment configurations?

I hope you find the actual cause. 


Regards,

Bryan

UserImage.jpg
Filippo Dimo

I tried again with several settings but nothing, it seems that if the selected date is the same as the min date it won't display it.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.