Our pure JavaScript Scheduler component


Post by mats »

Please read this guide on how server should respond: https://bryntum.com/docs/gantt/#guides/crud_manager.md

Post by Deciderata »

The request is not sent so the server can not answer.
On the other hand, the server responds perfectly to other queries, either locally or online.

Post by pmiklashevich »

Hello,

Could you please wrap it up in a testcase? We need to have something runnable to be able to check it. If you say that request is not sent, we need to know what you do to send it.

Cheers,
Pavel

Pavlo Miklashevych
Sr. Frontend Developer


Post by Deciderata »

Hello,

For you to test, here is the link that gives access to the code.
https://bonny.deci.dev/DECIDERATA.zip

This is a module using the package: https://nwidart.com/laravel-modules/v4/introduction

To try it, you just need:
1. Install Laravel 5.8
2. Add the "nwidart / laravel-modules" package as in the composer.json file example
3. Copy-Paste the folder "Projects" and "BryntumScheduler" folder into the "Modules" folder at the root of your Laravel (creates it if it does not exist)
4. Configure the DB
5. Use the command "php artisan module: migrate --seed"
6. The tables should be initialized with data, if it is not the case you can enter the data you want
7. You will need to create data for the resources (Teams) I can send you the module if you wish?
8. Use the command "php artisan route: list" to know the link of the planning (it should be "/ scheduler")

It's up to you to play, the problem remains for me incomprehensible and for a few days, almost weeks ...

Thank you very much,
Waiting for your reply.

Messaoud

Post by mats »

Please remove the laravel bits, and provide a sample just based on our demos, we don't need Laravel to figure out why a server request isn't made from JS

Post by Deciderata »

I provided you with the corresponding files, without Laravel
I join you again : https://bonny.deci.dev/bryntumscheduler.zip

Post by mats »

It's very unstructured JS what you posted but I looked through some of your JS. In app.js, you're adding URLs for stores individually, which is incorrect when using CrudManager. CrudManager is a way of loading/saving multiple stores.

Remove this:
resourceStore : {
            createUrl:  $urlResources,
            readUrl:    $urlResources,
            updateUrl:  $urlResources,
            deleteUrl:  $urlResources,
            autoLoad:  $autoLoadResource,
        },
And if you want CrudManager to sync on every data change, add:
crudManager : {
        autoLoad: true,
        autoSync : true,

Post by Deciderata »

Hello,
I redid the changes you told me to do, I always receive errors.

So I am attaching the modified file, could you tell me what should you change?
app2.js
(15.17 KiB) Downloaded 118 times
I also attach the screenshots of the inspector.



Thank you
Attachments
network_erreur.png
network_erreur.png (96.01 KiB) Viewed 1749 times
console_erreur.png
console_erreur.png (83.14 KiB) Viewed 1749 times

Post by Deciderata »

Hello,

I come back to you after a short break and several tries.

My problem is almost always the same, without ajax call with my own code, the CRUD when Drag and Drop does not work (finally the CRUD simply, even creating the "project" directly in the Scheduler).

I did what you asked me:
- Remove the autoCommit
- Put the autoSync
- remove resourceStore (errors are output)

Today I ask you for help to move forward, the doc is quite complex to understand especially without example, more the use of extjs, then js in abstract mode etc ... does not help things.


What do you recommend ? Do you have an example Laravel project on which I can draw inspiration, if not, can you create one quickly to make available on a github, accessible to all in order to facilitate you the task and the visibility?

Thank you,
Waiting for your return.

Do not hesitate if you have questions about my specific need.

Post by mats »

I would highly recommend buying a few hours of Professional Services to get you unblocked. Should be enough with 2-3 hours. Details here: https://bryntum.com/services/

Post Reply