Looking for more info/docu on saveEvent method with EditOccurrence parameter

Hello, 
I'm trying to change an occurrence of a recurring event without the editor window by using the saveEvent method. I assumed that this can be achieved via the EditOccurrence parameter. I understand (or at least think so) that this should lead lead to the creation of a new event (linked to the series via the RecurrenceID) and adding a RecurrenceException to the series record. However just calling scheduleObject.saveEvent(changedRecord, ' EditOccurrence') throws an error (can provide full error stack)

Error: Uncaught (in promise): TypeError: Cannot read property 'StartTime' of undefined TypeError: Cannot read property 'StartTime' of undefined at _loop_2 

This error also occurs when I call the saveEvent method with an updated Id.

Pls. help me understand what is achieved automatically by using the "EditOccurrence" parameter and which steps I have to initiate with my code (e.g. add a new event 
cloned form the series, update the parent record with the new exception etc). A code sample of how to achieve the above would also be highly appreciated. Thx  a lot.

Julius

3 Replies 1 reply marked as answer

PN Praveenkumar Narasimhanaidu Syncfusion Team November 10, 2020 02:36 PM UTC

Hi Julius, 
  
Greetings from Syncfusion support..! 
  
We have validated your issue but couldn’t reproduce the reported issue at our end. Please refer to the following sample.  
  
Kindly try the above solution, if issue persists still please share the following details to check the issue further 
  
1.       Issue reproducing sample 
2.       Issue replicating code snippet or 
3.       Replicate the issue in above sample 
  
Regards, 
Praveenkumar. 



JP Julius Peter November 11, 2020 07:52 AM UTC

Thls Praveenkumar,
I finally figured our what the issue was - the event record I passed to the "saveEvent" was missing the "Guid". This appearently led to the error.

Still I think that a more in-depth documentation (programming guide or similar) would be beneficial to many users. The error messages you get form Syncfusion components are - at least for me - not very informative.

Thx a lot anyhow,
Julius

Marked as answer

NR Nevitha Ravi Syncfusion Team November 11, 2020 08:08 AM UTC

Hi Julius, 

Thanks for your update. 

We are happy that your reported issue has been resolved at your end. We will improve our documentation by provide steps to troubleshoot the commonly faced problems in future releases. 

Regards, 
Nevitha 


Loader.
Up arrow icon