A tab is only considered 'active' when you tab into it, not when you click on it or make it the front tab somehow. So unless you have tabbed into the tab (being in the tab order), Get ( ActiveLayoutObjectName ) will not return the name of the tab.
You haven't said what you are actually trying to do so I don't know what to suggest to make it work for you. However, this may give you a clue:
GetLayoutObjectAttribute ( "phone" ; "isFrontTabPanel" )
David Thanks - that explains, it I never knew that tabbing into a tab panel and clicking the tabs reported differently.
I will use the GetLayoutObjectAttribute ( ) function to accomplish my goal which is to
retain what tab the user is on when returning to the layout.
So is there any way to trigger the calculation it in a script?
Obviously GoToObject(ObjectName:"ObjectName") is not treated as tabbing-to but rather as clicking.
Do you know if the version 11 has correct this? I mean, I have a button that I need to get the object name to ejecute the correct search of the data. It would really save a lot of coding.
Hi - refreshing an old post - Sandra I have a similar thing - I'd like to have a button named Fred with a script that does a find for Fred's records, passing the object name into the script as the search criteria
did you have any success?