3 Replies Latest reply on Apr 3, 2013 8:03 AM by philmodjunk

    go to window navigation



      go to window navigation


           I have a calendar window that pops up an event edit window when it is clicked.  It is a floating window.  is there any way to script a navigation in another window?  for example, if i click on a different event, it would switch my pop up window to that event?   right now, I just script a window close and reopen but that changes the location of the window that the user moved it too. 

           Also, is there anyway to open another window with the top left corner located where the mouse click happened?

        • 1. Re: go to window navigation

               If you use the Select Window script step, you can click a control in one window and the script that is performed can change focus to the other window to do what is needed to change the display in that window.

               In some cases, you can calculate the position of the object that was clicked to set the top and left values for the window. Get functions can return the top and left values of the window in which the button is located and then you calculate an offset from that to get the position of the clicked button.

               But this won't work if the button is inside a scrolling portal or list view.

          • 2. Re: go to window navigation

                 I completely overlooked "select window"  thank you.  

                 How can I script -

                 If (window is not open(window name))

                     Open window named (window name)


                      select window (window)

                      go to related record

                 end if

            • 3. Re: go to window navigation

                   If [ IsEmpty ( FilterValues ( WindowNames ; "Your Window Name" ) ) // window is not open ]

                   WindowNames is a function that returns a list of all currently open FileMaker names.