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.

Featured Replies

Hi All

 

My system uses "modules" which have additional windows that open out from it. I want to make sure the related module windows are closed before the user attempts to "close the module"

 

For example: from the main menu the user can click "Lenses" which will take them to a list of lenses in a new window. The user can click the lens they want and it will open in a new window called "Lens QC {Name of lens}"

 

I'm trying to prevent them from closing the "Lenses" module window while the "Lens QC ..." window(s) are still open. Each window has an Exit button.

 

Currently I'm using this script (which I know isn't the best route to take). This script is attached to the Exit button in the Lenses module.

If [FilterValues ( WindowNames ; "Lens QC" ) = ""]
Close [Current Window]

This script works just fine, but I've had to eliminate the {Name of lens} portion of my window name as this script fails to recognize anything except "Lens QC" and will exit the script as it's supposed to. Including the {Name Of Lens} portion makes it easier for my users to find records they have already opened, but minimized. I believe a ¶ symbol should be placed somewhere in there, but I can't seem to figure it out.

 

Advice? :)

Don't compare things to "" instead use the IsEmpty() function, that's what it was invented for.

 

IsEmpty( FilterValues ( WindowNames ; "Lens QC" ) )


I'd try to work out why the "name of lens" part isn't working: it should work.

 

An alternative approach I'd think about is to let people do what they think is natural, but to clean up after them: that is, let them close the "name of lens" window as they like, but as part of these windows closing check that the main Lenses module window is still open, and open one if it's not.

  • Author

Your script works great while the Lens QC windows are just named Lens QC. The name of the window actually comes from a calculation, which I think is where FM is failing to recognize.

 

Window Name:

"Lens QC" & " - " & assets::_description

How would I implement your script to look for windows called "Lens QC" regardless of what asset description trails it? Would the Left function come in to play?

 

Cheers!

Create an account or sign in to comment

Important Information

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

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.