Hello! I have created my Custom Appointment Object and I override all the methods but I am having issues when creating a recurrent event, RangeError (index): Invalid value: Valid value range is empty: -1
is working good when I create a normal event, the issue is when I try to create a recurrent event
it looks like is not mapping the properties of FitnessClass with the CalendarDataSource override methods
calendarData.appointments is empty.
Im not sure what I'm missing.
this is my custom Object:
Hi Jean,
# Regarding how to override getOccurrenceAppointment to use it with custom DataSource
Currently, we are analyzing the mentioned issue. We will validate and update you further on or before (September 7th, 2022). We appreciate your patience until then.
Regards,
Muniappan S.
Hi Jean,
#Regarding I am having issues when creating a recurrent event
As per the given code snippets we have followed to check the reported issue and we are unable to replicate the issue from our end. We have prepared the simple sample, please find the attached sample for the same,
Please find the output for the same,
Additional information
SfCalendar version: 20.2.46
Please check our sample and let us know if you still facing the same issue. if not, please modify the sample based on your scenario and revert us back with more details. It will be helpful for us to check on it and provide you with the solution at the earliest.
We hope that this helps you. Please let us know if you need further assistance.
Regards,
Muniappan S
I'm having a similar issue in my application and tracked it down to the "isOccurrenceAppointment" getting added and stripped out from the appointment.dart
so when it hits hits the getAppointmentType in my CustomAppointment Class the appointment doesn't have that flag to indicate that it is an "occurrence" instead of a "pattern" so it returns a -1 as it tries to find the pattern parent
Hi Cody,
We can replicate the reported issue regarding getting the isOccurrenceAppointment value in the appointment's notes field when tapping the drag-and-drop appointment at our end and have logged a bug report for it in our feedback portal. We will fix and include the changes in our upcoming weekly patch release which is expected to be rolled out on 2nd Week of February. We will update you here once the release is rolled out and we appreciate your patience until then. You can also track the status of the bug with the feedback below.
Feedback, https://www.syncfusion.com/feedback/50507/
Regards,
Yuvaraj
I failed to include that the -1 index happens when I try to edit or delete the recurring appointment - I'm using the (appointment_editor.dart) modified to use my CustomAppointment instead of Appointment - not sure if that will make a difference in your process but thought it might be important.
Hi Cody,
We are validating your query at our end, and we will update further details in one business day within February 06, 2023. We appreciate your patience until then.
Regards,
Preethika Selvam
Hi Cody,
Thanks for your patience. We have checked your custom_appointment file and tried to replicate the reported issue at our end. We used the CustomDataSource and CustomAppointment in the shared file and tried to delete the recurrence appointment when performing onTap. Unfortunately, the reported issue is not getting reproduced at our end. In the shared customer_appointment.dart file you have provided a method called updateAppointment and we didn't know where you used it in your sample and couldn't find the method called getPatternAppointment and getOccurrenceAppointment in the shared file. So, we kindly request you to try to replicate the reported issue in the below attached test sample and revert us so that it will help us assist you in a better way.
Regards,
Yuvaraj.