I am using the Enabled days in the Calenadr widget , the enabled days are the days when the data load happens. Data Load dates are stored in the entity and whenever the dataload happended those dates needs to be enabled in calendar. I am using the action to select those dates in
The issue is it display the dates in when the dataload happened in 2015 even in this 2016. When I debug and see the JSONValidDate it is like
Now the problem is it selects these date even in 2016, but these dates dataload happened in 2015.
So I added year year to variable and the value is
And it doesnot work, It doesnot open the calendar. I am really stuck and not sure how to proceed with this. This is in production and I am not able to move forward. Any help is greatly appreciated.
From what I can see you are using the Silk UI Framework.
The EnabledDays from the Silk UI Calendar does not allow you to select the year, so when you add the year to the JSON, the calendar does not know what to do with it, and returns an exception to the browser's console.
However, there are 2 options to solve this issue:
Check this image for the example
As you may have noticed on this last image, this calendar pattern is deprecated (since Version 1.1.0, released on 16 July 2015), and the new version of the calendar, does the exact opposite, which is select the disabled dates.
Although this second option is a bit harder to implement, and having in consideration that at a certain point the deprecated patterns may be deleted, it will allow you to keep upgrading Silk UI without loosing any functionality to your application.