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

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

Recommended Posts

Posted

I have a script that is copying data from a field on one file, and pasting it into a field on another file. I have a portal that is looking at the information on the file where the data is being pasted. When I click on the button that runs this script and goes to the layout with the portal, I get an error message saying "This record cannot be modified in this window because it is already being modified in a different window" and the script is not completed (it copies but not pastes). But if I click the button a second time, it works fine.

What do I have to do to make it work the first time round???

Posted

Have you tried using Set Field (with a relationship or global) instead of Copy/Paste?

Posted

Unless it is a container or result of copying all records, I can't think of a reason why it wouldn't work. What exactly is being copied?

Posted

I am copying the input of a job cost, an edit box. As well as the selection of yes/no from a drop down list for invoicing, and same again for payment.

Posted

Okay, all three could be set to globals and referenced by the other file, as long as you have a File Reference for the first file. You could even simplify it by putting the layouts in the same file, since you can create layouts that reference TOs for other files. Of course it would be easiest if you had a relationship between the TOs or could force one to be valid for setting the data.

I don't see the need for Copy/Paste. However, you could try adding a Commit Records/Request step after each of your copies.

Posted

If I click outside the field before I click the button that runs the script, it works fine and there is no error message. I tried making it go to another field in the script, but that didn't work. How do I do the equivallent of clicking outside the field in the script to avoid the error messages?

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