October 23, 201312 yr 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
October 23, 201312 yr 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]
Create an account or sign in to comment