Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

Hi,

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

Thanks

Posted

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

Posted

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.

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