Jump to content
Sign in to follow this  
Christopher Gauntt

Remember All Front Tab Orders in all Tab Controls for any layout

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

would love to see yours too :

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Thank you !

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Who Viewed the Topic

    1 member has viewed this topic:
    siroos12 
×

Important Information

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