Page 1 of 1

Jump to a specific date upon opening or refresh

PostPosted: Fri Dec 18, 2015 6:55 pm
by verybless
I like to be able to jump to a specific date upon opening or refresh calendar. May I know how to do this?

I have tired to edit Show Events Details on Calendar but not sure where to add the script step to set the dateFocus or StartDate.

Thank you

Re: Jump to a specific date upon opening or refresh

PostPosted: Mon Dec 21, 2015 10:19 am
by DanW
Upon opening the calendar, you can specify the focus date at the end of the "Upon opening" script by setting the parameter of the Perform Script["Go To WebViewer Calendar Layout"] step. The calendar mode or view is already being set in this parameter, so you can add the focus date like this:

#("sc_Mode" ; "Month") & #("sc_FocusDate" ; Get ( CurrentDate ) - 30 )

Let me know if this helps!

Dan

Re: Jump to a specific date upon opening or refresh

PostPosted: Tue Dec 22, 2015 12:03 am
by verybless
Thank you Dan. It works perfectly

Re: Jump to a specific date upon opening or refresh

PostPosted: Tue Dec 22, 2015 8:36 am
by DanW
That's great to hear!

Just in case you'd like to set the focus date after Upon Opening, there are a couple other options to navigate to a particular date described at this link:
http://www.seedcode.com/pmwiki/index.ph ... Navigation

All the best,
Dan