Alert Box to show before Replace View


Danny Cheah

Dear David,

How do I show an AlertBox before the RelpaceView command. Below is my code in the HttpClient success event.


Thank you.
Best regards,
Danny Cheah

decsoft

Hello Danny,

If we talk about the "Alert" action there is no problem even if the view changes. Remember than the "Alert" action show a native platform dialog alert, so this action is quite recommendable. However, if we want to use the "AlertBox" action, then we must take in count that when we go to another view, the possible alert is hidden. So the approach must be: 1º Set a flag variable like "ShowAlert" to "true" before we move to another view. 2º Use the another view Show event to look for the flag variable, and, if required, show then yes, use the "AlertBox" action.

So the button which go to another view can look like this:

And therefore in the "View2" Show event we can write this code:



Danny Cheah
Thank a lot David. It works perfectly.
Thank you.
Best regards,
Danny Cheah

decsoft

Glad to know that you got it, Danny!


Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.

This website uses some useful cookies to store your preferences.

I agree. Hide this note. Give me more information.