jQWidgets Forums

jQuery UI Widgets Forums Scheduler Saving a recurrence record

This topic contains 3 replies, has 1 voice, and was last updated by  EricK 2 years, 7 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Saving a recurrence record #122450

    EricK
    Participant

    Hello,
    Having an issue reading the open dialog information from the repeat weekly information. Documentation does not show freq of weekly. It shows a byday in documentation by does not show property. The byweekday does show, but no documentation. The recurrencePattern returns an array of days (su – sa)
    Ex. [0:6,1:0,2:1]
    Could someone show me how to pull the recurrencePattern data for a byweekday? This will be for a json bind database.

    Thanks,
    Eric

    Saving a recurrence record #122451

    EricK
    Participant

    Providing more information (code)

    In the appointment change function.

    var recurrenceValue = $(‘#scheduler’).jqxScheduler(‘getAppointmentProperty’, appointment.id, ‘recurrencePattern’);
    recurrenceValue.freq = weekly
    recurrenceValue.byday = undefined
    recurrenceValue.byweekday = [0:0,1:1]
    recurrenceValue.weekDays = {Monday: 1, Tuesday: 2}

    What will need to be saved to reload the scheduler?

    Thanks

    Saving a recurrence record #122452

    EricK
    Participant

    Sample
    scheduler-recurring-appointment.htm

    change

    var appointment4 = {
    id: “id7”,
    description: “”,
    style: “#307DD7”,
    location: “”,
    subject: “Daily Meeting”,
    calendar: “Room 1”,
    recurrenceRule: “FREQ=WEEKLY; BYDAY=MO,WE”,
    recurrenceException: null,
    from: new Date(2017, 10, 23, 10, 0, 0),
    to: new Date(2017, 10, 23, 11, 0, 0)
    }

    Does not work?

    Saving a recurrence record #122459

    EricK
    Participant

    Issue resolved…

    Recurrencerule had a space between weekly; and byday. Once removed all worked.

    Thanks

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

You must be logged in to reply to this topic.