My list from firebase is filtered then displayed to the left of the gray square.
I scan the barcode and my program must delete the name displayed in the list on the left and add the product to the list under the green arrow.
I’m just looking for an extension or a simple way to avoid making lists that I use for display (see my 1st post) and another list to delete the scanned product. At the end the list at the bottom of the green arrow is sent to firebase to be saved.
So You Are Basically trying to say that there is a list “products” and it contains information stored in a list let’s say “name, code, category” and it displays on the left of the gray square. the barcode scans the product and removes the product from the firebase and adds it to the list below arrow. i hope I understood your procedure correctly
In this procedure, I reset my display list to zero and I recover the raw data from the filtered list (which will subsequently be modified after the scan)
For the display I only want certain indexes (1,2 and 4)
You are the best.
Sorry as I am French my blocks are in French.
Here is what follows which may complicate my procedure.
In this block, I add the products to my start list and I remove the product from my list of filter products.