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.

Getting year into Perform Find

Featured Replies

I'm writing a script which contains the step Perform Find[]. I want to perform the find on a field called Year, which contains, obviously, year values. How can I get the current year value into this Perform Find? I could do it if I had access to a Calculation field with Year(Get(CurrentDate)), but it appears I don't.

Edited by Guest

Set Field[Year, Year(Get(CurrentDate))]

  • Author

Specifying that calculation to find a record does not work. I know that is the correct calculation to get the current year, but how do I put in a Find request for the current year? If I ented any sort of calculation data into the find request, FileMaker does a literal search on "Set Field..." in the Year field.

  • Author

Wait, I see now what T-Square meant. I was locking myself into constraining the found set, but I didn't realize I could do Enter Find Mode, Set Field instead. I learned something! :)

Elford--

Sorry I was so oblique. I should have given you more context. And yes, I meant put that step into your script, thus:

Enter Find Mode[]

Set Field[Year, Year(Get(CurrentDate))]

Perform Find[]

Cheers!

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.