Button Bar Techniques!

Button Bar Techniques

Button Bar Techniques!

By David J. Weiner

Button bars, for me, are the single most useful new feature introduced in FileMaker 14 (aside from the Script Workspace, which is a beautiful thing). Interestingly, the reason I find them so useful has nothing to do with their primary intended use case: the navigation bar. Sure, a simple and neatly-aligned navbar is great to have, and being able to switch segments from a regular button to a popover and back again is truly useful for speed of UI design, but the killer feature of button bars is the calculated label. This feature alone is, as they say, worth the price of admission. It means that you can display output from FileMaker's calculation engine right at the user interface level, which, prior to FileMaker 14, was not available without creating a calculated field or resorting to script or Let statement variable tricks.

We've started using button bars all over the place just for access to the calculation engine. Things we might have formerly accomplished by running a script, then creating (and managing) a $$ global variable, then placing that variable on a layout, and then refreshing that layout, ALL are replaced with a single calculation inside a button bar's label.

I started off writing this article as a one-off, and was going to go into various creative ways we've put button bars into service, but then figured I had enough material to make an actual series of blog posts, so that's what I'll be doing. This post will be followed up in the coming weeks with a set of blog entries describing the following button bar techniques:

  • Using button bars to replace simple merge data with dynamically formatted text, including calculated data and button states.
  • Using button bars to eliminate the need for another calculated field, just for displaying data.
  • Using button bars as a replacement for fixed-position portals on a "dashboard" with dynamically-positioned button bar segments containing aggregated data.
  • Using button bars to display actual data, aligned in columns that dynamically shift their alignment when empty.

There are numerous other ways to use the calculated label of the button bar to accomplish UI tricks that, prior to FileMaker 14, were much clunkier (if not impossible) to accomplish.

Post a comment and let us know your own techniques!