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.

Featured Replies

I have a simple date search:

global (startdate), global (enddate) and a Search script that throws that into a find on a list of records.

works just fine, but the startdate and enddate global fields always retain their old values and never update.

minor, but I don't want my clients to scroll months ahead to get to the current date.

Maybe i'm doing the whole thing wrong, any advice?

Update:

I forgot to say, they do update for the search. Upon exiting filemaker and going back in, they default to old values.

A global holds the value it contained when it was last open in a locall machine environment. When you serve it up on a server, it still holds that last value. Pull the file off your server and open it locally, clear the global fields, close it, then reserve it. Or you could initialise them on startup with an open script that sets them to "".

Or you can set both values in the opening script to Get ( CurrentDate )

Or you can set both values in the opening script to Get ( CurrentDate )

Why not to empty ?

Good question, Daniele. My thinking in (appropriately) red, LOL:

... but the startdate and enddate global fields always retain their old values and never update. Update to what? Probably current date.

I don't want my clients to scroll months ahead to get to the current date. Confirms it is current date AND that it is probably tied to a drop-down calendar since scroll was mentioned.

That's why I answered as I did. If you want it always to open on empty then Ron's suggestion takes care of the other end ... set to empty as stand-alone and leave it be. I was covering the other end. One could also use auto-enter (replace) yada yada but I thought startup was easier since most Developers use startup script and set variables and/or globals at that time. :laugh2:

When starting empty a drop down calendar defaults to the current date to start with so the second issue is resolved. :)

Indeed! I missed that point! So just empty the globals stand-alone. Thank you, Ron.

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.