I have an external data model that I want to display in a calendar component. When the date is (i.e. user selects a date from the date picker or uses the back/forward buttons) updated, I want to re-query the model, but pass in the selected date to the re-query so that the external system knows what events to fetch.
What’s the safest way of doing this? I can’t find anything in the Skuid JS docs on the calendar component that exposes the currently selected date, or any event triggered when the date changes. Closest I’ve got is something like: skuid.$(“#sk-id-here”).datepicker() which I can traverse to find the currently selected date
My other concern is that, from what I can see, if I change the date, a re-query happens automatically. For Salesforce models, I can understand that a date change can be applied to the model in a way that affects the underlying query, so that only records within the date ranges are fetched.
I don’t think this is possible with external data - though I’d love to be corrected. I’m concerned that on changing the date, a query will be fired without me being able to affect the URL merge conditions controlling the query; so I’ll update the URL merge conditions and have to re-query again.
Anyone got advice on this?
Question
What's the safest way of handling changes to the date in a Calendar component?
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.