Asu Posted August 18, 2016 Posted August 18, 2016 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
webko Posted August 18, 2016 Posted August 18, 2016 Go to Object ? I use this on my standard tabs all the time, to bring focus to the correct tab... Are there tab controls in a portal?
Asu Posted August 18, 2016 Author Posted August 18, 2016 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!
Fitch Posted August 18, 2016 Posted August 18, 2016 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
Recommended Posts
This topic is 3291 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 accountSign in
Already have an account? Sign in here.
Sign In Now