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

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

Recommended Posts

Posted

I have a layout, which is pretty basic. By choosing some global variables, then clicking "save" it will increment a count in the table for that day.

Multiple users will be using this... where I am seeing some issues, is if 2 or more people click the "save" button at the same time... it will still execute, but give them an error message about locked record, until the other person finishes.

Is there a command or step in the script that can accomodate if multiple users try to run the script at the same time, without flagging any errors?

Posted

The Open Record step is probably what you are looking for. You will need to combine this with setting ErrorCapture to ON in your script.

Basically if you try to Open the record and it yields an error then the record is already locked by another user. Display a dialog box to advise the user.

Don't forget to Commit Record at the end of your script.

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