Our pure JavaScript Scheduler component


Post by marcio »

I don't see that error that you mentioned, I see another one that seems to be related to your configuration.

Attachments
Screen Shot 2022-06-30 at 10.49.26 AM.png
Screen Shot 2022-06-30 at 10.49.26 AM.png (258.2 KiB) Viewed 405 times

Best regards,
Márcio


Post by thierry mear »

Hi,

Using firefox, i have this error (not your's):

Uncaught (in promise) TypeError: startDateField is undefined
    applyProjectResponse ProjectCrudManager.js:55
    loadCrudManagerData ProjectCrudManager.js:87
    applyLoadResponse AbstractCrudManagerMixin.js:1776
    applyResponse AbstractCrudManagerMixin.js:1788
    applyResponse ProjectCrudManager.js:116
    internalOnResponse AbstractCrudManagerMixin.js:957
    onCrudRequestSuccess AbstractCrudManagerMixin.js:1952
    sendRequest AjaxTransport.js:300
    promise callback*sendRequest AjaxTransport.js:299
    load AbstractCrudManagerMixin.js:1334
    load AbstractCrudManagerMixin.js:1298
    doAutoLoad AbstractCrudManagerMixin.js:404
    doAutoLoad ProjectCrudManager.js:45
    afterConstruct AbstractCrudManagerMixin.js:398
    Base Base.js:372
    Events Events.js:236
    Delayable Delayable.js:147
    AbstractCrudManagerValidation AbstractCrudManagerValidation.js:16
    AbstractCrudManagerMixin schedulerpro.umd.js:152005
    AbstractCrudManager AbstractCrudManager.js:43
    AjaxTransport AjaxTransport.js:27
    JsonEncoder JsonEncoder.js:24
    ProjectCrudManager ProjectCrudManager.js:26
    CrudManager schedulerpro.umd.js:155578
    new Base.js:383
    changeCrudManager SchedulerStores.js:174
    set Config.js:305
    get Config.js:356
    changeProject ProjectConsumer.js:98
    set Config.js:305
    get Config.js:356
    getConfig Base.js:739
    startConfigure ProjectConsumer.js:62
    setConfig Base.js:780
    configure Base.js:719
    construct Base.js:397
    construct Localizable.js:147
    construct Events.js:405

Regards


Post by marcio »

Hey

I see that error, but testing in Firefox with that calendar3.json in a Bryntum demo worked just fine, so likely be a problem in your configuration or code. Could you please share your configuration? A sample running project would be nice, you can zip the project folder without the node_modules folder and then attach it here.

Best regards,
Márcio


Post by thierry mear »

Hi,

Sure, find a zip of the project : https://91.235.138.107/Planning.rar

Best regards


Post by marcio »

Hey Thierry,

The application that you sent is not getting the data correctly (probably because of CORS), but I see that you don't have either a project or some store configuration in the CRUDManager, which may be causing that error that you shared.

https://www.bryntum.com/docs/gantt/api/Scheduler/data/CrudManager#project

Besides that, be aware that you have to remove validateResponse: true, when in production.

Best regards,
Márcio


Post Reply