Jondb Posted February 9, 2010 Posted February 9, 2010 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?
bcooney Posted February 9, 2010 Posted February 9, 2010 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
Jondb Posted February 9, 2010 Author Posted February 9, 2010 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.
bcooney Posted February 9, 2010 Posted February 9, 2010 (edited) 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 February 9, 2010 by Guest added another link
Jondb Posted February 9, 2010 Author Posted February 9, 2010 Thanks for your help- I'll check those out.
Recommended Posts
This topic is 5495 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now