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.

Need Help with a MAX Script

Featured Replies

Hello All,

I wrote a script using script maker that performs a find, but I need it to only find items with the most trecent week. My DB is set up to set items with an ID for each week number, each week ID being higher than the previous. Is there a way I can insert a symbol in the "perform find" part of the script to only return the MAX number of week IDs?

Thanks for the help!

You can create a self join relationship with the 'X' operator and then have

Set Variable [$LastWeekNum; Max ( SelfJoin::ID )]

Enter Find Mode []

Set Field [iD; $LastWeekNum]

Perform Find []

But, doesnt it make more sense to do a search based off the current date minus how ever many days, rather than setting a field with the last week number?

  • Author

Is there a way to pull up the MAX record in a layout in Find Mode?

Thanks!

No, not really. You have to be in Browse mode to look at data, and you need to store the piece of data you need for the find in a global field or in a variable, as John has shown.

A somewhat simpler procedure, that doesn't require adding a relationship or anything:

Show All Records

Sort Records [ by weekfield, ascending ]

Go to Record [ Last ]

Set Variable [ $max ; weekfield ]

Enter Find Mode

Set Field [weekfield ; $max ]

Perform Find []

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.