1 of 1 people found this helpful
You probably are looking for something with the Get ( TriggerTargetTabPanel ) and Get ( TriggerCurrentTabPanel ) functions. You will also need to click on the tab panel and then go up to and pull down to "Set Script Triggers" and set a "OnTabSwitch" trigger to fire when you are clicking on scripts. You will run a script that will first determine the starting tab you are on and the target tab you are going to. You can then set a conditional to be turned on if the target panel is to be highlighted. So,
Set Variable [ $Start ; Get ( TriggerCurrentTabPanel ) ]
Set Variable [ $$ConditionalGlobalVariable ; Get ( TriggerTargetTabPanel ) ]
Then you can have a conditional background text field behind the tab label that changes colors based on the value of $$ConditionalGlobalVariable.
Also note when writing a script, if you want there to be conditions that keeps someone from clicking on a tab, you have to Exit the script with a value such as Exit. That will keep the target tab from being selected. So if you wanted someone clicking on tab 2 that belongs to a privilege group called "Not Allowed" (just a made up name), then the following if statement will keep that tab 2 panel from going active if they don't pass the If test.
If [ $$ConditionalGlobaVariable = 2 and Get ( AccountPrivilegeSetName ) = "Not Allowed" ]
Exit Script [Result; 0]
I have been trying to use the GetLayoutObjectAttribute ( objectName ; "isFrontTabPanel") function without success but I am probably missing something basic. I will give your suggestions a try.