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.

Script trigger for conditional formatting

Featured Replies

I am working in FM Pro Advanced 9 and trying to conditionally highlight a record in list view when it is the active record. I have the formatting set up so that when a global variable = the record ID, the row highlights grey. I also have written a script that sets the global variable to the record ID of the active record. However, I cannot figure out how to trigger this script every time a record is active in the layout. Basically, if I had FM 11, I would pick the "onRecordLoad" trigger, but of course, I can't do that in FM 9. Any recommendations? I know I'll probably need to use a plugin, but which one should I use and since I'm not very familiar with how they work, can you also explain how to incorporate it into the database? I used myDoScript once and it took me FOREVER to figure out where to put the calculation since the documentation is not written for newbies... Thanks in advance!

  • 1 month later...

The zippScript plugin was a favorite back in the day, but is sadly no longer available. I don't know that there are significant differences between the free options.

http://filemaker-plugins.com/features/script-triggering/

What you will need is an unstored calculated field that includes the Get(RecordNumber) function, which should evaluate when you change records in the list, thus triggering your script. The actual calc will depend on which plugin you use, but probably something like:

Case( Get(RecordNumber) <> $$previous ; "" & /*plugin function here*/ )

The plugin function would specify which script to run. In the script you'd set your global variable as you indicated; in the example above I called it $$previous. Your script may also need a Refresh step (Freeze may work instead of Refresh).

See:

http://fmforums.com/forum/topic/53590-highlight-active-row-in-list-view/

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.