Dynamically Expanding Portals
Making Dynamically Expanding Portals.
I love to learn, and one of the benefits of writing a blog is learning so much from all of the wonderful, sharing developers in the FileMaker World. But for all of the posts I read, and all of the videos I see, some simple tricks still get by me.
And such was the case with Dynamically Expanding Portals. I learned it from my main subcontractor, Robert Schaub. We’ve been working together for over two years now, and a couple of days ago he showed me how to make Dynamically Expanding Portals:
:
This trick is easy to set up:
- Add a portal to the bottom of a layout
- Size the portal to show one row of data
- Anchor the portal to the top and the bottom of the layout
- It is possible to anchor to the left side, right side or to both sides of the layout, too. If you anchor to both sides, consider anchoring the fields in the portal to both sides, too. That way the fields will expand with the portal.
Is It Useful?
With all of the new features out there in FileMaker 14, you’d think this one is too simple to consider using. Nevertheless, it has a place. Consider the number of different screen sizes in existence today, and think about the trend towards larger and larger monitors: With Dynamically Expanding Portals, the portal keeps growing as you increase the layout size. And it shrinks back down to one line as the layout shrinks. A nice solution to an ever expanding problem.
To see the technique in action, watch the video above or download the example file here.
Shawn A. Krueger
April 28, 2016 @ 11:11 am
I use this all time… but usually have more than 1 row showing by default. For instance, if your normal layout has room for 5 portal rows, that becomes your minimum… then if the user has a larger monitor, it expands to show more.
I also use the side anchors, and that way if you have 1 field that potentially can hold a lot of text, like a description or notes field, you can expand to show more of that at a time. Just have to make sure that only field expands, so you don’t end up with overlapping fields.
Don Clark
April 28, 2016 @ 7:46 pm
Thanks for the feedback, Shawn. I especially like your idea on the side anchors. I’ll be using that…
Lee Smith
April 29, 2016 @ 10:21 am
Nice tip. Say hello to Chopper for me.