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.

Refresh Window with Multiple Windows

Featured Replies

I have been struggling with a Window Refresh problem - have found a solution but do not understand why the problem occurs.

I have a script which adds new records (in a new window) and then returns to the original window with a portal containing those records. The new window is closed after adding the records. The portal uses conditional highlighting to show the record just added and has a GoToField step to open a related record on the same layout, ready for editing.

The script looks like:

New Window [ Name: "Updates"]

Go To Layout [ "Updates (Updates) ]

{Various Set Field steps follow}

Select Window [ Name: "Home" ]

Refresh Window [Flush Cached Join Results ]

Go to Field [ Current Update::Update Text]

Close Window [ Name: "Updates" ]

This results in Error 101 - Record is Missing on the Go To Field step and the portal not correctly Refreshed.

But closing the second window first as in:

New Window [ Name: "Updates"]

Go To Layout [ "Updates (Updates) ]

{Various Set Field steps follow}

Close Window [ Name: "Updates" ]

Select Window [ Name: "Home" ]

Refresh Window [Flush Cached Join Results ]

Go to Field [ Current Update::Update Text]

Results in the script correctly Refreshing the portal and going to the correct field.

Surely the Refresh Window step should work in either case as the Active Window has already been specified by the Select Window step.

Grateful if anyone can explain the logic to me as it makes little sense to me.

Jim

In the first script, does the new record get committed before switching back to the first window?

  • Author

That fixes it - many 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

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.