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.

Date Help

Featured Replies

  • Newbies

I thought I used this piece of code successfully in a Filemaker 8.5 script, but I can't seem to get it to work in Filemaker 9.

I'm trying to flag records as being new (imported into the database that day).

If [Get (CurrentTime) = assets:creation_date]

Set Field [assets::status; "NEW"]

Else

Set Field [assets::status; ""]

End If

Where assets is the table with my records and creation_date is the record creation date.

I hit run and nothing happens. Any help would be appreciated.

--jon

Welcome to the forum.

If [Get (CurrentTime) = assets:creation_date]

Set Field [assets::status; "NEW"]

Else

Set Field [assets::status; ""]

End If

Don't you want:

If (assets:creation_date = Get ([color:red]CurrentDate)

Set Field [assets::status; "NEW"]

Else

Set Field [assets::status; ""]

End If

?

Edited by Guest

You could also make the status field an unstored calculation, and eliminate the flagging process (which is always problematic in a multi-user scenario) altogether.

  • Author
  • Newbies

Worked like a charm.

Many thanks.

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.