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

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

Recommended Posts

Posted

I have assigned a script to a button, but when I click the button, I receive the error message that says this script can not be found or has been deleated. HOWEVER, after I click OK on that message, IT RUNS THE SCRIPT. I have tried deleating the button and recreating it, and reassigning the script but I still get the same error message. Any suggestions?

Posted

Hi Kristen,

If you could provide your script, it would help but I would guess that you may have a sub-script within your main script and the sub-script has been deleted. Or it references an external script to a related db which has been moved to another location. And so, after clicking okay, the remaining portion of your main script continues to run. smile.gif

Cheers,

LaRetta

Posted

I thought of that also, but I checked all of the referenced fields, databases, and relationships and they still exist. This is the script:

Set Field[buyerConstanat::zv.layout.g, Status(currentLayoutNumber)]

If [not is empty(BuyerNumber)]

Go to Related Record [buyer]

Perform Script [External Buyer.fp5, "OPS: Enter Buyer"]

Else

Show Message [buttons: "OK", "Cancel",""; Data: "You must first enter a valid BUYER NUMBER for this vehicel."]

End If

THANK YOU

Posted

Go to your Buyer.fp5, open Scripts and look at your script called OPS: Enter Buyer. If it's there, check it for sub-scripts. Repeat as necessary through all sub-scripts and their sub-scripts. smile.gif

It's one of the pitfalls of including Perform Scripts from within a script (chaining scripts). There are many benefits however, so I'm not against it ... particularly when logical or for external scripts, but I tend to write complete scripts whenever possible. It reduces the possibility of this type of problem.

LaRetta

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