Page 1 of 1

Day view, display only

PostPosted: Wed Nov 27, 2013 6:29 am
by Jan Bayer
Hello Seedcode,

I'd like to have the possibility to display the day view, and update that automatically, every 30 min or so. I would like to do so from a dedicated User/PriviligeSet on a dedicated computer, that accesses our FMserver-hosted calendar. I've tried to look at (and understand) the InstallOnTimer script approach, to no avail … Could you point me in the right direction. I'd be especially interested in finding out how I can have something like this run permanently, and correctly tracking/adjusting today's date. Would you have any clues ?!
Thank you, as always,
Bien amicalement,
Jan

Re: Day view, display only

PostPosted: Wed Nov 27, 2013 6:52 am
by John Sindelar
Hi Jan,

We have a number of customers doing just that: http://www.seedcode.com/whiteboard-vers ... -calendar/

Here's what you'll need...

1. Write the script that actually does the "refreshing". I'd call it "Auto-Refresh" and give it two steps:
Code: Select all
Set Field [DateFocusGlob , Get ( CurrentDate ) ]
Perform Script ["Refresh Calendar"]


2. Edit the calendar's "Upon Opening" script, adding a few things at the end. You'll wrap this new stuff in an IF statement so it only runs when users are logged in with the account you're using for this dedicated display.
Code: Select all
If [ Get ( AccountName ) = "SOMETHING"]
  Perform Script ["Go To Day"]
  Install OnTimer Script ["Auto-Refresh"; ; 120 ]
End If


That will run your new Auto-Refresh script every 120 seconds until the current window is closed.

=)

Enjoy!

Re: Day view, display only

PostPosted: Wed Nov 27, 2013 7:09 am
by Jan Bayer
Gee, I didn't even have time to turn my back ! Thank you so much; I'm now testing, and will tell !
Jan

Re: Day view, display only

PostPosted: Wed Nov 27, 2013 7:22 am
by Jan Bayer
Works !
Merci beaucoup …
Jan

Re: Day view, display only

PostPosted: Wed Nov 27, 2013 8:14 am
by John Sindelar
=)

Right on, Jan!