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.

Re-Login script step

Featured Replies

I need to offer the possibility to re-login into the system in FMP7, because I have a lot of users using diferent computers

First, it's not important the number of windows that are open, but rather the number of files. To get each file logged out (or logged in with a new user) will require a master calling script that executes a relogin sub-script in each open file. You can tell which files are open (hidden or not) with the DatabaseNames function. Check the list of database names that function returns for each file in your solution to decide if you should run the relogin script in each of those files:

If [ position(DatabaseNames; "Contact

  • Author

Thanks for answering, Ender

If you use a custom dialog for the login window, and have this pop up when the user logs out, you can choose to not have a cancel button (this would keep the new user from accessing the file with the previous login.) The custom dialog might just have a "Quit" button and a "Login" button, where the Login button attempts to use the account and password from the input fields for a Relogin. When the login is successful, ALL open windows for that file will have the access privileges of the new user.

If you still want to close all the other windows so your user always starts in the main menu, then have the Logout script close all open windows except one (or except the main menu.)

Window management can be somewhat complex, and it's not clear how you're managing yours. If your scripts are going to be opening new windows, then it may be helpful to give them meaningful names that can then be used to identify the windows in future navigation scripts and in this case, the Logout script. You can figure out which windows are open by using the WindowNames function in the same way I described the DatabaseNames function above.

  • Author

Thanks again and again, Ender !!!

So for my first problem

The problem with FileMaker's login window, is that Cancel button. If logging out brings up the relogin window, the next user could cancel it to gain access to the system with the previous user's account. The custom dialog is one way to prevent that.

I suppose you could have a dummy account setup where logging out actually does a Relogin (no dialog) to this dummy account. This dummy account would not have access to do anything but see a login layout and execute scripts. So after logging in with the dummy account, then a normal Relogin would allow the next user to login--and canceling the Relogin would only give access to the login layout. You can put a "Login" button on this layout so they can get back in after canceling.

  • Author

The problem with FileMaker's login window, is that Cancel button. If logging out brings up the relogin window, the next user could cancel it to gain access to the system with the previous user's account. The custom dialog is one way to prevent that.

I suppose you could have a dummy account setup where logging out actually does a Relogin (no dialog) to this dummy account. This dummy account would not have access to do anything but see a login layout and execute scripts. So after logging in with the dummy account, then a normal Relogin would allow the next user to login--and canceling the Relogin would only give access to the login layout. You can put a "Login" button on this layout so they can get back in after canceling.

That is a wonderful idea, Ender

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.