NinjaCal

Script Actions

The following script actions are available in NinjaCal...

{ } are for optional parameters

selectDate Parameters: datelist, {refocus}

This returns the selected date in $$__NinjaCalSelectedList. If the refocus attribute is set it also snaps the widget to the selected date. You can also send a list of ¶ separated dates to select them all. See highlighting dates for more info.
Example: Perform Script [ “NinjaCal ( action ; params )”; Parameter: "selectDate¶" & Get(CurrentDate) ]
Example (refocussing): Perform Script [ “NinjaCal ( action ; params )”; Parameter: "selectDate¶" & Get(CurrentDate) & "¶-f" ]

selectRange Parameters: daterange; {refocus}

Same as "selectDate" but takes a range as its contents. Note that the range can be sent as either a quoted pair of ¶ separated dates or a single string with "..." separating start and end dates. If you're sending ¶ separated dates, they must be in order with the earliest date followed by the last date.
Example: Perform Script [ “NinjaCal ( action ; params )”; Parameter:"selectRange" & "¶" & Quote ( List ( RelationshipToEvents::EventDate ) ) & "¶" & "-f" ]
Example: Perform Script [ “NinjaCal ( action ; params )”; Parameter: "selectRange¶" & Table::FromDateField & "..." & Table::ToDateField & "¶-f" ]

stepMonth Parameters: the number of months, usually 1 or -1.

Moves the focus of the widget forward and back through the months.
Example: Perform Script [ “NinjaCal ( action ; params )”; Parameter: "stepMonth¶1" ]

goToDate Parameters: a date

Moves the focus of the widget to the date passed as a parameter-- but does not select the date.
Example: Perform Script [ “NinjaCal ( action ; params )”; Parameter: "goToDate¶" & "2/10/2009" ]

clearDates Parameters: none

Clears the selected dates, snapping the focus of the calendar to the current month.
Example: Perform Script [ “NinjaCal ( action ; params )”; Parameter: "clearDates" ]
(855) SEEDCODE
[email protected]
Follow us: