Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Copy and Paste script

Featured Replies

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

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

  • Author

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.

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

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.