10
Views
8
Comments
How to display a dialog message in an action ?
Question
Hi everybody,

i have a problem with OutSystems. Please help me.
In Web Screen's Action, i would like to display a dialog message. This is the flow that i want:
In my Web Screen's Action:
    if (flag) => do somethings
    else => display dialog message: "You can't do anythings else". This dialog message has only "OK" option. click to "OK" => end program.

Please help me.
Thanks you very much.

2023-10-09 10-31-52
Gonçalo Azambujo
Hi Quan,

you can do that with an "If widget", then at the "False" flow you can pick an "execution action" from the left menu and search for "feedback_message". Then you can edit the action on the right side menu with the tex and the type of message you want.

I hope this could help you.

Regards.
2014-11-18 22-34-13
kota
You can add runjavascript in the false branch and use script "alert('your message');".
This will give user ok option to click on and if user click on it , the flow of the logic will resume. 


UserImage.jpg
Quan Vu Thieu
Hi Gonçalo Azambujo,
Thanks for reply.
I tried to use Feedback_message, but only message displayed.
Feedback_message can display a dialog message with option "OK" ? 
UserImage.jpg
Quan Vu Thieu
Hi kota,

Thanks for your help.
I'm sorry, I'm a newbie. How to add javascript in the false brach?
Thanks you very much.
2014-11-18 22-34-13
kota
Quan Vu Thieu wrote:
Hi kota,

Thanks for your help.
I'm sorry, I'm a newbie. How to add javascript in the false brach?
Thanks you very much.
 you can use runjavascript action from HTTPRequestHandler reference. 
 
2016-04-21 18-13-58
Nuno Rolo
 
MVP
Hi Quan,

There is a propertie called Confirmation Message where you set the destination action, can this be what you want? 
UserImage.jpg
Quan Vu Thieu
Hi Nuno Rolo
Thanks for your help.
Confirmation Message can only check before the action is called. In this my problem, the actions is always called, many of statements is executed, and then dialog message is displayed.

2016-04-21 18-13-58
Nuno Rolo
 
MVP
Ok I understand.
Maybe you can create an hidden button with the confirmation message you want and eventually the final code to be executed, and in the point you want to show that message, use the widgetclick to click in that button, can this be a possible solution?
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.