Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

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?

Posted

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

Posted

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

Posted

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

Posted

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

Posted

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.

Posted

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

Lee

This topic is 5953 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.