At last time, I have requested the multi-assign issue and I can see it's fixed in the v4.1.4.
But unfortunately, I faced another issue that is my event editor is broken.
I have added 3 custom fields information, quantity, hours in the event editor modal.
The custom field data is not saving to store after I click the save button.
For example, I have entered values information to first job, quantity to 20, hours: 8 and clicked the save button.
After that, I double clicked the same event to check if data is saved properly.
But they are still blank.....
Please help me this asap.
Also, I faced same issue on scheduler library after I upgraded to v4.1.4.
Looking forward to hearing from you soon.
Regards.
It is not necessary to listen to beforeSend event and add values manually to the request, however, we must let event store to know that we have them; see below.
We can configure event store with a custom model class (with the additional fields), for example:
class MyModel extends EventModel {
static $name = 'MyModel'
static get fields() {
return [{
name : 'myField',
type : 'string'
}];
}
}
crudManager : {
eventStore : {
modelClass : MyModel
},
// etc.
}
features : {
eventEdit : {
items : {
myField : {
name : 'myField',
type : 'text',
label : 'My Field'
}
}
},
// other features...
}
Please mind that the field name in class override myField matches name in the eventEdit configuration.
Now, you can test the above setup by creating a simple success.json file:
Now, when you change the text in myField in the editor and click the Save button, the change is committed to the event record and automatically send to the server:
Screen Shot 2021-06-11 at 09.50.46.png (429.81 KiB) Viewed 1385 times
Consult please the documentation for more details:
Hi, I can get custom field is working but in this case, multiple assignment is not working.
Can you please provide me the example that integrate the custom field and multi-assignment functions in react?
It says that duplicate event
It's too difficult to wrap up the project because it's very complex.
Can you please just provide me simple (Custom Field + Multi-assignment) sample that are using bryntum calendar 4.1.5?
Thanks.
Also, i would be very appreciated if you make the (Custom Field + Multi-assignment) sample for bryntum scheduler 4.1.5?
I had already done in version 4.0.8 and upgraded.
After I upgraded the version, everything is broken.
Maybe there are too many differences between v4.0.8 and v4.1.5 (Calendar and Scheduler)
I've put together a simple React demo based on https://bryntum.com/examples/calendar/multiassign/. It is enough to drop it somewhere under your document root and then run npm i && npm start and it should work.