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.

Featured Replies

  • Newbies

Hello everyone,

I've got a solution that will probably solve many of your navigation headaches.

Ever get tired of leaving a layout, going to a different layout, and then returning to the first one, only to find all your tabs have been reset to their defaults?

Well, have I got a solution for you! And it's free!

Now you may be thinking to yourself...

"Self, I've already seen lots of other solutions like this..."

or have you...

This solution only requires the following criteria:

- Two scripts

- One global variable

- That the tabs you want to remember must have object names.

- Only works in FM Pro 8.5 (either platform)

Other advantages:

- no custom functions required

- no special fields required

- no special naming conventions required for tabs or layouts

- no additional buttons or scripts, just refer to the two scripts in the sample file when needed.

Complete details and documentation of how it works are included in the file.

I kind of threw the documentation together last minute, so if anyone has any suggestions for the content, or even a better way of solving the issue, I'm all ears.

Enjoy, hope it helps.

Tab_Controls.zip

Hi Chris,

Welcome to the forums!! :

If you post sample files in future, just throw them into the open source solutions category (much easier for people to find in future).

Anyway, just wanted to say welcome, and thanks for the useful technique.

Cheers.

Well thumbs up, for having taken up the challenge to improve Fabice's method - if you have succeded is a question, but we have now two methods to choose from - Thanks!

I have a feeling that, repeating $variables are unessersary tough to set in a efficient manner, and I see that you mix pilcrows among them as well ...couldn't we pursuade Andy LeCates to let us use Extend( to set them properly?

We would be much more in love with them. Not that the underlying task get's done more efficiently, but the debugging of our scripts would benefit from less tracing thru endless loops.

--sd

Very neat.

I will stick to this one for a matter of speed (during the 'Save tab order' script), but thanks for the technique.

The fact that is needs no custom function is really a plus though.

Edited by Guest

repeating $variables are unessersary tough to set in a efficient manner

Repeating variables are a myth - they do not really exist. All we have now is a convenient naming scheme (as demonstrated in the sample file). But there is no array that you could address by an aggregate function, for example.

I don't know if the term "myth" is right but my thought was merely "half-finished"

All we have now is a convenient naming scheme

Yes! it's exactly what I polluted this blog with last sunday:

http://www.fmcollective.com/2007/04/creating_multip.html

...who cares if you can do something much more efficient, such as import between tables.

--sd

Hmmm

When i click on topics by Fabrice i get an error.

Fabrice is the method that Soren mentions the one that you have linked to or is there another method posted to the Forum?

As i cannot bring up your topics i can not seem to find it.

I would like to have a look to see if it is similar to the method that i have put together (which contains a CF).

best

Stuart

Here : http://www.bh-a.com/downloads_1.1.html#RestoreTabs

would love to see yours too :

Hi Fabrice,

Here is mine for you to look at... there are bits that can be cleaned up a bit.

Some Info:

- One script

- 3 Custom Functions

- Tabs you want to remember must have object names.

- FM Pro 8.5+ (either platform)

- No Fields

- No special naming conventions required for tabs or layouts

best

Stuart

FrontAndSelectedTabs2.fp7.zip

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.