May 9, 200718 yr 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
May 9, 200718 yr 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.
May 9, 200718 yr 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
May 9, 200718 yr 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 May 9, 200718 yr by Guest
May 9, 200718 yr 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.
May 9, 200718 yr 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
May 9, 200718 yr 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
May 9, 200718 yr Here : http://www.bh-a.com/downloads_1.1.html#RestoreTabs would love to see yours too :
May 13, 200718 yr 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