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.

Change layout, upon return wrong Tab selected in Tab Panel?

Featured Replies

Anyone else seeing this? If you have a layout with a tab panel, and a script which goes to another layout, when the script returns you return to the original layout, often a different tab is selected than the one you started from?

Edit -- I know you can manually select the tab by using a Go To Field statement, but this is ugly and requires extra script logic. I'd like to know how FM determines which tab to select...

Edited by Guest

The last tab you were on in the layout mode becomes the default tab.

Ralph is right about the default tab of course, however, there is a way forward. There always is.

The new tab control makes it possible to have a single main layout in a table whereas in the past you probably could not have got all the information required into one layout. Simulated tabs were quite common. The problem mentioned here doesn't exist in that case because each simulated tab is a separate layout and if you return to it it looks the same.

For this purpose I would suggest that we have to stop thinking of the layout as the main viewing object - think of the window. If you move from one table layout to another, changing the window as you go then when you come back to the original window you will find the tab control laid out exactly as you left it.

Unfortunately FMP8 has not taken the step needed. You can return to the original layout but if you do that layout will be in your new window. So it is necessary to script the window changing. One script is all that is required. Then when you use it you pass the window name (and layout name if you wish) via a script parameter. I use simple window and layout names with no spaces so a simple parsing of the parameter into two words is all that is needed

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.