Our pure JavaScript Scheduler component


Post by lvarciat »

On schedulerpro loading, the GET request is sended and scheduler receives data like:

{
"success": true,
"resources": {
	"rows": [
			{"id": "r1","name": "Mike","color": "#FF6F00"},
			{"id": "r2","name": "Linda","color": "#00C853"},
			{"id": "r3","name": "Don","color": "#FF6F00"}
		]
	},
"events": {
	"rows": [
		{"id":"1","resourceId": "r1","name": "Task 1","startDate": "2018-04-01T10:00:00.000Z","duration": "0.08333333333333333"},
		{"id":"2","resourceId": "r1","name": "Task 2","startDate": "2018-04-01T13:00:00.000Z","endDate": "2018-04-01T14:00:00.000Z"},  
{"id":"3","resourceId": "r1","name": "Task 3","startDate": "2018-04-01T14:30:00.000Z","endDate": "2018-04-01T17:00:00.000Z"} ] } } a POST request is immediately send (no user update) with the payload : { "type":"sync", "requestId":16010456466541, "events": { "updated": [ {"endDate":"2018-04-01T14:00:00+02:00","id":"1"}, {"duration":0.041666666666666664,"id":"2"}, {"duration":0.10416666666666667,"id":"3"} ] } }

My crudManager config :

crudManager: {
                autoLoad: true,
                autoSync: true,
                transport: {
                    load: {
                        url: '/QSMOCK/api/SchedulerTestGet',
                    },
                    sync: {
                        url: '/QSMOCK/api/SchedulerTestPost',
                    }
                },
            },

Post by mats »

Please use CODE tags when posting code / json. I don't see a question in your post, please be specific about what you need help with.


Post by lvarciat »

The question is why the POST request is sended just afetr receiving datas without any user action (no data changes)


Post by mats »

Sounds like a bug, can you please provide a test case we can inspect?


Post by fabio.mazza »

Hi lvarciat, thanks for your report, here is the issue to track: https://github.com/bryntum/support/issues/1586

Best regards,
Fabio


Post by lvarciat »

Thanks Fabio.


Post Reply