March 8, 201312 yr Newbies 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
March 8, 201312 yr I deleted your duplicate post in General Topic for v12. Please do not multiple post your questions.
March 8, 201312 yr The best thing is for you to create a simple example file of what you are doing and post it along with your questions.
March 8, 201312 yr Author Newbies 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.
March 9, 201312 yr The best thing is for you to create a simple example file of what you are doing and post it along with your questions.
March 9, 201312 yr 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.
March 9, 201312 yr Author Newbies 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.
Create an account or sign in to comment