Jump to content

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


This topic is 6165 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • 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

Link to comment
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.

Link to comment
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

Link to comment
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
Link to comment
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.

Link to comment
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

Link to comment
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

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

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