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.

Make Window Visible via Calculation

Featured Replies

When a user adds a note to our database, a new window opens with fields to add a note. This design is so the user can read information from the client's record while entering a note.

There are times where the note-entry window fall's behind the client's record window.

I see there is a function of Get(WindowVisible) that will return a number if it is visible or not but i was wondering if there was a function that would make a window visible.

What i would like to do is when a user starts a new note, check to see if there is a note-entry window already open and bring it to the foreground so they can save their note before starting another.

Hope this makes sense.

Thanks

What i would like to do is when a user starts a new note, check to see if there is a note-entry window already open and bring it to the foreground so they can save their note before starting another.

If the note entry window is consistently named then this is easy to do.

In the script that opens the note window, issue a Select Window step and specify the note window name. Trap for errors. If a window with that name is open it will bring it forward. If there is no window with that name the Select Window step will return an error; use the Get( LastError ) function to check for a non-zero error and if so the window does not exist so make a new one.

Set Variable [ $windowname ; "Notre Window" ]

Set Error Capture [on]

Select Window [ $windowname ]

Set Variable [ $error ; Get( LastError ) ]

Set Error Capture [off]

If [ $error = 0 ]

# WIndow already open

..etc..

Else

New Window [ $windowname ]

...etc..

End If

  • Author

The window is consistently named. I will give your example a try tomorrow. Thanks for the input.

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.