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.

Override using different user's credentials

Featured Replies

Hello,

 

I would like to allow overrides by those with a different privilege set. 

 

Here's the scenario:

 

A user with privilege set "Basic" tries to put in a value into a field that is out of a specific range based on a calculation. I would like this user to find someone with Privilege set "Super" to click an override button, which would ask for their username and password. Once entered, FM would verify that they are one of the users with privilege set "Super" and then allow the field. The original user would then continue to use the database with their account. 

 

The only way you can verify that the person asking for access is entitled to have it is through the login process. So that "override button, which would ask for their username and password" needs to call the Re-Login[] script step. Unfortunately (or fortunately, depending on your point of view), there is no provision to automatically re-login back to the original account; the "Basic" user will have to re-enter their credentials (or at least the password) after the supervisor has logged out.

  • Author

Thanks Comment. I think this will work just fine for me. We use FMGo on iPods so it makes sense that you would have to at least put your password in when you hand it to someone else. The easiest way I have found is to do the following:

 

Set variable [$user]

Re-Login

If [Get (AccountPrivilegeSetName) = "Super"

        Perform Action

    Else

    Show Custom Dialog ["That user is not authorized"]

    Exit Script

Re-Login [user = $user]

 

 

 

Just out of curiosity, do Globals carry over during a re-login?

Re your script: the way you have it now, when the supervisor hands the device back, it is still the supervisor that is logged in. You need to ask yourself what happens if the original user does NOT enter his/her password.

 

 

do Globals carry over during a re-login?

 

That's a very good question. I suspect they do, but I don't know for sure. In any case, I suppose your script's "action" includes creating a record of what was done (and by whom), so you do have a place to deposit your valuables for the transit.

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.