Hi.
When I try to edit an apoinment, modal does not show and console shows this error in Mozilla Firefox 61.0.2 (64-bit) Windows 10:
ERROR TypeError: "eventObj[this.fields.id] is undefined"
onEventDetailsUpdatehttp://localhost:50940/agenda.module.17.chunk.js:9935:9
openEditorhttp://localhost:50940/agenda.module.17.chunk.js:9262:17
editClickhttp://localhost:50940/agenda.module.17.chunk.js:11242:13
invokeTaskhttp://localhost:50940/polyfills.bundle.js:13350:17
onInvokeTaskhttp://localhost:50940/vendor.bundle.js:256219:24
invokeTaskhttp://localhost:50940/polyfills.bundle.js:13349:17
runTaskhttp://localhost:50940/polyfills.bundle.js:13117:28i
nvokeTaskhttp://localhost:50940/polyfills.bundle.js:13425:24
invokeTaskhttp://localhost:50940/polyfills.bundle.js:14469:9
globalZoneAware
Callbackhttp://localhost:50940/polyfills.bundle.js:14495:17
Reading doc for handling additional fields:
https://ej2.syncfusion.com/angular/documentation/schedule/appointments.html#handling-additional-fields
This is my apointment model:
public citas: Object[] = [
{
id: 1,
subject: "Test",
startTime: new Date(2018, 7, 30, 9, 30),
endTime: new Date(2018, 7, 30, 11, 30),
description: "Description test",
isAllDay: false,
animalId: 4,
clienteId: 3406,
veterinarioId: 1,
telefono: "666555444",
atendido: false,
horaAtendido: "0001-01-01T00:00:00",
horaLLegada: "0001-01-01T00:00:00",
}
]
And this is my eventSettingsModel
this.eventSettings = {
dataSource: this.citas,
fields: {
id: 'id',
subject: { name: 'subject' },
isAllDay: { name: 'isAllDay' },
startTime: { name: 'startTime' },
endTime: { name: 'endTime' },
description: { name: 'description' },
}
};
Thank you!