Newbies Turbojesse Posted March 8, 2013 Newbies Posted March 8, 2013 In FM 12 Advanced I cannot get the Tab Panel Script Trigger script to return a Tab Panel Object Name using either of the Get functions: Get(TriggerCurrentTabPanel) or Get(TriggerTargetTabPanel) I have used the GetValue(Get(TriggerCurrentTabPanel);2) but it returns nothing. Using the same function GetValue(Get(TriggerCurrentTabPanel);1) returns the Panel Tab Number. I've watched videos of people doing this and I've copied examples but cannot get it to work. Anyone have a suggestion? Thanks, Jesse Filemaker Pro 12 Advanced Mac OS X 10.8
Lee Smith Posted March 8, 2013 Posted March 8, 2013 I deleted your duplicate post in General Topic for v12. Please do not multiple post your questions.
bruceR Posted March 8, 2013 Posted March 8, 2013 The best thing is for you to create a simple example file of what you are doing and post it along with your questions.
Newbies Turbojesse Posted March 8, 2013 Author Newbies Posted March 8, 2013 Here's a screenshot of a simple 2 tab layout. Tab 1 is "A" and Tab2 is "B". As you can see from the Dataviewer, the 2 Get functions return only the tab number and not the tab name when using the OnTabSwitch Script Trigger. I've tried this on several different layouts of varying complexity with the same result. Although I'm new to FM scripting I've studied all available instructions for using the Tab Panel script trigger and Get functions and cannot see where I'm doing anything wrong.
bruceR Posted March 9, 2013 Posted March 9, 2013 The best thing is for you to create a simple example file of what you are doing and post it along with your questions.
David Jondreau Posted March 9, 2013 Posted March 9, 2013 There's two tab names. One is the label you type in the tab setup dialog, in your case, "A" or "B". The other is entered in the Position tab of the Inspector window. The tab Get() functions pull the second name, not the first. 1
Newbies Turbojesse Posted March 9, 2013 Author Newbies Posted March 9, 2013 Thank you David. I knew it was something simple and I just couldn't find it, There seems to be only oblique references to the "Inspector" which I took to be the Tab Panel Setup. Gave myself a headache over this one.
Recommended Posts
This topic is 4530 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