Year Calendar v1.0.2

Published by Widget Studio on April 13, 2019
Updated on May 18, 2020
Tags: Calendar
Download Send To Carafe
Download Send To Carafe
Created By: C. Lind
Version: 1.0.2

Windows Tested: Yes
Offline Compatible: No

Description:

This is a responsive full year calendar. It will automatically resize as the web viewer resizes on both Mac and Windows.


Event Data


This widget was setup to be able to use the same data that the Calendar widget uses.

The event data comes in as an array of JSON objects. The event object can include this data:


    {
id : A unique identifier to link the event back to your FileMaker data
start : The start date or time stamp of the event*
end : The start date or time stamp of the event*
title: The event text displayed
color: The color of the event, if it is different than the default color
textColor: The text color of the event, if different than the default
notes: Notes about the event that can be displayed in a tooltip
}

You should write a script to compile the data you want to display on the calendar.


Colors can be hex values or rgb/rgba.


Date/Time Format


Dates/Times must be in an ISO time format YYYY-MM-DDTHH:MM:SS. Example: February 21, 2019 5:30 pm is 2019-02-21T17:30


You can use a custom function like www.briandunning.com/cf/1161to convert to/from FileMaker timestamps.



Script Triggers


This widget has only one script trigger that fires whenever the user clicks on a date or selects a range of dates (click and drag).


Full year calendar. Great for getting a full overview, or to use as a way to quickly select dates. A script can be triggered when a date or date range is selected. Uses the same event data as the FullCalendar widget.

Configuration

Name Description Type
customEventsThe main event data is: id title start end notes colorjsonArray
fileNamefmpFileName
scriptNameThis script will be triggered when the user clicks on a date or selects a range of dates (click and drag)fmpScriptName
References:

4 Comments

jmmiro · January 24, 2020 at 8:07 am

In a Spanish Filemaker, the week begins on Mondays, the day you indicate when selecting any day is always 1 less than the selected one, you select the 1st of February and indicates that you select on 31 January. The same goes for selecting a block of days. How can it be solved?
———————————————————————
En un Filemaker en Español, la semana empieza los lunes, el día que indica al seleccionar cualquier día siempre es 1 menos del seleccionado, seleccionas el día 1 de febrero e indica que seleccionas el 31 de enero. Lo mismo sucede al seleccionar un bloque de días. ¿Como se puede solucionar?

hydroxy · February 25, 2021 at 12:15 pm

When I click on a date it will show dialog with parameter startDate:…,endDate:… However, it I need to show title:… on the dialog, how I can modify it.

    Jeremiah Small · May 5, 2021 at 7:13 pm

    Hi hydroxy,

    We’re encouraging people to head over to the Carafe FMForums, rather than here in the comments, for two reasons. First, because the formatting options for code snips and the like are much nicer over there, and second, because you’re going to get a lot more community eyes on your question there.

    There’s a fairly prominent link to it on the https://carafe.fm/documentation/ page, and here’s a direct link for your convenience: https://fmforums.com/forum/325-carafefm/

    See you over there!

    Jeremiah

Leave a Comment