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.

Record modification creates a new record in a related tables

Featured Replies

Hi,

I have no idea how I can make something like versioning of a field. I have 2 tables. The first one with products related to tabled with prices. I'd like to store every change of a price in the second one. 

Hi Spand,

You will need a table for the change. Every time a change is made to the field containing the price you should use two triggers:

  1. On Modify to grab the previous value (store it in a global variable)
  2. On Save to grab the new value (store it in a variable)

Then you can make your script store these in your change table (Price_Log, e.e.g) with the timestamp and the modifying account.

So you'll need two scripts that perform these functions: one for the on modify trigger and the other one to store the values in your log table.

Also, before an admin "yells at you" please fill out your profile so we know what version of FileMaker and OS you are on.

 

Hope this helps,

Create an account or sign in to comment

Important Information

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

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.