Jump to content

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

Recommended Posts

Posted

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!

 

post-86592-0-23821100-1363289965_thumb.p

Posted

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.

Posted

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.

Posted

is the field on the layout ?  it has to be for copy to work

global to standard field will not matter

  • Like 1
  • 2 weeks later...
Posted

That was what I was missing. Placed the field on the layout and it's working fine.

 

Thanks a bunch!

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 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.