Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OnTimeout & OnLoad
Dean, having some issues using OnTimeout to load an overlay. I have an IV, Test, that has a widget, FrontDoor.

In the Test OnLoad action event, I set a timeout.

[Image: Capture.jpg]

In the Test OnTimeout action event I check a boolean value from a field and if the field is true, I am trying to load an overlay in to the FrontDoor widget located in the Test IV.

Line 3 log event logs the value of the boolean field but when it's true, the System::Equals is never "hooked" despite the value being true.

Is one not able to load overlays from this action event or am I doing this incorrectly?

[Image: Capture2.jpg]
I don't think you should even be able to add that command in the OnTimeout, though you may get around it by cutting and pasting. If it does let you add it, that's not the intention. Trying to load an overlay like that is fraught with issues, so I don't try to deal with it.
Dean Roddey
Explorans limites defectum
you can add the command just fine without copying/pasting. Any recommendations? I'm trying to load an overlay that contains a camera widget if a boolean field is True.
A common way to do this is to create an overlay that is hidden most of the time, and show it when the field is true (use a state for that.) Have a button on the overlay that clears the field, which will make it hide again.
Dean Roddey
Explorans limites defectum
Thanks. I had tried that but when I hide the overlay the camera widget in the overlay still remains.
That shouldn't be happening, so something is awry there. The overlay is supposed to tell all its children it's being hidden so that they can do something if need be. I'll look at that.
Dean Roddey
Explorans limites defectum
thanks for looking.
Hey Dean Bumping this topic. Did you have a chance to look. What exactly, are the allowed actions that should be available in OnTimeout?
I use OnTimeOut() on my main template, and would love to have a LoadOverlay() to go back to the main overlay, but since that isn't available, I use the LoadNewTemplate() and load the main template again.  

The reason I do this is because I never liked the Blanker option.  On my setup, after a 5 minute delay, I wanted my IV to go back to the main screen, and while it was waiting for a touch to display again, I display a screen show of family photos.  If someone touches the screen, it is back at the main screen.  An overlay would work better, but I can live with this.
In the Action Editor for OnTimeout, I can see these IntfViewer commands which are available:

[Image: Screen-Shot-2020-05-11-at-14-11-07.jpg]

Possibly Related Threads…
Thread Author Replies Views Last Post
  Having a problem with OnTimeout DaveAlvarado 4 1,442 08-14-2009, 04:09 PM
Last Post: jkish
  Rqst: OnExit template command (anti-onLoad) IVB 2 1,715 03-23-2008, 03:09 PM
Last Post: IVB
  OnLoad of an overlay zaccari 8 2,623 11-13-2007, 10:31 AM
Last Post: zaccari

Forum Jump:

Users browsing this thread: 1 Guest(s)