195
Views
4
Comments
Solved
Button cancel of the Confirmation Message
Application Type
Reactive

Well i'm having a problem with the confirmation message of the outsystems, because it seems both of buttons, "ok" and "cancel" have the same action of the delete, and a purpose is just not delete when i press the "cancel" button .

Anyone have a tip?

2023-03-29 17-56-44
Hevert Vinicius
Solution


Yes absolute sure, i've add a message using javascript to recognize the cancel button when I click in it. By the way, instead use the link with an icon , i tried with the button, and works.  :)

2021-09-06 15-09-53
Dorine Boudry
 
MVP

Hi Hevert,

can you show how exactly you are doing this

You just filled in the "Confirmation Message" property of a button, right ?  

With a regular On Click event defined for that button? 

it should only go ahead with the attached client action if you press OK on that confirmation dialog.

2023-03-29 17-56-44
Hevert Vinicius

answering your first question, Yes, only the confirmation button associated with a link, and with a my delete action

and this is my delete action.

2021-09-06 15-09-53
Dorine Boudry
 
MVP

that looks fine,

do you have absolute proof that in fact this action is executed ?  Add a msg at the start or something.

Are there no other ways that the delete could have happened also present in your screen ?

2023-03-29 17-56-44
Hevert Vinicius
Solution


Yes absolute sure, i've add a message using javascript to recognize the cancel button when I click in it. By the way, instead use the link with an icon , i tried with the button, and works.  :)

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.