Lee Smith Posted July 21, 2004 Posted July 21, 2004 Place the Fields you want to copy on a separte layout, and then Use the Script Step Copy All Records Lee
Damocles Posted July 21, 2004 Posted July 21, 2004 I defined a global field as "Email_Text" then used (as you mentioned) an "Insert Calculated Result" to create the text of the email. In the "Send Mail" script step, just specify that the message is the "Email_Text" field. Works fine.
Fenton Posted July 21, 2004 Posted July 21, 2004 The trick is don't have your cursor in a field (click on background or hit Enter; in a script, Exit Record/Request), then Copy. You'll get all the fields on the current layout, in order, separated by tabs. (In version 7 I just noticed that calculations are returned to 15 or 16 decimal places, ignoring the custom format on the layout, whereas 6 seems to respect it. 7 also seems to return ? for a container field, whereas 6 just ignores them. You'd want a dedicated layout for this operation.)
Damocles Posted July 21, 2004 Posted July 21, 2004 I was reading Lee and Fenton's solutions (and trying them out since it was new information for me! ) and noticed that I answered a question different than the one that was asked. If you are manually creating an email and want to be able to paste the text from six fields, using a global with an "Insert Calculated Result" script step will work, but instead of using a "Send Mail" script step, use the Copy[Email_Text] step to get the text to your clipboard. Paul
RossP Posted July 21, 2004 Author Posted July 21, 2004 Good idea, Damocles. I'm guess you can also incorporate this with what Lee suggested. Have a global field which is a calculation of the how-ever-many fields you want to copy. Have a layout with this global field on it and then a script which "copy records" from that layout. This way you can get around the automatic "Tab" spacing that simply copying all the fields together results in. Cool beans.
Lee Smith Posted July 21, 2004 Posted July 21, 2004 If you are just wanting to paste the data directly into an email, the script step puts the data on your clipboard, so all you would have to do is paste it in the body of your email program. If you need to do other things with it, then you may want to paste the results into a field in your layout, or have a concatenating calculation field. HTH Lee
bruceR Posted July 23, 2004 Posted July 23, 2004 Copy all records won't work. It will copy all records. That's not what the user asked for. If you use the copy command while no field is selected, then all the fields from the current record/current layout will be put on the clipboard in tab delimited format. But it would be better to use a script or calc field to put the data together the way you want.
Lee Smith Posted July 23, 2004 Posted July 23, 2004 Bruce said: Copy all records won't work. It will copy all records. Yes it will work, I use it all of the time. All you have to do is to isolate the record, or records that you want to copy before activating the Script Step. I use a method by which I first "Mark" the records to be copied, perform a Find for the "Mark" records, and then use the Script Step Copy All Records. That's not what the user asked for. If you use the copy command while no field is selected, then all the fields from the current record/current layout will be put on the clipboard in tab delimited format. But it would be better to use a script or calc field to put the data together the way you want. My first response suggested that Ross place the fields to be copied on a separate layout to be used for this. BTW, if it is always going to be just the Current Record, then Ross could also substitute the Script Step of "Copy Record" for "Copy All Records" and accomplish the same thing. Lee
Recommended Posts
This topic is 7431 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