army2002 Posted March 9, 2013 Posted March 9, 2013 I have solution with many layouts, including Main Menu layout, Data Entry Layout, Repots Printing Layout How can I make the solution to go back to Main Menu after closing Data Entry or Reports Printing Layout.
doughemi Posted March 10, 2013 Posted March 10, 2013 In Layout Setup, under the Script Triggers tab, choose OnLayoutExit.
army2002 Posted March 10, 2013 Author Posted March 10, 2013 I did but it didnt work...once I close the layout it the solution get closed too.. I want it to go back to main menu layout once I close that layout
doughemi Posted March 10, 2013 Posted March 10, 2013 How are you trying to "close" the layout? Do you mean you want to close the window via the windows X icon? The easiest way is to open your Data Entry or Reports layouts in a new window.
army2002 Posted March 10, 2013 Author Posted March 10, 2013 Yes, that's correct, I close it through x-icon How can I open the layout through new window?
doughemi Posted March 11, 2013 Posted March 11, 2013 If you are navigating to the layout with a button, have it call a script: New Window Go to Layout[theLayout] 1
Rick Whitelaw Posted March 11, 2013 Posted March 11, 2013 If you're scripting this and your file has an OnLastWindowClose script and the window is the only one in the file that's open, you should script the New Window step before closing the first one if you don't want to trigger the script. Rick.
David Jondreau Posted March 12, 2013 Posted March 12, 2013 One question, is how does a user close the solution? If it's using the Close Window button while on the Main Menu layout, that makes sense. There's two ways, one is with a custom menu that runs a script instead of the close window. The other is with a script trigger onLastWindowClose. Either way, the script should check to see what layout it is on. If it's a custom menu, then the script should check to see if you're on the Main Menu layout. If yes, Close Window[], if no, Go to Layout[Main Menu]. If it's onLastWindowClose check to see if you're on the Main Menu layout. If yes, Exit Script[], if no, Go to Layout[Main Menu] and Exit Script[False].
Recommended Posts
This topic is 4576 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now