Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4274 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

 

 

 

Posted

In Layout Setup, under the Script Triggers tab, choose OnLayoutExit.

Posted

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

Posted

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.

Posted

If you are navigating to the layout with a button, have it call a script:

 

New Window

Go to Layout[theLayout]

  • Like 1
Posted

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.

Posted

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].

This topic is 4274 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.