Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Trigger update one field when another field is modified


This topic is 5798 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted (edited)

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
Posted

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

This topic is 5798 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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