I have a power app in which the user can attach images to a Sharepoint list. My app is modeled after this Reza Dorrani youtube video. I have an app screen that contains a vertical photo gallery in which I want the user to be able to delete an image attachment by clicking on the trash icon on the right hand side of the gallery. However, I'm not sure what the OnSelect code should be for that trash icon. At first I had this as the code:
RemoveIf(colImages,DisplayName= ThisItem.DisplayName);
because that is what Reza used as his code at 12:18 of his video. I realized that that code was wrong, probably because I should be deleting something from my sharepoint list called "BeckTable" rather than from the camera collection "colImages". Therefore I changed my code to this, but I received an Invalid Arguments error:
Remove([@BeckTable],ThisItem.Value);
Does anyone know what code I should use for that trash icon in order for the user to successfully delete a particular image attachment from a list?
