Jump to content

making FM know what tab you're viewing


This topic is 1782 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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?

Link to post
Share on other sites
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

It's a bit convoluted, but you can use GetLayoutObjectAttribute in a custom function to determine this Something like: Case ( GetObjectLayoutAttributes("Tab1"; "isFrontTabPanel"); "Tab1";

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

  • Like 1
Link to post
Share on other sites

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!

Link to post
Share on other sites

This topic is 1782 days old. Please don't post here. Open a new topic instead.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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