FM - Back Button for Layouts/Windows
Posted on 2014-03-20
Boss wants a simple BACK or PREV button so he can return to the layout he was in. My problem is that we have four files, so Go to Layout [original layout] may work in the same file, but not across dbs. I've made the latter work by capture the window name before navigating and returning. So two questions:
1. Go to Layout [original layout] is not working. Not sure why because it has worked for me before. Nothing happens when you click a button that calls a script with this as the sole script step.
2. How would you know if it is a layout from the same file or not. There is a Get (Filename), so would I just set the equal to a variable and then do an IF statement, IF ( Get (Filename) = $PrevFileName) ? If this is true, then Go to Layout [original layout] should work, if not then I could have previously capature the window name and then do a Select Window ($PrevWindow). Does this sound correct? If so, I just need answer to #1.