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

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

Recommended Posts

Posted

First of all passwords are not directly tied to field or layout access. Passwords control access to "Groups" and "Groups" have privileges to access fields and layouts.

Passwords <--> Groups <--> Layouts, Fields

To accomplish what you wish, you will need to create a group for "no password" which is not allowed access to the "Staff" layout and to a global number field let's call gAccessTest.

As part of your Go to Layout script (you'll need one) for the "Staff" layout, you will need the following test.

Set Field [gAccessTest, "1"]

If [gAccessTest = 1]

Go To Layout ["Staff"]

Else

Show Message ["You must enter with a password to access this information", "OK"]

End If

What this script segment does is try to write a 1 to gAcessTest. If the user's password doesn't allow this, the test for gAccessTest = 1 fails and the user is shown a dialog box instead of being sent to the Staff layout and seeing "Access Denied". -bd

Posted

Or you could just put a script step that uses the "Status(CurrentGroup)" function to determine if a "Show Message" is necessary.

The "Groups" format is one of FMP's kludgier features, and the "Status(CurrentGroup)" function is even more so, because you have to list EVERY combination of possible groups, and it's a pain, but so far it's the simplest method.

HTH,

Dan

Posted

You mean like "Anybody who can remember FileMaker II wasn't really there." ;-)

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