Page 2 of 3

Re: [INFO REQ] Scheduler pro

Posted: Sat Jun 25, 2022 5:57 am
by thierry mear

Hi,

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

Regards


Re: [INFO REQ] Scheduler pro

Posted: Mon Jun 27, 2022 3:43 pm
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	
}

Re: [INFO REQ] Scheduler pro

Posted: Wed Jun 29, 2022 11:15 am
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


Re: [INFO REQ] Scheduler pro

Posted: Wed Jun 29, 2022 2:24 pm
by marcio

Hey,

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


Re: [INFO REQ] Scheduler pro

Posted: Wed Jun 29, 2022 3:25 pm
by thierry mear

Hi,

Sorry ! the link works again now


Re: [INFO REQ] Scheduler pro

Posted: Wed Jun 29, 2022 4:18 pm
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.


Re: [INFO REQ] Scheduler pro

Posted: Wed Jun 29, 2022 11:21 pm
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


Re: [INFO REQ] Scheduler pro

Posted: Thu Jun 30, 2022 9:24 am
by thierry mear

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

Regards


Re: [INFO REQ] Scheduler pro

Posted: Thu Jun 30, 2022 3:27 pm
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.


Re: [INFO REQ] Scheduler pro

Posted: Thu Jun 30, 2022 3:35 pm
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