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

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

Recommended Posts

Posted

I am wondering if I can force the user to close a window only with a button I put in my layout.

So the user can't use the icon in the corner of the window or the keyboard equivalent.

Or is there a way to make sure that a certain event happens before the window closes. Say I have a popup window where data is entered. Before the window closes I need to write that event and the content of what was enter into a log record. I can make this happen by using a done button the writes to the log then closes the window. But if the user closes the window in some other fashion my write script won't execute first. Any thoughts? TIA

Posted

Instead of a plugin, I script it. First, I set Allow User Abort to Off. Second, I put a pause(indefinitely) step any time after the open new window step. Third, I put a close window step after the pause step.

On my layout for the new window, I have a Close button that simply resume's the script.

Woilia, the user cannot close the window without hitting the close button.

I use other variations this, but this is the most basic set up.

Posted

Also, in response to your second question, you can always dissallow users to close the window by scripting an error message that would pop-up if they don't enter or do certain things in the open window.

For example, I have an appointment layout that requires that they enter a start and end time (or all day). If they don't enter the appropriate info, a dialogue window pops-up and tells them they must do. This validation is done through a loop sequence after the person hits the done button. The window remains open (and unable to close) until the person does it correctly, or simply hits the cancel button I have on the layout.

Posted

Kevh72 - That sounds easy enough. Thanks for the input.

RalphL - That's an awsome plug in. I haven't used any plugins yet, but I could deffently see where that type of control would come in handy. Thanks for the advice.

This topic is 7161 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.