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

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

Recommended Posts

Posted

I have a script that pauses for the user to enter a field. The user at times wants to exit this script without entering any information. Is there a way to cancel this script without hitting the cancel button manually?

Posted

Obviously the user must do something to exit the script, why not the cancle button. Depending ont he situation you could pause the script for a set period of time the exit automatically.

Knowing what your script is intended to do, what are the users options, and why the user woud want to cancel, would help to better answer your question.

Posted

Sure, you can, for example, use


Loop

[color:"white"]__[/color]Pause/Resume Script [ ]

[color:"white"]__[/color]Exit Loop If [Length(field)]

[color:"white"]__[/color]Show Message ["Do you want to cancel?"]

[color:"white"]__[/color]If [status(CurrentMessageChoice) = 1]

[color:"white"]____[/color]Perform Script [sub-scripts, "Cancel"]

[color:"white"]__[/color]End If

[color:"white"]__[/color]Go to Field ["field"]

End Loop

Assuming your choices in the Show Message are "Yes" and "No", and that the Cancel script has a Halt (or a call to a Halt) in it.

Posted

The script is in find mode. It automatically goes into find mode when you enter the clerking layout. Sometimes the user enters the layout and decides that they don't really want to be there and hits the menu button which is also a script and leaves the current layout, but the script that was active when they entered the clerking layout is still active and hasn't been cancelled out yet.

Is there a way to cancel the script using the menu button script without hitting the cancel button manually.

Posted

In the script that is attached to the Menu button insert the Enter Browse Mode script step at the beginning and the Halt script step at the end. Make sure the button itself is formatted to Exit the current script.

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