Skip to Content
0
Aug 17, 2023 at 11:42 AM

SAC datepicker widget "freeze"

55 Views

Dear Experts,

For an SAC Project we're using the datepicker custom widget developed by Nikolaj Kappler:

DatePicker

It allows for users to select a date in a calendar based interface -> amazing tool.

Unfortunately it is not working reliably, I'm running 3 codes and it freezing it!

Code1:

var date = new Date(ConvertUtils.stringToInteger("1901"),ConvertUtils.stringToInteger("00"),ConvertUtils.stringToInteger("01"));
datePickerPlanDateTest.setDateVal(date);

Datepicker selects the desired date.

Code2:

var date = new Date(ConvertUtils.stringToInteger("1999"),ConvertUtils.stringToInteger("00"),ConvertUtils.stringToInteger("01"));
datePickerPlanDateTest.setDateVal(date);

Datepicker change it's value to the second that -> as expected.

Than I'm clearing the value -> setting Datepicker back to it's default state

Code3:

datePickerPlanDateTest.clear();

Than I'm trying to reset the second date (Code2); rerun the same script and Datepicker stucks in it's default state.

Is anyone else already faced with this value update issue before?

many thanks for your help in advance!

Attila