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

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

Recommended Posts

  • Newbies
Posted

I use a main menu layout to navigate through the various tables and layouts with buttons. I'm trying to write a script that will ask if a window with a certain name is open, then go to it, or if not then run a script I have to open a new window and go to a particular layout. Trying to prevent having multiple windows open with the same table/layout. Any suggestions. Thanks.

Posted

Hi and welcome to the forum.

 

Although the forum accepts members of all skill levels, we do expect that the members to have some basic knowledge of FileMaker. At a minimum they should have read through any user manual or PDFs that came with your Application.

 

In response to your question, check out these two help links  “Go to Layout” and "Using a button with a script."

 

 

Lee

Posted

The windowNames function will give you the list of existing open windows:

 

http://www.filemaker.com/11help/html/func_ref1.31.47.html#1030146

 

windowNames( get( fileName))

 

The FilterValues function tells you if item(s) you are looking for are in a list:

 

http://www.filemaker.com/11help/html/func_ref3.33.49.html#1030153

 

FilterValues( textToFilter; FilterValues)

 

So this expression lets you know if "Invoices" is in the list of existing open windows:

 

isEmpty( filterValues( "Invoices"; windowNames( get( fileName)) )  )

  • Like 1

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