AnsweredAssumed Answered

Get Active Tab--I'm at a loss.

Question asked by amandahbell on Mar 17, 2015
Latest reply on Jun 18, 2018 by tunghua

Title

Get Active Tab--I'm at a loss.

Post

Product: Filemaker Pro Advanced 13

System: Windows 7

I have 11 tabs named T1...T11. I also have a field called "TransectNumber".

I would like that field to be an autocalulation of the number following the T on the tab.

I have tried:

Case (
 GetLayoutObjectAttribute ( "T1" ; "isFrontTabPanel" ) ; "1" ;
 GetLayoutObjectAttribute ( "T2" ; "isFrontTabPanel" ) ; "2" ;
 GetLayoutObjectAttribute ( "T3" ; "isFrontTabPanel" ) ; "3" ;
 GetLayoutObjectAttribute ( "T4" ; "isFrontTabPanel" ) ; "4" ;
 GetLayoutObjectAttribute ( "T5" ; "isFrontTabPanel" ) ; "5" ;
 GetLayoutObjectAttribute ( "T6" ; "isFrontTabPanel" ) ; "6" ;
 GetLayoutObjectAttribute ( "T7" ; "isFrontTabPanel" ) ; "7" ;
 GetLayoutObjectAttribute ( "T8" ; "isFrontTabPanel" ) ; "8" ;
 GetLayoutObjectAttribute ( "T9" ; "isFrontTabPanel" ) ; "9" ;
 GetLayoutObjectAttribute ( "T10" ; "isFrontTabPanel" ) ; "10" ;
 GetLayoutObjectAttribute ( "T11" ; "isFrontTabPanel" ) ; "11" ;
)

Which returned nothing.

 

And

Get ( TriggerTargetPanel )

Which returned 0 when output as a number and nothing as text.

I've only been working with FileMaker for a month so if I'm doing this completely wrong please tell me. Like if I should have a OnPanelSwitch script trigger on the tabs. I'm completely lost.

Outcomes