Getting Active Tab
Trying to get the active Tab, so you can run code before that tab loads (like a "click" event, which I wished we had), using this technique as recommended by David Jondreau, did not work for me:
GetLayoutObjectAttribute ( "Renewals" ; "IsFrontTabPanel" ).
Although I created a Name = "Renewals" in the inspector and added the script to the onPanelSwitch Event, the script does not fire as the "Renewals" tab loads. Instead, the script runs as I click another tab and at that point FMP realizes, ahh, the "Renewals" tab is front.
However, this behavior doesn't help me at all if I want to prepare a tab before the user sees it.
This is a follow up to an earlier posting (http://forums.filemaker.com/posts/379a1f9fa0) where Phil suggested using:
Get ( TriggerTargetPanel )
(This is also a slightly different situation than the posting referenced above.)
This works as expected!!!!
Excellent again, Phil. :)