jQuery UI Widgets Forums Scheduler custom fields on appointment

This topic contains 3 replies, has 2 voices, and was last updated by  Hristo 4 days, 15 hours ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • custom fields on appointment #107284

    mcopinne
    Participant

    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 = _APPOINTMENTS

    Does anybody has a hint what is going wrong?
    Thanks in advance.

    custom fields on appointment #107296

    Hristo
    Participant

    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 Hristov

    jQWidgets team
    https://www.jqwidgets.com

    custom fields on appointment #107355

    mcopinne
    Participant

    Hi,

    With other words, I need to do something like that :
    https://jseditor.io/?key=3b5478f806c011eaa73300224d6bfcd5

    My fields “CUSTOMFIELD” work perfectly when I open the dialog, but not when I drag & drop an appointment.

    Br,
    Maxime

    custom fields on appointment #107369

    Hristo
    Participant

    Hello 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 the adapter.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 Hristov

    jQWidgets team
    https://www.jqwidgets.com

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.