web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Delete Items On Screen
Power Apps
Unanswered

Delete Items On Screen

(0) ShareShare
ReportReport
Posted on by 42

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.  

 

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,998 Most Valuable Professional on at

    Hi @crjohnson82 

     

    Try Remove('Details',LookUp(Collection1,MasterID='DisplayGallery'.Selected.ID))

     

    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.

     

    Thanks

  • crjohnson82 Profile Picture
    42 on at

    @abm 

    Tried below. Recieved a error.  Invalid argument type. 

     

    Remove('Requests','DisplayGallery'.Selected);
    Remove('Details', LookUp(Collection1, MasterID='DisplayGallery'.Selected.ID));

  • abm abm Profile Picture
    32,998 Most Valuable Professional on at

    Hi @crjohnson82 

     

    You should replace the collection1 with your data collection. 

     

    Thanks

  • crjohnson82 Profile Picture
    42 on at

    @abmI'm new so Im trying to understand. What is the data collection for? What should I be collecting? The master ID or ID?

  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    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))

     

    Best regards,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard