Jump to content

Script step for Tab control


This topic is 2900 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hello FM Mavens, 

I am in search of a script solution that would be the equivalent of a "Go to Tab X" in a portal. Filemaker.com has an old example file named EG6145.fp7 which can be downloaded but it does not work in FMPro 15. Any suggestions?

Thanks

Link to comment
Share on other sites

OK it was a bit confusing but I figured it out. A tab has 2 "names", one "name" is defined in the Tab Control Setup, where it is actually the "label" on the tab (see Tab Width/Label Width etc dropdown menu) and the other "name" is defined in the Inspector where it is he name of the label as an object. The 2 have nothing to do with each other and have to be defined separately which is counterintuitive. Thanks for your reply!

Link to comment
Share on other sites

Another wrinkle is that if you use Get(TriggerTargetPanel) you'll get TWO values: the number of the tab, and its object name (the one from the Inspector).

So you can't just say

Get(TriggerTargetPanel) = "myTabName"

... but instead have to use:

GetValue( Get(TriggerTargetPanel) ; 2 ) = "myTabName"

http://fmhelp.filemaker.com/fmphelp_14/en/html/func_ref1.32.161.html#1069900

Link to comment
Share on other sites

This topic is 2900 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.