James Gill Posted November 26, 2012 Posted November 26, 2012 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?
dansmith65 Posted November 26, 2012 Posted November 26, 2012 OnObjectModify trigger fires when a tab becomes active and this calculation can be used to test which tab is active: GetLayoutObjectAttribute ( "tabName" ; "isFrontTabPanel" )
jbante Posted November 26, 2012 Posted November 26, 2012 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 ). 1
dansmith65 Posted November 26, 2012 Posted November 26, 2012 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!
Lee Smith Posted November 26, 2012 Posted November 26, 2012 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 1
James Gill Posted November 27, 2012 Author Posted November 27, 2012 Is there a way to go to a tab by index rather than by name?
Recommended Posts
This topic is 4682 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 accountSign in
Already have an account? Sign in here.
Sign In Now