DayBackForFileMaker

Navigation

DayBackForFileMaker.Navigation History

Hide minor edits - Show changes to output

Changed line 24 from:
%newwin, width=500% [[https://www.seedcode.com/rootimages/stikipad/dayback/ShowEventDetailsNoContextMod.png | https://www.seedcode.com/rootimages/stikipad/dayback/ShowEventDetailsNoContextMod.png]]
to:
%newwin, width=500% [[https://archive.seedcode.com/rootimages/stikipad/dayback/ShowEventDetailsNoContextMod.png | https://archive.seedcode.com/rootimages/stikipad/dayback/ShowEventDetailsNoContextMod.png]]
Added line 27:
[[#RefreshCalendar]]
May 29, 2018, at 10:23 PM by KC Embrey - Removed reference to $sc_DateRangeStartAutoGlob and end variables because it will cause confusion
Deleted line 8:
'''Helpful Tip:''' You can use the $$sc_DateRangeStartAutoGlobNum and $$sc_DateRangeEndAutoGlobNum global variables to get the current date range of the loaded calendar events.
May 29, 2018, at 10:15 PM by KC Embrey - Added note on $$sc_DateRangeStartAutoGlobNum and End variables
Added lines 8-9:

'''Helpful Tip:''' You can use the $$sc_DateRangeStartAutoGlobNum and $$sc_DateRangeEndAutoGlobNum global variables to get the current date range of the loaded calendar events.
May 19, 2018, at 02:59 PM by 192.88.134.15 -
Changed lines 23-24 from:
%newwin, width=500% [[https://seedcodevideos.s3.amazonaws.com/ShowEventDetailsNoContextMod.png | https://seedcodevideos.s3.amazonaws.com/ShowEventDetailsNoContextMod.png]]
to:
%newwin, width=500% [[https://www.seedcode.com/rootimages/stikipad/dayback/ShowEventDetailsNoContextMod.png | https://www.seedcode.com/rootimages/stikipad/dayback/ShowEventDetailsNoContextMod.png]]
April 16, 2018, at 03:37 PM by 192.88.134.15 -
Changed lines 41-49 from:
Enjoy!
to:
Enjoy!

!! Calling "Refresh Calendar" from another file.

You can call the refresh calendar script from another file when you want to navigate to a particular view / date range. Two things to note:

-> 1. That script parameter is formatted with a custom function, so you'll want to add the custom functions from DayBack into your file before that will work.

-> 2. The "Refresh Calendar" script assumes you're already ON the calendar layout. So you may want to preface it with an if statement that moves you to the calendar layout if you're not already on it.
January 27, 2018, at 01:14 AM by KC Embrey - Added #ShowEvent
Added line 16:
[[#ShowEvent]]
January 27, 2018, at 01:12 AM by KC Embrey - Added "Show Event Details On Calendar" script info
Added lines 15-22:

!! Can I show an event on the calendar from another window

Yes. The "Show Event Details On Calendar (SourceNo ; FocusDate)" script is used by default to show a specific event on the calendar '''when you are within the context of the event record'''. This works when you are in a layout or portal based on the event table.

If you are outside of the context of the event record, you can add the lines highlighted in the screenshot below and pass the additional parameter $sc_EventID to the script:

%newwin, width=500% [[https://seedcodevideos.s3.amazonaws.com/ShowEventDetailsNoContextMod.png | https://seedcodevideos.s3.amazonaws.com/ShowEventDetailsNoContextMod.png]]
January 03, 2018, at 09:13 PM by KC Embrey - Added "Refresh Calendar" script info
Changed lines 3-4 from:
Yes! Have your script set the variable $$sc_FocusDate and then head to the calendar layout. If you're already on the calendar layout, run the script "Set Webviewer" to have the date variable take effect =)
to:
Yes! Have your script set the variable $$sc_FocusDate and then head to the calendar layout. If you're already on the calendar layout, run the script "Refresh Calendar" passing the sc_FocusDate parameter to have the date variable take effect =)
Changed lines 11-12 from:
Sure thing. Like navigating to a specific date, have your script set the variable $$sc_Mode to one of the calendar modes listed here: [[ModesInTheCalendar]]. Then, simply navigate to the calendar layout. If you're already on the calendar layout, run the script "Set Webviewer", and the calendar will change to the mode you've set.
to:
Sure thing. Like navigating to a specific date, have your script set the variable $$sc_Mode to one of the calendar modes listed here: [[ModesInTheCalendar]]. Then, simply navigate to the calendar layout. If you're already on the calendar layout, run the "Refresh Calendar" script passing the sc_Mode parameter and the calendar will change to the mode you've set.
Added lines 15-30:

!!Navigating via script when already viewing the calendar

You can refresh the calendar and pass specific parameters using the "Refresh Calendar" script to navigate to a specific date/view when the calendar is already open. This can be helpful when you have your own FileMaker objects in a nav bar on the calendar layout.

Optional parameters that can be passed into the "Refresh Calendar" script are:

*sc_Mode
*sc_FocusDate
*sc_RangeDate
*sc_ResourceDays
*sc_ResourceColumns

Here's an example of a possible script step:

->Perform Script ["Refresh Calendar"; Parameter: #("sc_Mode" ; "Resource Vert") & #("sc_FocusDate" ; Get ( CurrentDate ) - 30  ) & #("sc_ResourceDays" ; 7) & #("sc_ResourceColumns" ; 2 )]
November 03, 2016, at 12:06 AM by KC E - Updated wording
Changed line 13 from:
We can set DayBack to open to a specific mode by modifying the Perform Script["Go To WebViewer Calendar Layout"] parameter at the end of the "Upon opening" script and enter the preferred mode. For example, the following will open up Horizon mode by default:
to:
We can set DayBack to open to a specific mode by modifying the Perform Script["Go To WebViewer Calendar Layout"] parameter at the end of the "Upon opening" script. Replace the default mode, "Month", with your preferred mode. For example, the following will open up Horizon mode by default:
November 03, 2016, at 12:01 AM by KC E - Added an example of updating the Upon Opening script to change the default mode
Added lines 12-14:

We can set DayBack to open to a specific mode by modifying the Perform Script["Go To WebViewer Calendar Layout"] parameter at the end of the "Upon opening" script and enter the preferred mode. For example, the following will open up Horizon mode by default:
-> #("sc_Mode" ; "Horizon")
April 19, 2016, at 05:33 PM by Dan Wheelon -
Changed line 11 from:
Sure thing. Like navigating to a specific date, have your script set the variable $$sc_Mode to one of the calendar modes listed here: [[ModesInTheCalendar]]. Then, simply navigate to the calendar layout. If you're already on the calendar layout, run the script "Set Webviewer, and the calendar will change to the mode you've set.
to:
Sure thing. Like navigating to a specific date, have your script set the variable $$sc_Mode to one of the calendar modes listed here: [[ModesInTheCalendar]]. Then, simply navigate to the calendar layout. If you're already on the calendar layout, run the script "Set Webviewer", and the calendar will change to the mode you've set.
April 19, 2016, at 05:33 PM by Dan Wheelon - Added section about scripting navigation to a specific calendar mode
Added lines 8-11:

!! Can I script the calendar to go to a specific calendar mode/view?

Sure thing. Like navigating to a specific date, have your script set the variable $$sc_Mode to one of the calendar modes listed here: [[ModesInTheCalendar]]. Then, simply navigate to the calendar layout. If you're already on the calendar layout, run the script "Set Webviewer, and the calendar will change to the mode you've set.
December 22, 2015, at 03:06 PM by 192.88.134.15 -
Added lines 4-7:

If you want to go to a specific date on startup, 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 )
November 30, 2015, at 07:15 PM by 192.88.134.15 -
Added lines 1-5:
!! Can I script the calendar to go to a specific date?

Yes! Have your script set the variable $$sc_FocusDate and then head to the calendar layout. If you're already on the calendar layout, run the script "Set Webviewer" to have the date variable take effect =)

Enjoy!
(855) SEEDCODE
[email protected]
Follow us: