Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

  • Newbies
Posted

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

Posted

I deleted your duplicate post in General Topic for v12.

 

Please do not multiple post your questions. 

Posted

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
Posted

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. 
 

8540815758_9f024c93fa.jpg
 

Posted

The best thing is for you to create a simple example file of what you are doing and post it along with your questions.

Posted

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.

  • Like 1
  • Newbies
Posted

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.

This topic is 4276 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.