Our pure JavaScript Scheduler component


Post by thierry mear »

Hi,

Nope, same problem (see the json file here : https://91.235.138.107/calendar.json)

Regards


Post by marcio »

Hey,

I see what's going wrong here, in this JSON that you shared, you have two calendars with one interval, the correct is to have one calendar with several intervals.

Also, as you'll see here https://www.bryntum.com/docs/scheduler-pro/guide/SchedulerPro/basics/calendars#defining-project-calendar you need to have in the response JSON the default calendar set in the project. So you need that your JSON has the following format:

{
	"project": {
        	"calendar": "holidays"
    	},
	"calendars": {
		"rows": [
			{
				"id": "holidays",
				"name": "Holidays",
				"intervals": [
					{
                        			"id": "7",
                       				"name": "14 juillet",
						"startDate": "2022-07-14T00:00:00",
						"endDate": "2022-07-15T00:00:00",
						"isWorking": false
					},
                    			{
                        			"id": "68",
                        			"name": "Fermeture ONISEP",
						"startDate": "2022-07-15T00:00:00",
						"endDate": "2022-07-16T00:00:00",
						"isWorking": false
					}
				]
			}
		]
	}
	... other configurations	
}

Best regards,
Márcio


Post by thierry mear »

Hi,

We mad that update but we catch an error:
Uncaught (in promise) TypeError: startDateField is undefined
ProjectCrudManager.js:55:9

the problem is with the node:

 "project": {"calendar": "holidays"},

See the file here : https://91.235.138.107/calendar2.json

We are now in a hurry...

Best regards


Post by marcio »

Hey,

This endpoint is offline, could you share a zip file with that JSON, please?

Best regards,
Márcio


Post by thierry mear »

Hi,

Sorry ! the link works again now


Post by marcio »

Hey,

I was able to use it in the format that you shared in that link but needed to change the Id and Name properties (with uppercase I and N) to id and name (with a lowercase i and n).

That worked just fine for the 5.0.6 version.

I attached the data.json file that worked here, you'll that's the only difference between that and the one in your link.

Attachments
data.json.zip
(2.59 KiB) Downloaded 36 times

Best regards,
Márcio


Post by thierry mear »

Hi,

We have have now this error : Uncaught (in promise) TypeError: startDateField is undefined

See the file : https://91.235.138.107/calendar3.json

You can also see the scheduler result at this address : https://91.235.138.107/schedule_publication_demo_publi.asp

Regards


Post by thierry mear »

Sorry, the test address is : https://91.235.138.107/logdemo.asp

Regards


Post by marcio »

Hey,

So, using the calendar3.json in the Pro TaskEditor demo worked just fine https://bryntum.com/examples/scheduler-pro/taskeditor/

So it's not a data structure-related issue, most likely be some configuration or piece of code that triggers the error that you mentioned.

Attachments
Screen Shot 2022-06-30 at 10.24.15 AM.png
Screen Shot 2022-06-30 at 10.24.15 AM.png (95.05 KiB) Viewed 334 times

Best regards,
Márcio


Post by thierry mear »

Thanks for the anwser,

Can you look this link and tell us if you see the error?

https://91.235.138.107/logdemo.asp

Regards


Post Reply