January 10, 201411 yr Newbies 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.
January 10, 201411 yr 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
January 11, 201411 yr 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)) ) )
Create an account or sign in to comment