Herb Posted October 22, 2008 Posted October 22, 2008 When I use these functions: Get ( PrivilegeSetName ) Get ( ExtendedPrivileges ) I get the same value no matter which user is logged on. My accounts and priledges are shown in the attached. What might I be doing wrong? Thanks. extendedpriv.bmp priv_sets.bmp
Vaughan Posted October 23, 2008 Posted October 23, 2008 How are you using them? If they are used in a calculation field, the field must be set to "unstored" to make it re-calculate. Looking at your attached images, I'm not sure what the extended privileges you have created are supposed to do. FileMaker Pro help says this about extended privileges: FileMaker as well as third-party developers may provide additional software products designed to work with FileMaker Pro and FileMaker Server. A product like this may require you to add a new extended privilege if you want to control who can access a database file with the additional product. If you want to restrict a user from editing a table, you set up a new privilege set (as opposed to an extended privilege) that limits the access to the table.
Herb Posted October 23, 2008 Author Posted October 23, 2008 Thanks for your ideas. My intention was to capture the users intent to open a particular screen and stop it with a custom error message. That is why I was attempting to use a Get function in the button script. Thanks for your help.
Vaughan Posted October 23, 2008 Posted October 23, 2008 You're on the right track... just the wrong implementation. Forget the extended privileges. delete the one you've added. Create a new privilege set. Associate the user with the new privilege set. You can even set up the privilege set to not allow the layouts to be viewed, but it looks ugly. Instead, script the navigation. In the script have a conditional that does the check with Get( privilegeSetName )... If [ Get( PrivilegeSetName ) = "NewPrivilegeSet" ] Beep Show Message [ You cannot view this screen." ] Else Go to Layout [ special layout ] End If
Recommended Posts
This topic is 5874 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 accountSign in
Already have an account? Sign in here.
Sign In Now