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

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

Recommended Posts

Posted

I am trying to control the opening and closing of windows in my db.

In the solution I am developing I have a script that opens a new window/layout to pick from a small list records, the next script step closes the new window you just made your choice from and it is supposed to take you back to the main parent window and complete the rest of the script. But it only works because I know what the window name should be.

Script Steps

Close Window [Current Window]

Select Window [Name "database name"]

Perform Script [" Next Script Steps "]

I have it all working fine but found one step that is less than perfect.

I have a 2nd copy of this db for development and testing, I have renamed it database_DEV

The script step is broken because it is set to select a window with a predefined name. Is there a way I can control with better? I want it to just go back to the parent db without having to know the name of the window. Is there a calculation that will tell one window what window it was created from?

grumbachr

( I hope I explained that well enough )

Posted

If the script that created the new window is called from the "parent db" window, you could set a global to Get ( WindowName ) and then at the other script after the window for choosing is closed choose a Select Window script step set to this global. I prefer to just close the top window and let the next window below become active. It is what most users see in other programs anyway.

This topic is 7353 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.