August 3, 200817 yr 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?
August 3, 200817 yr 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
August 3, 200817 yr Author Thank you! I will try it. The buttons are on a "Gateway" to the files so they are not in yet.
August 3, 200817 yr 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
August 3, 200817 yr 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
August 3, 200817 yr 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
August 4, 200817 yr 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.
August 4, 200817 yr 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