Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Juggernaut

Is there such a thing as "The Active tab"

Featured Replies

I have a navigational problem !!

When I use a script to go back to a layout with multiple tabs, it is not possible to go back to where I was before executing that script. So is there a way to know what Tab is the front most or active ?

Xoomaster

Check this :o http://www.bh-a.com/downloads_1.1.html#RestoreTabs

You'll need FileMaker Pro Advanced 8.5 to install custom functions.

There is also a way without them, but slightly slower if you have many objects on the layout : http://fmforums.com/forum/showtopic.php?tid/186848/post/251214/hl//fromsearch/1/#251214

  • Author

Thank you so much.

Could be solved without "Objects" ...

http://network.datatude.net/viewtopic.php?t=140

...and even without CF's!

--sd

  • Author

Unfortunately dpending on how the tabs are set up, none of the methods above brings the actual front most tab back !

I have added a case / If to make it work !

May I ask you what situation failed ?

I know quite many people using it on a daily basis, and no one has ever reported a problem.

I am not saying it is not possible, but I am really curious.

What you -normally- need to do is ensure ALL tab panels are named.

By the way, on the version included in my demo file, there could be a problem if two layouts had the same name... but it wouldn't be the only problem in your solution I guess :P

Wrong - take a look at the attached template - run it thru the debuggers trace function! I do deliberately pull tab1 in front while making the 10 records, it could be whatever task ...your fear for the $$ variable might recieve a new irrelevant value doesn't really matter since the original tab was stored in the script parameter, and returned by the Get(ScriptResult) ...and best of all it terminates it's lifetime when the script stops.

--sd

Untitled.zip

  • Author

What happens is that yes the front tab comes on but occasionally the front most tab is not returned as such. I know this happens because I don't just go to another record or another layout and back, but at least in my DB buttons are used for navigation and once a series of scripts are run before returning to that layout, the front most tab is replaced with one of the other front tabs that was not the front most tab ! this is only noticible when a tab contains another tab and that tab contains one or more other tabs and so forth.

I have checked my scripts, and did the debugging, and none of the steps actually change the variables used.

Could it be something I do, I don't know but the layout on which I have tried this, is quiet complicated and has several tabs and portals and multiple relationships which may be contributing to the above !

But there is still not an easy way that I know to find the "Front Most Tab " if you know what I mean.

Of cource eary tab has one label that is the front most for that tab, but which tab is setting in front of all collection of tabs is not easily configured in my case.

Xoomaster

Have you tried my version?

http://fmforums.com/forum/attachment.php?attid/10704/

Excuse me xoomaster, but what version are you using. I'm using 'my' version every day, so are all LayoutProperties users, and this was never reported.

I am NOT talking about the 'go to field loop' method.

Xoo maybe you could post a file illustrating the error you are returning.

I see no reason why these methods would break. If this is happening it would be good to investigate why.

  • Author

I am using what I downloaded from your post above.

yes Stuart Taylor I have used yours also. They all have the same result !

  • 2 weeks later...

hi xoo

we still have nothing to go on

can you not post an example with instructions on how to repeat your result, it would be really useful.

best

Stuart

  • Author

As I have mentioned before, my layout is complicated by many portals and different table sources. I'll see if I can give you some insight into the arrangement.

That would be great

  • 2 weeks later...
  • Author

I found one error ! I had two tabs sharing same name on different layout that might have given me the problem above. I am still playing with this thing though.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.