How do I put a yes/no pop-up message on the delete record button?
With the "yes" option going to the module to delete the record and the "no" option going back to the previous screen.
@Rui Magalhães ,
if you want a simple confirmation box without any custom logic, you can just fill in the Confirmation Message property of a button or link. It will either go ahead or not dependent on answer of end user.
It is the default browser confirmation, so you have no control over how it looks, but it is very little work.
Dorine
Hi @Rui Magalhães
If you want to create a simple confirmation popup box, you can just fill in the Confirmation Message Property of a button or link.
Thank you.
Hi Rui,
As I can see you have delete button inside list so what you need to do that when user click on delete icon just hold that Id of that perticular item in local variable and open the pop up.
When user click on yes button inside popup use that id for deleting that records,
When user clicks on No button simply make Show popup property false.
Regards,
Arun
hi Rui Magalhães,
1. create link with the icon like this and pass the user identifier
then
2. create a variable isopen and pass the value bydefualt false and assign into the pop like that
create a local variable for the delete for the delete action and pass the value which has been passed in step one
pass isopen as true
on yes button do this pass the localvariable id for deletion and isopen as false so pop up will close.
attaching an oml for help
hope this helps
Thanks
Prince
@Prince Aadil Khan Panwar ,
or @ anyone else downloading this oml,
be aware that you shared an oml, with a anonymous screen, deleting users. If anyone would know the link to your personal environment (maybe you shared a link in some other post) they could now possibly have access to delete your users.
Also, be mindfull of promoting best practices in your forum replies, directly executing a Delete<Entity> inside a screen action is not the best of ideas, and beginners might think it is ok from seeing it in your reply.
thanks a lot @Dorine Boudry for reminding me these silly mistake,s yes it may delete my systems users if any one got to know about my link. second yes i will follow the best practices in helping OMLs as well. as i wanted to help i used this else i promote only best practices on the outsystems platform. Thanks again. have a good day.