cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Giulian
Level: Powered On

delete screen confirmation

How can i do for make a validation screen when user delete data ?

 

When user use gallery for read data i give to him a possibility to delete some items, when he click on icon all is ok with the remove function.

 

i want better way, after he clic on icon, he have a new screen "are you sure you want to delete this entry ?" and he have choice beteween yes or no.

 

- If yes item is delete and navigate to other screen

- If no nothing happens and back to list of item

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: delete screen confirmation

Hi Giulian,

 

It can be achieved by using Updatecontext function in you app. Please check this documentation for a reference:
https://powerapps.microsoft.com/en-us/tutorials/function-updatecontext/

 

And hope what I have done could be a reference for you:
1. Add three screens, on my app, they are Screen3, Screen4, Screen5.
2. My app is connecting to SharePoint list.
3. On Screen3, add a Gallery control, set its Items property as the data source “ListB”. Then add a Button control to the Gallery and name it as “Delete”, set its OnSelect property as:
Navigate(Screen4,ScreenTransition.Fade,{Text:"are you sure to delete the item",show:true})
4. On Screen4, add a Text box control, set its Text property as “Text”.
Add two button controls, Name them “Yes” and “No”, set the Visible property of them as “show”.
5. Then set the “Yes” button’s OnSelect property as: Remove(ListB,Gallery1.Selected);Navigate(Screen5,ScreenTransition.Fade)
“No” button’s OnSelect property as: Back(ScreenTransition.Fade)

 

Hope my steps could be a reference for you. Please try if this and let me know if this works for you.


If you need more help please feel free reply.

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: delete screen confirmation

Hi Giulian,

 

It can be achieved by using Updatecontext function in you app. Please check this documentation for a reference:
https://powerapps.microsoft.com/en-us/tutorials/function-updatecontext/

 

And hope what I have done could be a reference for you:
1. Add three screens, on my app, they are Screen3, Screen4, Screen5.
2. My app is connecting to SharePoint list.
3. On Screen3, add a Gallery control, set its Items property as the data source “ListB”. Then add a Button control to the Gallery and name it as “Delete”, set its OnSelect property as:
Navigate(Screen4,ScreenTransition.Fade,{Text:"are you sure to delete the item",show:true})
4. On Screen4, add a Text box control, set its Text property as “Text”.
Add two button controls, Name them “Yes” and “No”, set the Visible property of them as “show”.
5. Then set the “Yes” button’s OnSelect property as: Remove(ListB,Gallery1.Selected);Navigate(Screen5,ScreenTransition.Fade)
“No” button’s OnSelect property as: Back(ScreenTransition.Fade)

 

Hope my steps could be a reference for you. Please try if this and let me know if this works for you.


If you need more help please feel free reply.

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Giulian
Level: Powered On

Re: delete screen confirmation

Many Thanks it s ok for me

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 149 members 4,930 guests
Please welcome our newest community members: