Hi I'm a newbie and I have a problem where I cannot delete record from my DetailForm. Refer to screenshot below:
This is my code for Detail Form under "Item" property:
LookUp('DIS Fund',Identifier=BrowseGallery1.Selected.Identifier)
This is my code to delete this record in Detail Form under "OnSelect" property: (the problem is on this part where I cannot delete the record. I believe it is related to the previous screenshot where I used lookup but I'm not sure how to do this)
Remove([@'DIS Fund'], BrowseGallery1.Selected);
If (IsEmpty(Errors([@'DIS Fund'], BrowseGallery1.Selected)), Back())
Appreciate your help!๐ Thank you so much
Welldone.
Thanks for your help ๐
Thank you, I'm using the ID and it works! ๐
hi @Nbz78 ,
Try this
RemoveIf([@'DIS Fund', Name= BrowseGallery1.Selected.Name);
here Name field is your column name which you are using in your Form.
But as per my opinion you should take a ID column in your Form so you can delete your record by the Id of the user. then your code for deletion will look like this:
RemoveIf([@'DIS Fund', Id= BrowseGallery1.Selected.Id);
I hope It will help you
Hi @Nbz78
Code used on delete icon looks fine
If your gallery is detail screen related then try replacing Lookup with only data source name on that gallery
'DIS Fund' on data source property or [@'DIS Fund']
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
Super User 2025 Season 2
mmbr1606
275
Super User 2025 Season 2