Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Sync Floating Document Window with same record as Launch Window

Featured Replies

Hello

What is the best way to keep a floating document window on the same record as it's launch window when both windows are based on the same table?

Also, is there any way to get the Floating Document Window to work in an expected way with Windows 7? It does not seem to be possible to work in both the floating window and the main window with the main window maximized and the floating window kept to specific dimensions.

Thank you

What is a "floating document window?"

On Windows, you cannot create a new window without affecting the background window's size if the background window is maximized. The typical work-around is to size the window to be just smaller than max. Use Resize to Fit.

  • Author

Floating Document Window is a New Window option in FMP 12 that keeps the new window on top.

I'll give your suggestion a try, thanks.

Any advice on how to keep the two windows on the same record?

I really don't understand your scenario. You want the user to have two windows and always have them looking at the same record? Hmm...I don't think it's straightforward. I'd assume that navigation would need to close the floating window and reopen it after the record switch.

  • Author

I ended up having it go to the same record number in the second window, checking to make sure it is still on the same record ID and if not it reopens the second window.

Still not following:

"I ended up having it go to the same record number in the second window"

..and you did this, how?

You could always create a relationship between the primary key of the table (and itself) then use GTRR and select "show in new window"

Kiwiora, it seems the requirement is more complicated than that. I understood the need to have two windows open at once, and as he changed the record in Window1, he wanted to update Window2 to be on the same record. Perhaps I jumped to conclusions.

  • 3 weeks later...
  • Author

To answer:

"I ended up having it go to the same record number in the second window"

..and you did this, how?

To explain what I'm doing a little, the second window is a Calculator that allows a user to click on fields in the first window, sets a global text field to add the field name so the user can build calculations. A second field then evaluates the calculation for each record. This calculator floats as the top window until closed. Navigation is only in the first window, but there's nothing stopping a user from performing a find or sorting in the second window.

What I did to sync the windows:

When the second window is launched, a variable is set to indicate it is open.

The main window has an OnRecordLoad script trigger that checks for the variable to see if the second window is open.

If so, Item number (key field) and Record number variables are set.

The second window then goes to the same record number as the main window and checks to make sure the item number is the same as the main window.

If the Item number is not the same, the second window closes and reopens.

In the case that a user performs a find or sort in the second window, I added a sync button on the second window.

Didn't I say, " I'd assume that navigation would need to close the floating window and reopen it after the record switch." Oh well.

In the first window, put the current record's primary key into a global field. Base a self-join relationship on this global field. In the second window use a single-row portal to the self-join to display the related record (which will always be the same record that's in the first window, though it might need a refresh to display). Use a onRecordLoad script trigger in the first window to update the global field when the record changes.

The portal in the second window probably won't be needed, just put the related fields on the layout.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.