Hello,
I'm trying to implement Scheduler Pro (v5.2.4) into our application. Because we use a REST API, I'm connecting the Scheduler to our backend using AjaxStores, as in this example:
https://bryntum.com/products/schedulerpro/examples-scheduler/php/
The main difference between mine and aformentioned code is that my Event and Resource stores look as follows, to accomodate a Bearer token and "same-origin" fetch option.
{
headers: requestHeaders,
params: requestParams,
fetchOptions: requestOptions,
createUrl: requestUrl,
readUrl: requestUrl,
updateUrl: requestUrl,
deleteUrl: requestUrl,
autoLoad: true,
autoCommit: true,
sendAsFormData: false,
useRestfulMethods: true,
}
This approach works fine for the Calendar and Grid. In the case of the Scheduler Pro (I haven't been able to test with the regular one, as the repo won't allow me to download it), records are retrieved correctly, but event changes are not committed back to the API. The create/update and delete requests just never fire, where for the other products they do.
Manual commits don't appear to do anything either, whether I call them sync or async.
I assume this is a case of the Scheduler doing things slightly differently with its AssignmentStore or project settings, but, despite adding those, I haven't quite found the right combination to make things work. I was hoping that you could easily identify what I'm missing and help me on my way?
Thanks in advance.