I have an PA that goes to a DisplayScreen.
On the Display screen I have a DisplayGallery gallery that only shows that 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).
Item: If(!IsBlank(Param("ID")),LookUp('Requests',ID = varID),DisplayGallery.Selected)
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
RemoveIf('Details', MasterID = 'DisplayGallery'.Selected.ID)
*** 'DisplayGallery' is on the previous screen (DisplayScreen), not EditScreen.
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.
Hi @crjohnson82 ,
Do you want to delete the item that display in the edir form?
If so, try this formula:
If(!IsBlank(Param("ID")),Remove('Requests',LookUp('Requests',ID = varID)),Remove('Requests',DisplayGallery.Selected))
Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.
Continue your learning in our online communities.
Features releasing from October 2019 through March 2020
Coming to a city near you
Fill out a quick form to claim your user group badge now!
Connect, share, and learn with your peers year-round