Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5100 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have created a script that pops up a custom dialog box warning the user that they are about to be logged out due to being idle beyond allotted time. I have set up a Install OnTimer script that initiates the custom dialog box warning and if the user hits OK then it resets the Install OnTimer Script and they have bought more time. The problem I'm having is that if the user doesn't hit the OK button and is idle too long the script is paused indefinitely and I can't close the dialog box and thus log-out the user. How might I get around this?

Posted

Don't use Show Custom Dialog[].

Use a dedicated layout conveying the message and having the appropriate "dialog" buttons.

Pause the script for the time you desire to use as a timeout for the dialog.

If you are particularly crafty, you can put a Web Viewer on the layout with some JavaScript displaying a countdown. This is more elegant than refreshing a layout in a script loop.

This topic is 5100 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.