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.

Controlling tab view

Featured Replies

I am using tab control in one of the layouts but when I switch to another layout and back again, the visible tab has changed from the one I had open. Why is this happening?

Further to this, is there any way of controlling which tab view shows when using a script? For instance, when running an error-checking script, can it direct the user to a specific tab view in a layout or does it just go the layout and the user has to figure which tab window is to be corrected? I can’t see any options/preferences in the software.

Martins

In FM8.5, the tab that will show is the tab that was last selected in layout mode. In FM9, there is a new setting for tab panels "default front tab."

You can name your tabs using the object info palette, then use Go To Object script step.

  • Author

Thanks for that.

However, I am finding that it does not return to the last open Tab, but only the front tab (which is rather annoying!).

I seem to recall some script steps similar to the one you describe as being in FM9 in my current version. Should I explore that option?

Martins

"However, I am finding that it does not return to the last open Tab, but only the front tab (which is rather annoying!)."

This is how tab controls work: they always return to the default tab, not the tab that was last displayed.

Scripting is required to force a return to the last tab displayed; or ditch the tab controls and go back to separate layouts and scripting.

  • Author

Thanks for your help Vaughan,

I’ll look into the Object/Scripting solution.

Martins

Thanks for that.

However, I am finding that it does not return to the last open Tab

Not the last open tab, the last selected tab in layout mode.

Another method, used prior to objects, was to define a field with repetitions in your parent table. This field remains empty. In fact, it can be a global. Then, put the field on each of the tab panels, with the rep showing that is respective to the tab panel. That is, on tab panel 1, field tabnav[1], tab 2, tabnav[2].

Then, in the script that returns to the layout, you can "select" the tab you want by using Go To Field::tabnav[#] followed with a Commit Records.

Edited by Guest

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.