display warning message when connection to master is lost
s.strahammer
Posts: 17
hey everyone,
i searched like crazy for that one but couldn't find anything in the forum:
is there a way for a panel (700Vi and 5200i in particular) to automatically display a popup when the connection to the master is lost (eg. master has crashed or is rebooting)?
what i want to do is the following: when there's no connection to the master, a fullscreen popup shall prevent the user from pushing any buttons until the connection is reestablished.
do you know if there's any way to do this?
thx in advance!
stefan
i searched like crazy for that one but couldn't find anything in the forum:
is there a way for a panel (700Vi and 5200i in particular) to automatically display a popup when the connection to the master is lost (eg. master has crashed or is rebooting)?
what i want to do is the following: when there's no connection to the master, a fullscreen popup shall prevent the user from pushing any buttons until the connection is reestablished.
do you know if there's any way to do this?
thx in advance!
stefan
0
Comments
As I'm using 5 adjoining popups to build my application I can't put a large button to cover the whole screen - so I need to do this with another popup. I don't want to just display a message to the user but really prevent him from pushing any buttons.
I hope there's a way to do this...
Jeff
There has to be a better way of doing this...
If you have a nav bar, you could display a connecting to master message there, but I have found that the panel turning red is a good indicator that things will not function (unless the panel theme is mainly Red )
Jeff
I guess there's no easier way than what you described... it's just that with this button on top of everything else on every popup it gets really nasty to edit the panelfile. I'll give it a try and let you know if ever I find a prettier solution.
Hi again,
unfortunately your solution doesn't work in critical situation. I just tried it as described above: I used a button with an empty on-state and an off-state containing the warning that there's no connection to master. In code I set the button to "on". If I reboot the master, the button correctly switches to "off" - all is well so far.
If, however,
(1) the mobile panel loses the connection to master because it loses network connection or
(2) the master crashes uncontrollable
the button doesn't switch to "off".
This is, I guess, because the master sends a "disconnect" when properly shutting down or rebooting. On losing network connection or crashing no such command is sent to the panels and therefor all buttons stay "on".
I'm lost... does anyone now another way to achieve this*?
greetings,
stefan
*I'd like to display a popup when connection to master is lost to prevent users from pushing any buttons while there's no connection.
You should be able to create a similar multi state bargraph, basically a replica of your green button.
0:8 Levels are "0,7,8" - DISCONNECTED and the rest "1,2,3,4,5,6,9,10,11" CONNECTED.
The states of your BIG button should correspondingly be "transparent" for all the CONNECTED levels, and "warning" for states 1,7,9 (assuming that you use states 1-12 for levels 0-11, this will match levels 0,7,8).
System channel 0:1 is also an option, but the state will "blink" on and off even if connected, so it will probably not suit your purpose.
I hope this helps...
I already tried it - unfortunately it seems multistate-bargraphs won't let me click buttons underneath even if currently showing a transparent state. It's the same with transparent popups - if I put a transparent popup containing nothing on top of my application I can't click any buttons...
I've tried with different button types now but it seems I can't click through any button even if all its states are transparent. Did it work for you and am I just crazy? Or was there a change in TPDesign?
I'm currently using TPDesign 4 in version 2.11.0
phew.
Just a thought...
that sounds about the closest I'll ever get ;-) I'll give it a try and let you know about it.
Thanks!
You're correct that they can still push the buttons behind the warning even if it's active, but if you handle your feedback and page flips in code those button pushes won't do anything.