HI, I am facing an issue when updating the ressource list. I some ressources that are related to specifc categories, and I want to display ressources based on their selected categories. When a selected category is selected this happens, the error gets caught only when moving from a category of let's say 4 to a category with less than 4 resources. It works fine when moving from a category of let's say 4 to a category with more than 4 resources
I get this error:
Hi Ramti,
We already have a KB that explains how to handle the appointments for multiple resources and we have shared it below for your reference. Kindly cross-check this once and ensure you have achieved your sample as per KB guidance. We have also checked the shared issue stack trace and it is not related to our control. So, we kindly request you to share more details such as screenshots or screen recordings along with the sample to reproduce the issue that would be more helpful to us to provide a solution sooner.
Regards,
Yuvaraj.
Hi , Thanks for getting back to me. I followed the instructions on the link but same issue here is the complete screenshot of the error and attached is a screen recording of the issue:
Hi Ramti,
We tried to replicate the reported issue regarding the Range error exception when updating the resource list at our end. Unfortunately, we are not able to reproduce the reported issue, we can't go further without having a proper sample to reproduce the issue and we are not exactly sure in what scenario the issue is replicating. 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.
HI,
Here is the modified version replicating the error. I tried to include comments as much as possible to help replicate the issue. The general Considerations are below:
Hi Ramti,
We have checked your sample and found that you have tried to show Dr Joseph's appointment when Dr Joseph only switch gets toggled and shows all the resources and its appointment when the All Resources switch gets toggled. In this process, every time you have removed all the resources and their appointments and again populate it then added it to the data source.
Instead of doing this, we request you to have a Dr Joseph resource and its appointment statically and remove and add Stephen's resource and appointment alone. When toggling the Dr Joseph only switch remove the resource and appointment of Stephen and Add the resource and appointment of Stephen's when the All Resource switch gets toggled.
So please try the shared steps above to add and remove appointments and let us know if the issue still gets reproduced.
Regards,
Yuvaraj.
Hi, Thank you for getting back. We have gone deeper into that, and we still have the same problem. It gets more complicated in our case since we are displaying resources by categories. And when we switch from one category to another, there are no common resources, so are unable what was suggested unfortunetly. We have noticed that when the bottom cell of a calendar with let's say "6" row is selected. And we move to a category with 4 rows. The 6 th row is still selected and thus we get the error. It is like teh cell in the 6 row is still selected but the code sees that there are only 4 rows and thus we get "
RangeError (index): Invalid value: Not in inclusive range 0..3: 5
Hi Ramti,
In the previous response, we suggest that instead of removing all the resources and appointments remove the required resource and its appointment and have another resource and its value static. We have checked the shared sample but still, the issue is not getting reproduced at our end. So, we kindly request you to reproduce the report in the following attached sample and get back to us.
Regards,
Yuvaraj.