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.

I have problems with date finds... Help!

Featured Replies

Here are my fields:

"Date" is defined as a date field in File A

"gDate" is a global (date) field in File B

And this is what I'm trying to do:

Enter Find Mode []

Set Field ["Date", "">="&File B::gDate"]

Perform Find [Extend Found Set]

But I noticed that it instead inserts weird numbers with "/". What is the proper way to insert a " >= " in a date field?

Thanks,

Chard

Hi Chard,

I have *not* tested this, but I think you need to use the TextToDate in your Set Field:

Try

Set Field ["Date", "">=" & TextToDate B::gDate"]

HTH

Lee

smile.gif

p.s.

Make sure your gDate is formatted as a Date Field.

Lee wink.gif

  • Author

Hi Lee!

Nope, I tried the TextToDate function and checked that all fields are date fields and the other is a global date field, but it just inserts a "?" in the date field in Find Mode. Any other ideas? I'm really stuck with this thing.

Chard laugh.gif

  • Author

Just an update on my problem. I don't know why, but I tried this:

Insert Calculated Result ["Date", "">=" & DateToText(File B::gDate)"]

But it works for me!

Does this mean you can't use Set Field when using "&" in Find Mode?

This is where Insert Calculated Result comes in. Any time you're setting a field with an expression that doesn't exactly equal the field's format (mostly date and time fields) use Insert Calculated Result. This will not try to force the result into a date or time format, as Set Field will.

Insert Calculated Result [Date, ">=" & DateToText(gDate)]

or Insert Calculated Result [Date, ">" & DateToText(gDate - 1)]

Shot, I overlook that we were trying to set a date field. d-oh.gif

You can't use "Set Field" with a Date, it has to be Insert Calculated result. I tested this one and it seems to do what you want.

Go to Layout [original layout]

Enter Find Mode []

Insert Calculated Result [select,

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.