Skip 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.

Freeze Window - not behaving as expected

Featured Replies

I read the documentation on the "Freeze Window" script step provided by FMI and in the Scott Love, et al., book FM 8 Functions and Scripts (page 301). The Love books says that you can navigate to a utility layout and return to the "main" or original layout and the user won't see the the window change while this is happening.

So I wrote a test script (see below) that switches between two layouts, Main1 and Main2 and uses the

Freeze Window step. I added some pause steps to see what is happening and sure enough, the window does NOT freeze.

What am I not understanding?

TAI

--Sam

I'm using FM 8.5 Advanced on Mac OS 10.4.7

--- TEST Script ---

Go to Layout [ “Main1” (Main1) ]

#

Set Field [ Main1::x; "" ]

Set Field [ Main1::y; "" ]

Set Field [ Main1::z; "" ]

#

Freeze Window

#

Go to Layout [ “Main2” (Main2) ]

Enter Browse Mode

#

Pause/Resume Script [ Duration (seconds):/ 1 ]

Set Field [ Main2::x; "Test 1" ]

Pause/Resume Script [ Duration (seconds): 1 ]

Set Field [ Main2::y; "Test 2" ]

Pause/Resume Script [ Duration (seconds): 1 ]

Set Field [ Main2::z; "Test 3" ]

Pause/Resume Script [ Duration (seconds): 1 ]

#

Enter Browse Mode

Go to Layout [ “Main1” (Main1) ]

Refresh Window

I'm going to love hearing the answer on this one. Same problem.

It's a classic case of observation interfering with the test results. When you pause a script, Filemaker assumes you do it to give the user a chance to enter some data. So the current layout is presented to the user. Get rid of the pauses, and the window will stay frozen on the original layout.

In order to test this, you could use Set Field[] with a complex calculation (a custom function, for example) - see attached.

BTW, Enter Browse Mode is entirely redundant when you already ARE in Browse mode.

Freeze.fp7.zip

  • Author

Thanks.

I figured it had to be something "simple"!

I noticed that your sample file "New Script" doesn't even have a "Freeze Window" step, yet you switch to the Child Layout, Set Fields, then switch back

to the Parent Layout, with out the window changing.

Why did that work?

TIA

Yes, I forgot to freeze the window, but it just illustrates the point:

Redrawing the window is a lot of work, and Filemaker is a lazy application. It only refreshes when *it* thinks something happened that justifies the effort.

  • Author

Thanks very much for the feedback and help.

This seems to be the only way to learn many of the "undocumented" features in FMP. It would be "nice" if books such the FM8 function & script deskref by Love et al, would go beyond just repeating what is already in the documentation.

regards...

  • 4 weeks later...

I have Freeze Window in ascript that runs several scripts. Each script also contains the Freeze Window.

The problem is when the sorting records window pops up and then disappears it leaves a white box (looks like it hs erased whatever is behind it).

Is there anything I can do to fix that?

Thanks

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.