Darrell Posted April 20, 2003 Posted April 20, 2003 I have 2 fields (Pickup Dest) and (Transport Dest) When a record is first generated the use puts the infor into the pickup and the transport fields. What I am trying to do is when they generate another call I wnat the information form the Transport Dest fiels to go into the Pickup Dest Field and the pickup Dest Field to go inot the transport Dest field. I made a script the cuts the info from the pickup field and paste it in a field called temp field1 and then I do it again for the dest field to paste it in a field called temp field2. I then cont the script and have it cut the info in temp field 1 and paste it in Pcikup and vice versa ( I hope I haven't confused anyone to much) Anywya I run the script and it cuts the info from the Pickup filed But I don't see it pasting that info in the temp field, IN fact after it cuts the info in both fileds it doesn't paste. What am I doing wrong and should I use soemthing else to do this instead of a script? Thanks for the help
LiveOak Posted April 20, 2003 Posted April 20, 2003 Two things to remember here. First, a field must appear on a layout for a paste to succeed. Second, you temporary storage field MUST be a global field, if you are moving between records. If temp field1 and temp field2 are regular text fields in Record 1, you copy and paste to them (only cut if you want to destroy the contents of the original field!), then move to Record 2, temp field1 and temp field2 will not contain the information you wish from Record 1. I'm assuming here that "another call" means another record in your file. My first choice would be to use your approach of temporary fields (global fields this time) and use a SetField[] script step instead of cut or copy and paste. Cut and paste are best to avoid, as other system functions tend to use the clipboard and can create indeterminate results in some situations. -bd
Darrell Posted April 21, 2003 Author Posted April 21, 2003 OK I am a rookie at this,so bare with me. I have made the 2 temp fields Globalbut I do not know how to setup the Setfield Script and do the calculations.
LiveOak Posted April 23, 2003 Posted April 23, 2003 The SetField script step is simple. Take a look at the FM manual and the built-in help. The use of SetField to move data from one field to another is pretty simple. To copy fieldA into fieldB: Set Field["fieldB", "fieldA"] I think the FM manual and the many FM books might be of help. -bd
Recommended Posts
This topic is 7889 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