I have an PA that goes to a DisplayScreen.
On the Display screen I have a DisplayGallery gallery that only shows that ID
Items: First(Filter('Requests',ID=Value(Param("ID"))))
To Edit/Delete you click on the DisplayGallery on the DisplayScreen which navigates you to the EditScreen.
Where it shows a Form and a Gallery (uses a different list, and display items when ID and MasterID are the same).
Form:
Item: If(!IsBlank(Param("ID")),LookUp('Requests',ID = varID),DisplayGallery.Selected)
Gallery:
Items: Filter('Details', MasterID = Value(DataCardValue1.Text))
When I delete, I'm using the DisplayGallery.Selected to delete all items on the EditScreen.
Sometimes it works, sometime it dont. Is there another way so getting the items to delete.
Delete Button on EditScreen
Onselect:
Remove('Requests','DisplayGallery'.Selected);
RemoveIf('Details', MasterID = 'DisplayGallery'.Selected.ID)
*** 'DisplayGallery' is on the previous screen (DisplayScreen), not EditScreen.