rvfowler2
asked on
FM - Back Button for Layouts/Windows
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.
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.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
As noted, you can always begin by moving the interface elements to your central file and leave the data where it is.
Will actually has a really good document on how to consolidate as quickly and painlessly as possible. Sometimes folks underestimate how important the order in which you do parts of the process is; it can mean the difference between some quick copy/pastes and hours of rewriting value lists and such. I thought Will did a very thorough job with all those considerations; his article can save you a good bit of time.
https://www.experts-exchange.com/A_4722.html
https://www.experts-exchange.com/A_4722.html
ASKER
Thanks, I already have used Will's article. It's just that my files are so complex in their TO relationships that I need to be careful not to impact business. And yes, Will also considering moving interface elements to a central file, but want to think through any ramfications.
You can actually try it without changing your existing system. Just duplicate the interface in the main file but don't give users access to those layouts until you've tested it sufficiently.
ASKER