Cat8 Posted October 6, 2004 Posted October 6, 2004 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???
-Queue- Posted October 6, 2004 Posted October 6, 2004 Have you tried using Set Field (with a relationship or global) instead of Copy/Paste?
Cat8 Posted October 6, 2004 Author Posted October 6, 2004 yeah, set field doesn't work in this situation.
-Queue- Posted October 6, 2004 Posted October 6, 2004 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?
Cat8 Posted October 6, 2004 Author Posted October 6, 2004 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.
-Queue- Posted October 6, 2004 Posted October 6, 2004 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.
Cat8 Posted October 6, 2004 Author Posted October 6, 2004 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?
Cat8 Posted October 6, 2004 Author Posted October 6, 2004 Yes! It works... thank you thank you thank you!!
Recommended Posts
This topic is 7615 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 accountSign in
Already have an account? Sign in here.
Sign In Now