MonthPicker v2.0by Todd Geist
MonthPicker v2 is an all new take on building a month picker with PopOvers. I demoed this at DevCon, but I have already made some updates to how this works. I got rid of several of the steps required to integrate this into your file.
Thanks to some more input from the community. It now works well on the entire FileMaker platform. Use it with FileMaker WebDirect, FileMaker Go and FileMaker Pro!
This file has some examples of what I call Virtual Triggers. Virtual Triggers let you define your own triggers that get fired when ever you want them to. Think “Script Triggers”, but instead of only getting the ones FileMaker sets up for you, you get to define them anyway you want. They make really good hooks that you can use to let users of your module extend the behavior of your widget, without having to muck about in the code of your widget.
Getting the name of the Current PopOver
This module also features a technique for getting the name of the currently exposed PopOver. This is really useful for getting at objects that might be inside the PopOver, which is how we get implement Virtual Triggers for each instance of the PopOver.
Installation and Usage
See the README script, for information on how to install, and use this module. Note Step 4. Pass the name of the field you want to bind the widget to the PopOver OnObjectEnter Script trigger.
version 2.2.1 8/22/14
small fix. Calvin Cooper reported that one of the Calendar grid buttons had the wrong parameter.
It should have been set to 31. it was set to 30. 30 was used twice.
version 2.2 8/21/14
changed the Virtual Triggers to work with OnObjectEnter instead of OnObjectExit
several bug fixes and improvements related to Virtual Triggers and validation.
version 2.1.2 8/8/14
fixed the month title update bug on iOS. Thanks to JP Larson for pointing it out and suggesting a fix.
version 2.1.1 8/7/14
Fixed a bug in the conditional formatting to show selected date. Thanks to John Renfrew ( firstname.lastname@example.org ) for pointing that out.
version 2.1 8/4/14
got rid of the need for a relationship between the MonthPicker TO and the current TO
Download it here:MonthPicker.fmp12