Jump to content

Global Fields Not Populating with AccountName, and Privilege Sets


4Justme2

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

Recommended Posts

I tried to post this earlier but it didn't seem to post; please forgive if I've ended up posting this twice.  My goal here with this attached file is to get use to working with security levels, passwords and privilege sets and using them to navigate through various layout based on permission levels.  I'm starting small.

 

I have a script that runs on open, and is suppose to initialize the global fields in the GlobalsAndUI table; however, the globals are not populating.  Can anyone advise me on what I have wrong? 

 

 

 

 

There are three passwords:

 

Account name: Full Access, password Full Access

Account name: Data Entry Only, password Data Entry Only and

Account name: Read-Only Access, password Read-Only Access

 

When the file opens a splash screen is displayed for 2 seconds, followed by what should the appropriate Menu (which should be based on privilege set); three menu layouts, one for each of the three account types above... but this isn't working as my globals aren't populating.

securityTest.zip

Link to comment
Share on other sites

You are not telling FileMaker what value to set each field to in your InializeGlobals script.  You need to add a Calculated Result to each Set Field step. 

 

Enter Browse Mode []
Set Field [GlobalsAndUI::gCurrentStaffID; StaffID]
Set Field [GlobalsAndUI::gCurrentAccountName; Get(AccountName]
Set Field [GlobalsAndUI::gCurrentAccountPrivilege; Get(PrivilegeSetName]
Set Field [GlobalsAndUI::gCurrentStaffFullName; StaffFullName]
Link to comment
Share on other sites

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