Hi
i'm using the crud manager with the scheduler pro. My event model contains a custom property, linkedEvents, which is an int array.
My workflow is:
- Using the event editor, i modified my linkedEvents property. Once my event is saved, the crudManager call my backend with the following payload:
{
"type":"sync",
"requestId":16305158802843,
"events":{
"updated":[
{
"id":5,
"startDate":"2021-07-07T10:00:00-04:00",
"endDate":"2021-09-07T12:00:00-04:00",
"duration":62.083333333333336,
"durationUnit":"day",
"cls":"stretch ",
"iconCls":"b-fa b-fa-lock",
"name":"#180971 Red Oak",
"exceptionDates":[
],
"resourceId":5,
"allDay":false,
"eventColor":"blue",
"desc":"the description",
"eventType":"Drying",
"linkedEvents":[
38
],
"lumberType":"",
"recipe":null,
"initialWoodMoisture":0,
"targetWoodMoisture":0,
"woodQuantity":0,
"detailedComment":"",
"tooltipNote":"",
"isLocked":false
}
]
}
}
- My .Net Core backend apply the update on the targeted event ID #5 but also update the linked event ID #38 . Here's the response of my sync call:
{
"success":true,
"requestId":16305158802843,
"message":null,
"code":0,
"events":{
"rows":[
{
"id":38,
"resourceId":37,
"name":"#180971 Red Oak",
"desc":"the description",
"startDate":"2021-09-08T11:00:00",
"endDate":"2021-09-15T14:00:00",
"eventType":"Order",
"eventColor":"blue",
"iconCls":"b-fa b-fa-lock",
"cls":"stretch",
"linkedEvents":[
5
],
"lumberType":"AmericanWalnut",
"recipe":null,
"initialWoodMoisture":0,
"targetWoodMoisture":0.0,
"woodQuantity":0,
"detailedComment":"dasgfsfdghsdhgf",
"tooltipNote":"",
"isLocked":false
}
],
"removed":[
],
"updated":[
]
},
"resources":{
"rows":[
],
"removed":[
],
"updated":[
]
}
}
The related event, ID #38, should be updated with new values in linkedEvents but unfortunately it doesn't.
I made a test by updating the name field in the related event and it succeeded! So i'm suspecting that my array field update does not trigger en update in the event store.
Any idea about my issue?
Thanks