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!


Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.

Este sitio utiliza "cookies" útiles para almacenar sus preferencias.

Bien. Ocultar esta nota. Obtener más información.