Currently, I manage to create items in my list and display them with the DynamicComponent extension.
But I can’t delete an item by pressing a button.
I am using the notifer to open a text entry popup, and when I validate, the text is added to the list. To this, I add a “trash” button which I normally use to delete the item. But this is where I block.
I searched for tutorials, but I cannot find the one that meets my expectations. What I want to do is:
Press an “Add” button
A popup opens to enter a text
The entered text is added to a list
Each element of the list must have a clickable button or icon to: edit, delete and possibly move the element to another position.
Could someone help me unblock myself from this situation please?
Okay, I’m coming back here because I can’t delete my item.
I followed the first link you gave me that helped me improve the way I added the elements, thanks.
On the other hand, to delete, I cannot. I have a list index error, I don’t understand.
I have a button that should be used to delete the entire element, another button that should be used to edit the text of the element. I am attaching the .ais of my screen, if you have any idea how I should do it that would be great! thank you
I’m going to study your two versions and try to understand what you did, as they are two different approaches that do the same job.
I must now find how to move the elements to another position (put element 1 last, 2 in 4 etc …). And also having a “random” button at the bottom, next to “add”, to put the whole list in random order.
The bug appeared when I tested in the companion. I added several texts to the list, and wanted to try the Edit button. The first text worked, but when I wanted to edit the second I got this error message
Did you test both tha aia separately ? Do not make any changes each one of aia with other methods. Because both views methods are different and will work well in aia as well as apk
I do not understand, I wanted to redo to make a video capture but I no longer have the error. I don’t know what happened earlier.
I didn’t modify anything in the aia, just imported and tested. But a priori, it works, both, so the error message I got I don’t know why it appeared earlier. Surely he was badly awake! ^^
Sorry, I had the same bug as this morning on the Gowri version. But actually it’s when I switch from one project to another, I have the bug at the start, and I refresh the screen and it works. I have to go too fast