Tom R. Posted March 14, 2013 Posted March 14, 2013 I have a script that calculates an area-weighted average for a selected set of records. The script calculates the correct result, but I'd like for the script to copy the result to the user's clipboard so they can paste it into another program. What I tried, and what isn't working so far, is that I created a global field, SCRIPTRESULT, and set the global field to the result. Then I used the "Copy" script step, with the "select entire contents" option checked. the SCRIPTRESULT global field is in the same table as the records the script is processing. Â Any tips for accomplishing this? Â Thanks! Â
No_access Posted March 14, 2013 Posted March 14, 2013 Is the save record changes automatically checked? can you try adding a commit record after set field ? On my windows machine, I have no problem, using copy. but this is just a thought.
Tom R. Posted March 14, 2013 Author Posted March 14, 2013 Thanks for your reply. I added the commit record script step, but it's still not working. I just noticed in the debugger that the Copy script step is generating error 102 - "Field is missing". Not sure why that's happening since, as you can see in the thumbnail, the correct field is specified, and I can tell with the data viewer that the field has been set to the value. I also tried changing the field from a global to a standard field, but am getting the same result.
No_access Posted March 15, 2013 Posted March 15, 2013 is the field on the layout ? it has to be for copy to work global to standard field will not matter 1
Tom R. Posted March 28, 2013 Author Posted March 28, 2013 That was what I was missing. Placed the field on the layout and it's working fine. Thanks a bunch!
Recommended Posts
This topic is 4327 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