Closed ghulamghousdev closed 5 months ago
This is actually not a bug. They were not declaring the resourceIds on eventModel. Adding this to eventModelClass is gonna solve their issue:
class CustomEventModel extends EventModel {
static $name = 'CustomEventModel';
static fields = [
{ name : 'resourceIds', persist : true }
];
}
and then add the class to eventStore and all good to go.
After discussion with Mats, we have decided to add a new multiassign demo using resourceIds.
Forum post
I'm trying to setup my calendar to where events can belong to multiple calendars/resources. When I set the resourceIds field on the EventModel, the event(s) don't get assigned to any resources. https://bryntum.com/products/calendar/docs/api/Scheduler/model/EventModel#field-resourceIds
Use the following data in
Calendar multi assign example
: