Jump to content

Button Message


CobyUSA

This topic is 5741 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This topic is 5741 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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