July 30, 200916 yr I am looking for a script or custom function that will return the name of the frontmost tab. I have up to three levels of nesting, and by the frontmost tab, I mean the insidemost tab currently displayed. So far, the following custom functions have failed to work for me, consistently returning the wrong tab name: * SeedCode_FrontTabName (and the Faster version) * tabsFrontmost (with related functions). Does anybody have any suggestions for a more reliable solution? I'm amazed I can't get this to work.
July 30, 200916 yr Author OK, I've now also tried the custom function recommended in another thread, viz: * frontTabs This also returns the wrong tab name. Mostly these functions fail by returning the enclosing rather than the enclosed tab. But some return a sibling.
July 30, 200916 yr Author OK. Now I have found a solution. I have quit from Filemaker and restarted it. Now the SeedCode function returns the correct value. This is a weird kind of crash in Filemaker in which only the custom functions stop working. And they don't stop working altogether, they just start returning the wrong results. It happened to me once before in FM9, and now I have had it in FM10!
July 31, 200916 yr Try these: http://www.fmfunctions.com/fid/217 or http://www.fmfunctions.com/fid/97
July 31, 200916 yr I have quit from Filemaker and restarted it. Now the SeedCode function returns the correct value. How are you testing this? Keep in mind that even an unstored calculation field may not refresh when tab panels are switched.
July 31, 200916 yr Author There's a button (not on any of the tabs). When I click it, it is supposed to get the name of the frontmost tab and hold it as a variable. It's that step that was failing - so no fields involved at all. Edited July 31, 200916 yr by Guest
July 31, 200916 yr Author Yes, FrontTabsPanelsList also returns the correct result now I have restarted Filemaker.
Create an account or sign in to comment