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.

Trigger update one field when another field is modified

Featured Replies

  • Newbies

Hi, we're running FM8.5 here, and it has been thrown into my lap when the person who had a basic understanding of it left our company. My knowledge of what can and can't be done with FM is extremely limited (I'm a SysAdmin by trade), so please bare with me.

In one of our tables we have a field called 'order_status', on the layout, it is in the form of a drop down box. What I'm looking to do is populate a second field called 'Process_date' (in the same table), with the current date, when 'order_status' is set to a specific value (in this case, 'Paid'). I know how to do this with the likes of MySQL, Postgres, etc, but have come up empty with trying to figure it out for FM (I must not be asking Google the right question :P ). Is this possible? If so, can someone point me to a resource on this topic? TIA

Edit: Sorry, I didn't notice until after this posted that the "Server Forums" are only for FM Server 9 and up.

Edited by Guest

Click File->Manage Database

Choose the table that contains the 2 fields.

Highlight 'Process Date' and click on options.

Click the Auto Enter tab.

Click auto enter calculation.

enter the following:

Case(Order_Status="Paid";Get(CurrentDate)

Click 'OK' and the uncheck "Do Not Replace Existing Value."

hth

  • Author
  • Newbies

This worked perfectly, TYVM.

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.