Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

making FM know what tab you're viewing

Featured Replies

This is my first time really working with tab controls. A certain script I'm developing needs to know what tab the user is viewing in order to continue. In addition, there are some buttons (outside of the tab layout object) on the layout I wish to hide when tab x is being viewed.

Is there a way to make FileMaker "intelligently know" what tab is being viewed by the user?

It's a bit convoluted, but you can use GetLayoutObjectAttribute in a custom function to determine this

Something like:

Case (
      GetObjectLayoutAttributes("Tab1"; "isFrontTabPanel"); "Tab1";
      GetObjectLayoutAttributes("Tab2"; "isFrontTabPanel"); "Tab2";
      GetObjectLayoutAttributes("Tab3"; "isFrontTabPanel"); "Tab3";
      )

If you create this as a function it will return the name of the tab. Tab1, Tab2, Tab3 need to be the object names of the tabs.

http://help.filemaker.com/app/answers/detail/a_id/6146/~/using-the-getlayoutobjectattribute-function

  • Author

It's a bit convoluted, but you can use GetLayoutObjectAttribute in a custom function to determine this

Something like:

Case (
      GetObjectLayoutAttributes("Tab1"; "isFrontTabPanel"); "Tab1";
      GetObjectLayoutAttributes("Tab2"; "isFrontTabPanel"); "Tab2";
      GetObjectLayoutAttributes("Tab3"; "isFrontTabPanel"); "Tab3";
      )

If you create this as a function it will return the name of the tab. Tab1, Tab2, Tab3 need to be the object names of the tabs.

http://help.filemaker.com/app/answers/detail/a_id/6146/~/using-the-getlayoutobjectattribute-function

Cheers!

Do you have more than one tab control on the layout? There can be many "frontmost" tabs. FileMaker can't know which tab a user is actually looking at!

A custom function like this is probably a better choice:

https://www.briandunning.com/cf/694

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.