September 20, 200322 yr 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?
September 20, 200322 yr 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. Cheers, LaRetta
September 20, 200322 yr Author 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
September 20, 200322 yr 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. 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
September 20, 200322 yr Author THAT's IT! Thank you. There was a missing sup script within the subscript that was causing this. Thanks a ton...
Create an account or sign in to comment