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.

world time field

Featured Replies

Hi -

I have a calculation field to show local time where my clients are, based on a time difference field in each of my client records. The calculation is: Time(Mod(Hour(Get(CurrentTime)) + Time difference;24); Minute(Get(CurrentTime)); Seconds(Get(CurrentTime)))

This field only updates when I make a change, such as clicking in the field, or resizing the window, even though I have the 'unstored' option selected in the calculation. How can I make it update itself continually to show current (local) time?

Unstored calcs do not continuously update. Are you really using FM7? I believe you'll need FM8.5 at least to use the WebViewer to show this clock: http://www.clocklink.com/world_clock.php

  • Author

You're right - forgot to update my profile. I'm using FP9.

Interesting world clock, but it doesn't suit my purpose. Attached is a screenshot of the portal where I want local times to show. The pink column shows the time difference (this is entered when the client record is made). I want the clock in the header to show current time, and the clocks in the right hand column to show local times. Alright, it's an easy calculation to make myself, but that's what filemaker is for, isn't it?

Any ideas how I might achieve this? As I say, it works currently, but only updates itself when I resize the window.

clocks.jpg

The basic obstacle you face is that FM won't update unstored calcs in real time. They update on refresh (such as resizing the window, switching layouts). It'll incure a lot of overhead to force a periodic refresh, imho. I'm out of ideas.

I found a CF that might help: http://www.briandunning.com/cf/1079

and this thread:

http://filemakertoday.com/com/showthread.php?11494-How-to-display-Real-time-Clock

the post about a robot machine and a one record pref record might be the way to go.

Edited by Guest
added another link

  • Author

Thanks for your help- I'll check those out.

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.