Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

I am trying to design a security script that will prevent users from switching to a tab that they do not have permission to use.  I am using the OnTabSwitch script trigger to capture the value of the tab that they are on but I am having trouble capturing the value of the tab that the user has switched to.  Other than setting transparent buttons over each tab, what's the best way to capture this value?

Posted

OnObjectModify trigger fires when a tab becomes active and this calculation can be used to test which tab is active:

GetLayoutObjectAttribute ( "tabName" ; "isFrontTabPanel" )
Posted

To clarify, the OnTabSwitch trigger fires when the user initiates a tab switch, before the tab switch is actually performed. Just as the name of the starting tab panel is given by the Get ( TriggerCurrentTabPanel ), the tab the user is trying to switch to is given by Get ( TriggerTargetTabPanel ).

  • Like 1
Posted

Thanks for clarifying Jeremy, my reply was based on pre FileMaker 12 features.

 

I actually haven't used the new OnTabSwitch trigger yet - it sounds handy!

Posted

I am using the OnTabSwitch script trigger to capture the value of the tab

 

Please update your profile to reflect your current FileMaker Version, and Mac OS. Here is a quick link Update Profile

 

There are two or three how-to videos on this, here is one link you might like to view. Matt Petrowsky video

  • Like 1

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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