November 26, 201213 yr 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?
November 26, 201213 yr OnObjectModify trigger fires when a tab becomes active and this calculation can be used to test which tab is active: GetLayoutObjectAttribute ( "tabName" ; "isFrontTabPanel" )
November 26, 201213 yr 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 ).
November 26, 201213 yr 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!
November 26, 201213 yr 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
Create an account or sign in to comment