Script Triggers & “Surfacing”

For our Repeating Events control (below) we decided not to use any value lists since they are kind of a pain to copy from file to file. Instead we’re using simple layout objects with conditional formatting on them so you can paste this layout into your file without issues.

The conditional formatting depends on some initial $$variables we’d normally set in the script we use to call this layout. But we’re also setting those initial conditions with an OnLayoutLoad script trigger. We’re doing this for developers who may go down into layout mode and then “surface” on this layout without having run the script we intended. This way the layout will look right and continue to function even if you get there some way we didn’t intend.

Of course, the OnLayoutLoad version of these initial conditions includes a short circuit on the Continue button since when arrived at outside the normal workflow, this layout doesn’t know which appointment or event it is supposed to operate on. Clicking “continue” in this case shows a message such as “Normally we’d apply the repetition rule you see here to your event, but in this case we’re not sure which event you intended to apply this to. To try this again, click ‘repeat’ beside an event to bring up this layout as part of your workflow.”

We’re trying to build the scripts for two audiences: the user who runs the scripts as part of their workflow, and the developer who may be just screwing around or exploring.

Featured Posts

Follow Along

Stay up to date with the latest news & examples from SeedCode

3 Comments

  • Hey John,

    I REALLY like your design for this feature. Very clean. Nice use of conditional formatting to avoid value list shortcomings!

  • Of course. And now we’re showing the repetitions in a list (instead of a portal) so it is easier to make batch changes as well using FileMaker’s build in Replace command. All about making it simpler.

  • Kyra

    This is amazing. My only question is does using this repeat function still allow you to go into the individual events and make changes to JUST that one event?

Leave a Reply

Your email address will not be published. Required fields are marked *

Check out some of our other posts ...

FileMaker Summer Camp – Recap

Unconference Sessions If you missed Pause in October, here’s a look at the sessions that attendees hosted. All the sessions are listed in this post

Subscribe to DayBack Updates & Status

Subscribe to DayBack’s latest features and example code at our new site: updates.dayback.com You’ll find new features and documentation, as well as the status and

DayBack Calendar in Claris Pro

DayBack for FileMaker 19 works great in Claris Pro with no changes required. The older DayBack Classic also works in Claris Pro, but requires a few changes.

COMPANY

FOLLOW ALONG

Stay up to date with the latest news & examples from SeedCode

© 2023 SeedCode, Inc.