I am using the Accordion Component from the Market Place. I’m using a toggle button to show/hide the component. I have added a left side icon with the chevron still on the right side and in the content area of the dropdown I placed a container with a Delete and an Update button. When clicking the buttons it will trigger the toggle to close which seems to be the only way I could get the list to refresh without actually leaving the page and coming back.
The problem I’m having is that the only way either button will delete or update is using
( data.whatever.(0).id ) as the formula. But in doing so it will not delete/update the correct items.
I have my list sorted, so what it is doing is picking the index of what would be in that spot instead of what is showing. So my question is how can grab the correct item.
It’s driving me crazy. This shouldn’t be this difficult? I have been able to delete/update easily if I use any core list component. I’ve tried creating triggers to get outside the component. It still only works the way I’ve stated.
I created a Data Resource that works fine. The Accordion component uses a Data Adapter then you have to map it to the Data Resource but on the Delete Record properties you can’t access the Data Resource except using (data.whatever.(0).id) as I said above which will only delete the line index of what should have been in that spot had I not sorted the list.
Do I need to not use a Data Resource and just use the Data Adapter? or Maybe do an unsort delete resort on the fly?
Totally lost on this.