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

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

Recommended Posts

Posted (edited)

Well, you could hard code a test against each tab panel in your control:

GetLayoutObjectAttribute("YourTabObjectNameHere";"isFrontTabPanel")

The quotes are required.

Edited by Guest
  • 1 month later...
Posted

I've just started working with Tab Control and found this thread, so I will add my question to it because it's similar to my issue. I created an unstored calc called cActiveTab:

If (

GetLayoutObjectAttribute ( "TabOne" ; "isFrontTabPanel" ) ;

"TabOneActive" ;

"TabOneNotActive"

)

It doesn't get any simpler than that. However, when I click on the tabs in my layout, the result of the calc does not change. The tab layout object is definitely named correctly. What am I doing wrong?

Many thanks for your suggestions--

Posted

Make sure you actually check "Do Not Store..." in Storage Options. For whatever reason, "none" is not enough.

Also make sure you have "Do not evaluate if all referenced fields are empty" UNchecked.

Posted

Thanks for your reply, Colin. Those boxes are already checked.

FWIW, if I click into the calc field on the layout, it instantly updates and shows the correct active tab. But only if I click into it.

:)

Posted

FileMaker's app window doesn't refresh as a result of selecting a tab panel. Play with the Records...Refresh Window menu item and you'll see what I mean.

Are you using this as some kind of presentation layer interface element?

Posted

This calc field will not be used in the presentation layer, I'm using it for development purposes only. I suppose I could just use the Data Viewer instead, but sometimes I like to place certain 'helper fields' right there on the layout as I program so I can easily monitor the status of certain operations. Not a big deal, I can certainly work around it.

Thanks for your replies, Colin.

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