From Dwayne Wright PMP
Certified FileMaker Developer
Please Note: If you are viewing this page in a news feeder, the images may get munged up a bit. For the best experience, please visit the journal directly by clicking (here).
In this example, we have a couple fields on a layout and a button that allows the user to go into Find mode. The trick is when the user goes into find mode. Along the bottom of the layout, two additional buttons appear ( Help With Find & Back To Browse Mode) but are not there in Browse or Print Preview.
Normally when you see something like this, the FileMaker developer is taking you to a different layout that has different buttons. For the developer to do that, they would need to run a script. If the user selected FIND by the menu bar or keyboard shortcut, the buttons would not appear. That is not the case in this example. You do not have to run a script to have the invisible buttons show up and they are indeed on the current layout.
What we did was create an invalid relationship or a universally constant invalid relationship. We have one field that always equals 1 as the parent key field and a child key that is always equal to 2. We created a one line portal using this relationship and placed our buttons in the portal row.
Portals that are hidden with a zero line width will show up in Find mode. So in effect, we have buttons that are mode specific.
An example file can be downloaded by clicking (here).
More info about the author and FileMaker in general, contact me at firstname.lastname@example.org.
© 2008 - Dwayne Wright - dwaynewright.com
The material on this document is offered AS IS. There is NO REPRESENTATION OR WARRANTY, expressed or implied, nor does any other contributor to this document. WARRANTIES OF MERCHANT ABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY DISCLAIMED. Consequential and incidental damages are expressly excluded. FileMaker Pro is the registered trademark of FileMaker Inc.