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.

Set Field [] vs. Insert Calculated Result

Featured Replies

From Comment's post waaaay back in 2007:
 

I don't know why you bother with the times - Filemaker will do it for you*. Just enter the search criteria as a date range:

YourTable::YourStartDate & ".." & YourTable::YourEndDate

BTW, it's preferable to use Set Field[] instead of Insert Calculated Result. [my formatting]

-------------------------

Why is Set Field [] preferred? 

28 minutes ago, WF7A said:

Why is Set Field [] preferred? 

Because Insert Calculated Result[] requires the target field to be present on the current layout, while Set Field[] works entirely at the data level. Therefore Insert Calculated Result[] is more suitable in situations where the script's purpose is to assist the user in data entry. In a situation like the one described in the linked thread, where user entry is (no longer) required, it is better to bypass the layout level and avoid the risk of breaking the script if the field is removed from the layout.

 

Edited by comment

  • Author

Ah! Thanks!

10 hours ago, Ocean West said:

insert calculated result to a variable is still an option

I don't know if "still" is the right word to use here, since it is a relatively new option. I don't think it even existed back then.

But yes, if you use a variable as the target, then of course you're working at the data level. And then the comparison is to Set Variable[], not to Set Field[] as above. And if you also select the Select entire contents option, then those two are identical (at least conceptually, if not performance-wise).

 

 

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.