This blog post provides a step-by-step guide on creating a Delete pop-up menu in Power Apps. Through this tutorial, users will understand how to insert icons, define properties, and integrate actions to delete or cancel operations in the gallery.
Write this code OnSelect property of trash icon
UpdateContext({Delete_item_var:true})
Name: Rectangle3
Fill: RGBA(241, 244, 249, 0.61)
Height: Parent.Height
Width: Parent.Width
X:0
Y:0
Visible: Delete_item_var
Name: Rectangle3
Fill: RGBA(255, 255, 255, 1)
Height:250
Width:500
X:Parent.Width/2-Self.Width/2
Y:Parent.Height/2-Self.Height/2
Visible: Delete_item_var
Text: “Delete Confirmation“
Name:Label2_1
Fill:RGBA(255, 255, 255, 1)
Color:RGBA(0, 0, 0, 1)
Height:40
Width:Rectangle4.Width
X:Rectangle4.X
Y:364
Visible:Delete_item_var
Name:Icon3
Fill:RGBA(255, 255, 255, 1)
Color:RGBA(0, 0, 0, 1)
Height:Label2_1.Height
Width:Rectangle4.Width
X:Label2_1.X
Y:Label2_1.Y
Visible:Delete_item_var
Name:Delete_btn
Fill:RGBA(141, 198, 63, 1)
Color:RGBA(255, 255, 255, 1)
Height:40
Width:160
X:433
Y:469
OnSelect:Remove('Product Catalog',BrowseGallery1.Selected);
UpdateContext({Delete_item_var:false})
Visible:Delete_item_var
Reference: UpdateContext function in Power Apps
Name: Cancel_btn
Fill:RGBA(255, 0, 0, 1)
Color:RGBA(255, 255, 255, 1)
Height:40
Width:160
X:773
Y:469
OnSelect:UpdateContext({Delete_item_var:false})
Visible:Delete_item_var
Creating a pop-up menu in Power Apps offers a user-friendly interface for gallery interactions. By following this guide, developers can efficiently implement the Delete function, enhancing the user experience and streamlining data management processes.
Copyright © 2022 Software Zone 365 All Rights Reserved.