Hey guys, somehow i have a strange issue.
I am working with the SchedulerPro vanilla JS implementation in my BlazorApp. I am working with the transport feature to sync the data with my db. Everything works fine so far and we are making good progress.
But now the issue: We are working with multi assignments via eventstore, resourcestore and assignmentstore. I built a custom assignment tab in the taskEdit feature to assign resource as we need it for our app. I can update and add assignments flawless.
But when I have for example have 3 assignments on an event and I use any of the many unassign methods to unassign one specific resource, the scheduler always wants to delete all assignments from the event and I don't get why! When I debug the beforeSync there are always 3 removals of assignments for the assignmentstore changes.
I tried using unassing methods from eventstore, eventmodel and assigmentstore. When I debug the code i get into the internal remove method which removes the one assignment triggered by my code as expected. But then i end up in the remove method again until no assignments are left and I don't know why.
I already tried setting 'multiEventSelect : true', I overwrote 'get useSingleAssignment()' method to return false and more stuff.
What is the setup I need to unassign a single resource from an event / delete a single assignment from the assignmentstore?
I tried:
- assignmentStore.unassignEventFromResource(eventRecord, resourceRecord)
- eventRecord.unassign(resourceId)
Kind regards,
Patrick