We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Updating RecurrenceException on the parent recurring event in our database

State: I have a Tues through Fri recurring event.

Scenario a user deletes Tuesday than deletes Friday,

console.logging args.data[0].parent during actionBegin the RecurrenceException shows both days but only posts the first day in my database. see below.

args.data[0].parent:

{

    "Description": "Tues Day through Friday Recurring Event",

    "Id": 359,

    "date_created": "2022-10-04T14:38:36.331274+00:00",

    "Subject": "Tues-Fri Event",

    "created_by": null,

    "last_modified": "2022-10-04T17:53:01.062+00:00",

    "StartTime": "2022-10-04T11:30:00.000Z",

    "EndTime": "2022-10-04T22:30:00.000Z",

    "completed": false,

    "started": false,

    "RecurrenceRule": "FREQ=WEEKLY;BYDAY=TU,WE,TH,FR;INTERVAL=1",

    "RecurrenceException": "20221005T113000Z,20221007T113000Z",

    "RecurrenceID": null,

    "day_ended": false,

    "schedule_id": 1,

    "end_value": null,

    "StartValue": "occupied",

    "group_id": 1,

    "__typename": "events"

}

console.logging args.data[0].parent.RecurrenceException = 20221005T113000Z

I would expect both days so when i update the parent Recurrence exception in the database both values are there.

Having a hard time understanding what to do efficiently. Am I supposed to grab the recurrence exceptions convert them into an array loop through them and see if the new exception is there if not add it and convert it back to a string and post to my DB?


1 Reply

RV Ravikumar Venkatesan Syncfusion Team October 5, 2022 11:44 AM

Hi Louis,

  

Greetings from Syncfusion support.


We have validated your query “I would expect both days so when i update the parent Recurrence exception in the database both values are there” at our end. Based on your query we suspect that you didn’t receive the updated RecurrenceException value at the server end. But, we are unable to reproduce the problem on our end and it works as expected. We have prepared a video demo for your reference. If we misunderstood your query kindly share the below details. It will help us to provide a solution for your problem earlier.


  • A video demo illustrating the issue with Schedule-related code snippets or
  • Reproduce the problem in our shared sample and share it with us or
  • Share a sample illustrating the issue if possible.


Regards,

Ravikumar Venkatesan


Attachment: ej2vueschedulewithremotedatasample_48bf1bb5.zip

Loader.
Live Chat Icon For mobile
Up arrow icon