March 14, 201312 yr 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! Â
March 14, 201312 yr 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.
March 14, 201312 yr Author 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.
March 15, 201312 yr Solution is the field on the layout ? it has to be for copy to work global to standard field will not matter
March 28, 201312 yr Author That was what I was missing. Placed the field on the layout and it's working fine. Thanks a bunch!
Create an account or sign in to comment