Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Global Fields Not Populating with AccountName, and Privilege Sets

Featured Replies

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

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]
  • Author

Oh my goodness!  Thank you so much!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.