Brian Dunning's FileMaker Custom Functions

FrontMostNamedObjects

FrontMostNamedObjects returns the visible named frontmost objects that are most deeply nested

  Be the first to rate this function Log in to vote

malcolm   malcolm - Show more from this author
Business Data Systems
https://businessdatasystems.co.nz

  Sample input:
FrontMostNamedObjects( )
  Sample output:
Contacts_Phones_Panel
Invoices_LineItem_Detail

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

When you switch layouts, and switch back, panels will display the default panel state. If the user was on a different panel the screen switch has forced the default panels to be visible and they probably did not want that. This function returns the names of the panels that you need to display when you return. It filters the panels based on them being at the front. Additionally it filters for objects that are nested within other objects. For example, if an object is on a slide panel that is on a tab panel then each of these three panels is at the front. But we don't want to have to go to every front panel, and there is no need to go to two of them. Going directly to the most deeply nested object will ensure that all three objects are visible.

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 21 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: