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.

Registering which user edited a record

Featured Replies

Hello folks,

 

 

Please forgive me if this topic is the wrong place.

 

My problem is this:

 

I have a customers database that stores data like: name, address, taxing number, etc...

 

I have a field that is an auto enter calculation that registers who created the record using a simple "Get ( AccountName )".

 

I would like to register who edited the record for the last time, or if possible create a log of dates and who edited the record.

 

Can you please show me how to achieve this?

 

Thanks,

Are you still using v6 or have you updated to a newer vesion?

 

Is your current edition of FileMaker “Client” if you have updated?

Edited by Lee Smith
add edition

You might want to do this search on Google for Audit and Field Modification.

  • Author

Are you still using v6 or have you updated to a newer vesion?

 

Is your current edition of FileMaker “Client” if you have updated?

I am using FM 11...

Create two fields in your table ModifiedBy and ModificationTimestamp. In Layout Setup, attach an OnRecordCommit script trigger and point it to this script

 

Set Field[ModifiedBy; Get(AccountName)]

Set Field[ModificationTimestamp; Get(CurrentTimestamp)]

 

If you want to keep a log, create a log table.  Add the following steps to the script:

 

Set Variable[$RecID; YourIDfield]

Go To Layout ["LogTableLayout"]

New Record/Request

Set Field[LogTable::LoggedID; $RecID]

Set Field[LogTable::ModifiedBy; Get(AccountName)]

Set Field[LogTable::ModificationTimestamp; Get(CurrentTimestamp)]

Go To  Layout[Original Layout]

  • Author

Hello Doughemi,

 

Thanks, it solved my problem.

 

Many thanks!

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.