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

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

Recommended Posts

Posted

Hi, once again!

My issue today is about the #20 error code and how to get over it. Here's the case:

Currently I have a layout with OnLayoutKeystroke enabled for arrow navigation, which is called by a script that makes it modal (Let's call it MAIN). - (Looping until an OK or CANCEL script result is returned)

The script running for navigation (called by the OnLayoutKeystroke trigger) also has a definition for when ENTER/Return is pressed, to select the current record and capture some variables. It is scheduled to then exit with an OK result, and should make the MAIN script exit the Loop (By an ExitLoopIf(get(scriptresult)="ok" or get(scriptresult))).

But unfortunately it returns an error code #20: "Command/operation canceled by triggered script"

Can someone explain why is this and what should be done to avoid it (otherwise the ExitLoopIf doesn't work)?

Suspicion: Does this have to do with the fact that the triggered script results to OK and not 0 or 1?

Posted

Please attach a copy of your file, or a make a mockup of it and attach that, so we can see what it is that you are trying to do.

Lee

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