- Give every tab an object name.
- Add a script trigger OnObjectModify to the tab control.
- In the trigger script use function GetLayoutObjectAttribute( objectName; "isFrontTabPanel" ) the check whether the object with the name objectName is on top (selected).
I hope this will help with you.
Thank you so much for your reply.
I am so sorry that I am so new in using filemaker, that's why i am going to ask the following silly questions...
Can you tell me how to give the tab an object name a bit more detailed please?
Enter layout mode
Click your tab to select it
On the Position tab of the inspector, enter the name you want into the name box right at the top of this tab of the inspector.
Thank you, I can name the tabs.
Then I choose the tab and right click to select "Set Script Triggers...", I ticked "OnObjectModify", below it I click "select" script, then add a new script. In here i could not find the script function "GetLayoutObjectAttribute" .
Could you please tell me how to find that?
GetLayoutObjectAttribute is not a script step but a Filemaker function (see FileMaker Help).
Use it in an If script step like:
If [GetLayoutObjectAttribute( "tabName1"; "isFrontTabPanel" )]
// Do something when tab tabName1 is in front
Else If [GetLayoutObjectAttribute( "tabName2"; "isFrontTabPanel" )]
// Do something when tab tabName2 is in front
thx you guys so much!!
Can I ask you where can i get the further information about the "FileMaker Function" ?
I am learning FileMaker, that would be much helpful if I can get the Demo/ example/ explaination of those Function
Do you know is there any tutorial about them?
thanks a lot
I dont know of any tutorial that goes through every FileMaker function with demos / samples extensively.
The Help in FileMaker is a good start. It might not explain every function in great detail, but it lists every function with a description and more or less helpful examples. The help includes a function list (alphabetical list or by category). Get a drink, perhaps a snack, and some time and go through all descriptions. You might not understand every function right away or do not know when you will ever need that function, but you have read about it and might remember later, when you could use it.