Support Forum
Hello,
Please see the guides here:
https://www.bryntum.com/docs/gantt/#guides/project_data.md
https://www.bryntum.com/docs/gantt/#guides/crud_manager.md
You can also refer to our demos, for example PHP demo shows how to work with data.
If you have some more specific questions, feel free to create a thread and we will try to help you asap
Cheers,
Pavel
Please see the guides here:
https://www.bryntum.com/docs/gantt/#guides/project_data.md
https://www.bryntum.com/docs/gantt/#guides/crud_manager.md
You can also refer to our demos, for example PHP demo shows how to work with data.
If you have some more specific questions, feel free to create a thread and we will try to help you asap
Cheers,
Pavel
Pavlo Miklashevych
Sr. Frontend Developer
Thank you. I've gotten pretty much everything to work with crud but I'm still having some troubles configuring the fetchOptions. How would you edit the php-demo to change the fetchOptions (specifically the credentials part)? Can it be done on the transport object itself or do you have to access each individual store and change it there? If you could give an example with the php-demo as base that would be very helpful.
It's not supported at the moment. Ticket here: https://app.assembla.com/spaces/bryntum/tickets/9067-crud-manager-should-support-fetchoptions/details
Thanks for the report!
When ticket is done it should be possible to configure transport like:
Thanks for the report!
When ticket is done it should be possible to configure transport like:
transport : {
load : {
requestConfig : {
fetchOptions : {
credentials: 'include'
}
},
url : 'php/load.php'
}
},
Pavlo Miklashevych
Sr. Frontend Developer
Sure, Scheduler.data.CrudManager implements Scheduler.crud.transport.AjaxTransport abstract class, please see https://www.bryntum.com/docs/gantt/#Scheduler/data/CrudManager#config-transport
So yes, it's available in Gantt now. To use it please set up requestConfig for load/sync as shown on the code snippet above.
So yes, it's available in Gantt now. To use it please set up requestConfig for load/sync as shown on the code snippet above.
Pavlo Miklashevych
Sr. Frontend Developer
Ok, I think I found the issue (a misspelled key). In your class AjaxHelper the following lines of code can be found:
Since 'credentitals' is never found in the object the last thing the fetch-option does is to add credentials:include on the request. Took me good while to find this bug
static fetch(url, options = {}) {
const
controller = new AbortController();
options.signal = controller.signal;
if (!('credentitals' in options)) {
options.credentials = 'include';
}