March 9, 201312 yr 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.
March 10, 201312 yr Author 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
March 10, 201312 yr 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.
March 10, 201312 yr Author Yes, that's correct, I close it through x-icon How can I open the layout through new window?
March 11, 201312 yr If you are navigating to the layout with a button, have it call a script: New Window Go to Layout[theLayout]
March 11, 201312 yr 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.
March 12, 201312 yr 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].
Create an account or sign in to comment