Skip 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 field from one record to another

Featured Replies

  • Newbies

Hi, I need to write a script that (based on a unique key defined by user in a field of the current record) copy a field from the record that match the key in the same field in the current record.

E.g.: I have a table "Contracts", the user is inserting a new contract, he choose another contract by a self-relationship of the table "Contracts" and my script have to copy the field "PaymentMethod" from the other contract in the current contract.

This is only an example to simplify the understanding, the real problem is more complex.

Thanks in advance.

How about

Set Field[PaymentMethod; SelfJoin::PaymentMethod]

Note that this method requires that one of the predicates in the selfjoin relationship is Contracts::ID ≠ SelfJoin::ID.

he choose another contract by a self-relationship of the table "Contracts"

If you have a self-join relationship of the Contracts table, then all the data from the related record is available through that relationship. Not sure why you would need to copy it.

Note that this method requires that one of the predicates in the selfjoin relationship is Contracts::ID ≠ SelfJoin::ID.

I am not sure of that - I think it depends on what the self-join relationship is based upon.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.