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.

Maintaining a logfile of deleted records

Featured Replies

  • Newbies

New to Filemaker so would appreciate some advice. Each time I delete a record in the main database I want to write a copy of it to an associated journal file. How should I go about this ? Thanks, Arthur

Make your delete function a button that runs a script. The script will isolate the record to be deleted as a found set of one. If you are always working with all records displayed, the script could be as simple as Omit Record, then Show Omitted.

If you are working with a subset of data, then your script will need to copy the unique ID, Enter Find Mode (restore off), Paste or Insert the copied ID into ID field, and Perform Find (restore off).

Now that you have only the one record as a found set, add a Perform Script (External) command. This will run a script in the associated journal file that will import from your main file. Set this up by running a manual import on a sample record from the associated file, to set field mapping, etc. When importing from one FM db to another, it will always import whatever found set is available in the source file. Once you've done it manually, make a one-line script in the associated file that is the Import script function (restore on). This will be the external script you call.

Now that the record has been imported, your next command after Perform Script (External) would be to Delete Record (dialog off). Then, possibly, Show All Records to avoid leaving the user with a found set of zero.

The effect, when clicking the button, is that the record vanishes and simultaneously appears in the associated journal.

Steve Brown

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.