June 14, 200718 yr I have a navigational problem !! When I use a script to go back to a layout with multiple tabs, it is not possible to go back to where I was before executing that script. So is there a way to know what Tab is the front most or active ? Xoomaster
June 14, 200718 yr Check this http://www.bh-a.com/downloads_1.1.html#RestoreTabs You'll need FileMaker Pro Advanced 8.5 to install custom functions. There is also a way without them, but slightly slower if you have many objects on the layout : http://fmforums.com/forum/showtopic.php?tid/186848/post/251214/hl//fromsearch/1/#251214
June 16, 200718 yr Could be solved without "Objects" ... http://network.datatude.net/viewtopic.php?t=140 ...and even without CF's! --sd
June 17, 200718 yr Author Unfortunately dpending on how the tabs are set up, none of the methods above brings the actual front most tab back ! I have added a case / If to make it work !
June 17, 200718 yr May I ask you what situation failed ? I know quite many people using it on a daily basis, and no one has ever reported a problem. I am not saying it is not possible, but I am really curious. What you -normally- need to do is ensure ALL tab panels are named. By the way, on the version included in my demo file, there could be a problem if two layouts had the same name... but it wouldn't be the only problem in your solution I guess :P
June 17, 200718 yr Wrong - take a look at the attached template - run it thru the debuggers trace function! I do deliberately pull tab1 in front while making the 10 records, it could be whatever task ...your fear for the $$ variable might recieve a new irrelevant value doesn't really matter since the original tab was stored in the script parameter, and returned by the Get(ScriptResult) ...and best of all it terminates it's lifetime when the script stops. --sd Untitled.zip
June 19, 200718 yr Author What happens is that yes the front tab comes on but occasionally the front most tab is not returned as such. I know this happens because I don't just go to another record or another layout and back, but at least in my DB buttons are used for navigation and once a series of scripts are run before returning to that layout, the front most tab is replaced with one of the other front tabs that was not the front most tab ! this is only noticible when a tab contains another tab and that tab contains one or more other tabs and so forth. I have checked my scripts, and did the debugging, and none of the steps actually change the variables used. Could it be something I do, I don't know but the layout on which I have tried this, is quiet complicated and has several tabs and portals and multiple relationships which may be contributing to the above ! But there is still not an easy way that I know to find the "Front Most Tab " if you know what I mean. Of cource eary tab has one label that is the front most for that tab, but which tab is setting in front of all collection of tabs is not easily configured in my case. Xoomaster
June 24, 200718 yr Excuse me xoomaster, but what version are you using. I'm using 'my' version every day, so are all LayoutProperties users, and this was never reported. I am NOT talking about the 'go to field loop' method.
June 24, 200718 yr Xoo maybe you could post a file illustrating the error you are returning. I see no reason why these methods would break. If this is happening it would be good to investigate why.
June 25, 200718 yr Author I am using what I downloaded from your post above. yes Stuart Taylor I have used yours also. They all have the same result !
July 7, 200718 yr hi xoo we still have nothing to go on can you not post an example with instructions on how to repeat your result, it would be really useful. best Stuart
July 13, 200718 yr Author As I have mentioned before, my layout is complicated by many portals and different table sources. I'll see if I can give you some insight into the arrangement.
July 23, 200718 yr Author I found one error ! I had two tabs sharing same name on different layout that might have given me the problem above. I am still playing with this thing though.
Create an account or sign in to comment