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

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

Recommended Posts

Posted

Happy New Year, everybody!

Please refer to the attached .pdf for the script.

The hang-up is the highlighted script instruction under Get(LastError);) for some strange reason, the Set Field command won't change the text in the Record::Incident_Tab_Message text field to "No Records Found." I pulled highlighted line of code out and just made a quickie script button out of it and it works fine that way, so I suspect it has something to do with the Perform Find request, but I don't know.

I bet the answer will be sooooo simple I'll slap my forehead silly. TIA for your help!

File_Error.pdf

Posted

Well, one thing that I notice (although your TO naming convention doesn't allow me to see how your tables are related) is that you are finding in the "Latches" TO, and Setting in the "Record" TO. Perhaps you have a context issue?

Posted

Hy,

when no records are found, "setField()" only will work with global stored fields. Try to switch this field to global stored or select one record on which you can set the field.

Abend, Martin:

Thank you--that did the trick.

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