jQWidgets Forums

jQuery UI Widgets Forums Scheduler Scheduler – recurring data

This topic contains 2 replies, has 2 voices, and was last updated by  svetoslav_borislavov 2 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Scheduler – recurring data #122445

    EricK
    Participant

    Hello all.

    Getting an error on your example when I change to data record.
    scheduler-recurring-appointment.htm

    Change:
    var appointment1 = {
    id: “id4”,
    description: “”,
    style: “#AA4643”,
    location: “”,
    subject: “New Projects Planning”,
    calendar: “Room 2”,
    recurrenceRule: “”,
    recurrenceException: “”,
    from: new Date(2017, 10, 22, 8, 0, 0),
    to: new Date(2017, 10, 22, 13, 0, 0)
    }

    In the example the last appointment4 is the only record with the recurring fields added.
    So, when reading from a json query that has the recurring fields and they are blank an error occurs…

    How do I handle the change in the different records I am querying?

    Thanks,
    Eric

    Scheduler – recurring data #122447

    EricK
    Participant

    Issue kind of resolved.
    my query was returning a “” and not a null.
    Not sure why a “” can not be handled the same way a null is handled. The only reason is that when a query returns an empty field it returns null.
    Which means the data returned may have many null fields and displays null…. Simpler to return “” since most of the data is handled like a string.
    Would be great if this could be changed.

    Thanks,
    Eric

    Scheduler – recurring data #122448

    Hi,

    The recurrenceRule, recurrenceException cannot be an empty string. You can just delete them from the object.
    Here is a sample of them being empty. An error is thrown: https://jsfiddle.net/s2ebx6t7/1/
    Here is a sample of how to delete them from the records: https://jsfiddle.net/s2ebx6t7/3/

    Hope this help! If you need further help, let us know!

    Best regards,
    Svetoslav Borislavov

    jQWidgets Team
    https://www.jqwidgets.com/

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

You must be logged in to reply to this topic.