cancel
Showing results for 
Search instead for 
Did you mean: 

SAC datepicker widget "freeze"

attila_kiss
Explorer
0 Kudos

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

View Entire Topic
0 Kudos

Hello Attila,

have you ever solved this problem? I have the same phenomenon - after clearing a datepicker, I cannot set it again (for some time, at least). It ist hard to determine which state it is in during the story run. I have also receognized that datepicker has problem setting dates which are outside "normal time", meaning in daylight savings time.

kindest regards, Thomas