38
Views
6
Comments
DatePicker - Empty date value when MinDate and the Selected Date date are same
Application Type
Reactive

Hi Everyone,

I have 2 dates in my form Start date and End Date with condition End Date >= Start date. I could choose both the date as same day and it write to the db correct. But when I pull data to edit, the date picker is not showing the end date value in the input box. If i remove the MinDate value in the Datepicker widget, this issue resolves but I couldnt setup the condition (End Date >= Start date). Have anybody faced this?

Please share your ideas. 


Regards,

Abira

Hello Abira,

It seems when you load data  for editing you are not assigning EndDate retrieved from database to correct variable assigned to EndDate date picker.

Can you please check and confirm?

Also if you can share sample oml of issue this will help to find the issue

PFA

Sample.oml
Champion

Hi Abira,

Can you share oml?

Thanks

Arun

I shared to the first comment. Please refer. 

Hi 

Please find attached oml

DatePicker_v2.oml

Hi,

You have given the filter in the aggregate instead of giving that in aggregate you can validate the date while you are saving the data.

I attached the OML please refer that and let me know if that scenario works.

Regards,

Deepika

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