Hello Everyone!
I have an Edit Table function where the user can select the record they want to delete and the user can delete how many ever records they want.
I am facing issues with getting this functionality. I have a Page State Variable called "loop" which starts from 0.
After implementing my solutions, I am still unable to delete multiple records at once. It only deleted the first element. I think my logic is right but I'm not sure why it isn't working.
I need your help!!!!
Delete Multiple Records
Database & APIs
I have tried 2 things:
1) I deleted the reference from a 'Specific Index' and made the variable "loop" the index and incremented it till the loop breaks and all the records are deleted.
2) I made the loop run for n number of times where n is the number of elements in the list and deleted the reference at index 0 each time it ran.
Yes
3