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.

FM11 : Get (AccountPrivilegeSetName) vs Get (CurrentPrivilegeSetName)

Featured Replies

Hi,

I read the help from FM documentation, but it is not clear. What is the difference between the two functions?

Thanks

The way I read it means there is no difference - the function has simply been renamed.

Indeed there is a difference.

An example: a user opens a database with an account and password that is assigned to the "[Read Only]" privilege set. The Get( AccountPrivilegeSetName ) will return "[Read Only]". The Get( CurrentPrivilegeSetName ) will also return "[Read Only]"

However let's say the user now runs a script that is set to run with full privileges. While this script is running the Get( AccountPrivilegeSetName ) function will return "[Read Only]" but the Get( CurrentPrivilegeSetName ) will return "[Full Access]".

In FMP 10 and earlier, the developer had to be careful with the Get( PrivilegeSetName ) function because it would return "[Full Access]" if it was invoked while a script was running with full access. The new function (and renaming of the old) seeks to resolve this issue.

From the function reference:

Get(AccountPrivilegeSetName):) The name of the privilege set that is being used by the account used to open the database file.

Get(CurrentPrivilegeSetName): The name of the privilege set that is being used to evaluate this calculation in the database.

Thanks for the correction Vaughan - I didn't try it out yet.

  • Author

thanks for clarifying this point

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.