![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
When I leave a layout to visit a related record I'd like to return to the same place. If I'm on tabbed layout I seem to be returned to the default tab, rather than the one I was working from. Can I keep track of the tab that I was on and go back there? malcolm FM 8.5 you can use object name , for the tab. Parse it to a variable |
#3
| |||
| |||
|
|
lists (AT) notyourhomework (DOT) net wrote: When I leave a layout to visit a related record I'd like to return to the same place. If I'm on tabbed layout I seem to be returned to the default tab, rather than the one I was working from. Can I keep track of the tab that I was on and go back there? malcolm FM 8.5 you can use object name , for the tab. Parse it to a variable ($$_Return) before leaving. Create a Return script and button; I use one on every layout. With the right script sequence, you can make it a back and forth rather than just simple return. If in FM8 (no Object name) use a field unique to the tab; I create a set of globals: g_Tab1, g_tab2... and add one discreetly to each tab. regards Chris |
#4
| |||
| |||
|
|
In article <f7967f$npt$1 (AT) aioe (DOT) org> Chris Brown<cbrown (AT) medicine (DOT) adelaide.edu.au> wrote: lists (AT) notyourhomework (DOT) net wrote: When I leave a layout to visit a related record I'd like to return to the same place. If I'm on tabbed layout I seem to be returned to the default tab, rather than the one I was working from. Can I keep track of the tab that I was on and go back there? malcolm FM 8.5 you can use object name , for the tab. Parse it to a variable ($$_Return) before leaving. Create a Return script and button; I use one on every layout. With the right script sequence, you can make it a back and forth rather than just simple return. If in FM8 (no Object name) use a field unique to the tab; I create a set of globals: g_Tab1, g_tab2... and add one discreetly to each tab. regards Chris Please elaborate on the process of "Parse it to a variable ($$_Return) before leaving." Matt |
#5
| |||
| |||
|
|
lists (AT) notyourhomework (DOT) net wrote: When I leave a layout to visit a related record I'd like to return to the same place. If I'm on tabbed layout I seem to be returned to the default tab, rather than the one I was working from. Can I keep track of the tab that I was on and go back there? malcolm FM 8.5 you can use object name , for the tab. Parse it to a variable ($$_Return) before leaving. Create a Return script and button; I use one on every layout. With the right script sequence, you can make it a back and forth rather than just simple return. |
#6
| |||
| |||
|
|
On Sat, 14 Jul 2007 10:13:24 +0930 Chris Brown <cbrown (AT) medicine (DOT) adelaide.edu.au> wrote: lists (AT) notyourhomework (DOT) net wrote: When I leave a layout to visit a related record I'd like to return to the same place. If I'm on tabbed layout I seem to be returned to the default tab, rather than the one I was working from. Can I keep track of the tab that I was on and go back there? malcolm FM 8.5 you can use object name , for the tab. Parse it to a variable ($$_Return) before leaving. Create a Return script and button; I use one on every layout. With the right script sequence, you can make it a back and forth rather than just simple return. How can I get the current tab name into a variable? This is what I am trying but the tab isn't passing it's name into the script. I suppose the script doesn't regard the tab as "active". store layout data set variable $$LastObject Get(ActiveLayoutObjectName) set variable $$LastLayout Get(LayoutNumber) return to layout Go to Layout ($$LastLayout) Go to Object ($$LastObject) |
#7
| |||
| |||
|
|
Malcolm Fitzgerald wrote: On Sat, 14 Jul 2007 10:13:24 +0930 Chris Brown <cbrown (AT) medicine (DOT) adelaide.edu.au> wrote: lists (AT) notyourhomework (DOT) net wrote: When I leave a layout to visit a related record I'd like to return to the same place. If I'm on tabbed layout I seem to be returned to the default tab, rather than the one I was working from. Can I keep track of the tab that I was on and go back there? malcolm FM 8.5 you can use object name , for the tab. Parse it to a variable ($$_Return) before leaving. Create a Return script and button; I use one on every layout. With the right script sequence, you can make it a back and forth rather than just simple return. How can I get the current tab name into a variable? This is what I am trying but the tab isn't passing it's name into the script. I suppose the script doesn't regard the tab as "active". store layout data set variable $$LastObject Get(ActiveLayoutObjectName) set variable $$LastLayout Get(LayoutNumber) return to layout Go to Layout ($$LastLayout) Go to Object ($$LastObject) response to this recently: Give each tab an object name (using the Info palette). In your script, use the Go To Object step. Howard Schlossberg In Layout, display the Object Info window (View/Object Info) Select the tab (so that the heavy black border is displayed on the tab) Enter a name for the tab in the Object Name field in the Object Info Window. In your script, use the Go To Object script step, specifying the tab name. Matt This may be an 8.5A feature; not in 8.0Adv Chris |
#8
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |