jQWidgets Forums
jQuery UI Widgets › Forums › Scheduler › custom fields on appointment
This topic contains 3 replies, has 2 voices, and was last updated by Hristo 5 years, 6 months ago.
-
Author
-
Hello all,
I have created a jqxscheduler and set some custom fields on the appointment.
On the editDialogOpen & editDialogClose, I can access to the custom fields and I set the value of the fields using the function $(“#scheduler”).jqxScheduler(‘setAppointmentProperty’ ….)
everything works fine on those functions.But I have an issue, when I drag/drop an appointment, all the custom fields are empty.
All the custom fields are present on the appointment but the all the values are null.I’m sure that all the custom values are set on the localData array.
My source was :
dataType: “array”,
dataFields: [
{ name: ‘ActivityId’, type: ‘string’ },
{ name: ‘Subject’, type: ‘string’ },
{ name: ‘ScheduledStart’, type: ‘date’ },
{ name: ‘ScheduledEnd’, type: ‘date’ },
{ name: ‘Description’, type: ‘string’ },
{ name: ‘Details’, type: ‘string’ },
{ name: ‘tooltip’, type: ‘string’ },
{ name: ‘Calendar’, type: ‘string’ },
{ name: ‘IsAllDayEvent’, type: ‘bool’ },
{ name: ‘EProdList’, type: ‘string’ },
{ name: ‘SpeakerList’, type: ‘string’ },
{ name: ‘SoundEngineerId’, type: ‘string’ },
{ name: ‘SoundEngineerName’, type: ‘string’ },
{ name: ‘OwnerId’, type: ‘string’ },
{ name: ‘OwnerName’, type: ‘string’ },
{ name: ‘IsClientAppointment’, type: ‘bool’ },
{ name: ‘status’, type: ‘string’ }
],
id: ‘ActivityId’,
localData = _APPOINTMENTSDoes anybody has a hint what is going wrong?
Thanks in advance.Hello mcopinne,
Could you provide us with a whole example (https://www.jseditor.io/ or https://fiddle.jshell.net/) that demonstrates this?
Also, please keep it as simple as possible.Best Regards,
Hristo HristovjQWidgets team
https://www.jqwidgets.comHi,
With other words, I need to do something like that :
https://jseditor.io/?key=3b5478f806c011eaa73300224d6bfcd5My fields “CUSTOMFIELD” work perfectly when I open the dialog, but not when I drag & drop an appointment.
Br,
MaximeHello mcopinne,
You cannot set custom datafield in the
appointmentDataFields
property.
It has a specific structure of members and you could see the right one into the API Documentation page:
https://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxscheduler/jquery-scheduler-api.htm?search=scheduler
If you want to get something specifics related to the specific appointment then you could use theadapter.records
option.
In that way, you will have all appointments as they are in the DataAdapter and with iteration get the specific one and set the “CUSTOMFIELD” datafield.Best Regards,
Hristo HristovjQWidgets team
https://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.