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

When someone out side the priviledge set tries to click on a button, how do you get a button to show a message that says you do not have access to this file?

If they are viewing a button on a layout of the file, then they have access.

However, the usual way to script priv set limits (in sync with access priv calcs, perhaps) is something like:

If [Get (PrivilegeSetName) <> "Admin"]

Show Dialog (You must be logged in as Admin to access this feature.")

Else

do admin script/stuff

End If

  • Author

Thank you! I will try it. The buttons are on a "Gateway" to the files so they are not in yet.

  • Author

If there are others besides Admin that have access will the script look like:

If [Get (PrivilegeSetName) <> "Admin" ; "Principal" ; "Teacher"]

Show Dialog (You must be logged in as Admin to access this feature.")

Else

do admin script/stuff

End If

  • Author

do admin script/stuff

What is this??? Do I type this in the script too?

No, whatever Else you want the script to do.

You can just as easily end the script

If [Get (PrivilegeSetName) <> "Admin" ; "Principal" ; "Teacher"]

Show Dialog (You must be logged in as Admin to access this feature.")

Exit Script

End If

  • Author

Thank you! :waytogo:

I don't know what you mean by a "Gateway."

If they should not have access to a file, then don't give them an account to the file.

I'm sorry about posting pseudo-script language, I didn't mean to confuse you and my example assumes that you have defined a priv set "Admin."

If you have multiple priv sets that don't have access, it might be easier to script it like so:

If [ Get (PrivilegeSetName) = "Admin"]

..steps to continue the routine

Else

Show Dialog (You must be logged in as Admin to access this feature.")

EndIf

  • Author

All users login at their level to Gateway which is a file with just buttons. Each button has limited access based on the users' priviledges that they used to login to the Gateway.

The user's Gateway login priviledge level is = to the buttons. All users see all butttons but their login to Gateway restricts which buttons will work for them.

I want the buttons that will not work for the user to have a message instead of the script that is running asking them to login to the button.

They will get a login request everytime they click a button that they don't have access to...I would like a message saying restricted. The login prompt is misleading.

Is this "Gateway" file one that you made, or is it a commercial product?

Lee

  • Author

I made it so, the users don't have to select from a long list of files on a remote server.

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.