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.

Custom Function to track what layouts are being accessed

Featured Replies

Our company has been using FileMaker for at least ten years. Over the years, we have implemented 64 FM files on our server with thousands of layouts. We feel confident that a very large number of those layouts are actually no longer used. However, we don't know which ones.

Each layout has a unique name. Is there any way whatsoever to put some function or script into each Filemaker file that actually tracks each time a particular layout is accessed? This way in a month or two time we could possibly get a good idea of what layouts are being accessed and which ones aren't. This function would need to be able to track layouts that are accessed both by users or scripts.

You could try adapting BackMagic from SeedCode for this.

Or if you had FileMaker 10 it would be fairly straightforward with script triggers (of course you can trigger scripts on layout load in earlier version using a plugin).

Another method I've seen is to put a tiny web viewer on each layout that hits a Google Analytics page. That's kind of a fun way to go and you get more info with less work.

Short of a plug-in, it may be impossible to add a layout tracking method without adding something (e.g. layout script trigger, field or web portal) to every one of the thousands of layouts that you want to track.

But if you are able to reliably identify a small set of calculated fields that already appear on each layout, you may be able to redefine them to add the appropriate global script variable assignment in Let() used for tracking.

Edited by Guest

  • Author

You could try adapting BackMagic from SeedCode for this.

Or if you had FileMaker 10 it would be fairly straightforward with script triggers (of course you can trigger scripts on layout load in earlier version using a plugin).

Another method I've seen is to put a tiny web viewer on each layout that hits a Google Analytics page. That's kind of a fun way to go and you get more info with less work.

Would your web viewer idea only work if these layouts are accessed through Filemaker Web Service, or would they also work by accessing the layouts from within Filemaker Pro itself?

It works just fine from within FileMaker. You'd send the layout name as part of the web viewer URL. I believe there was a DevCon session about this a few years ago.

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.