Get(ExtendedPrivileges)

Category: Get

Syntax: Get ( ExtendedPrivileges )

Parameters: None

Data type returned: Text

Description:

Returns a delimited list of extended privileges, separated by carriage returns, currently assigned for use by the active account in a given database file. Extended privileges are additional access rights assigned to a privilege set; by default they control such things as access via the Web, via ODBC/JDBC, and via FileMaker Networking, but developers can add their own extended privileges as well.

If the user's privilege set doesn't have any extended privileges enabled, Get( ExtendedPrivileges ) returns an empty list.

To test whether a user has a certain extended privilege, use one of the following formulas:

 PatternCount (Get (ExtendedPrivileges); "salesNorthWestRegion")

If this function returns anything other than 0, then the user has the salesNorthWestRegion extended privilege.

The Position() function can also be used:

 Position (Get (ExtendedPrivileges); "fmiwp"; 1; 1)

In this case, any value greater than 0 indicates the presence of the fmiwp privilege.

Examples:

If the currently logged-in account uses a privilege set that includes the extended privileges of Access via Instant Web Publishing (keyword fmiwp) and Access via FileMaker Network (keyword fmapp).

Function

Results

Get (ExtendedPrivileges)

Returns fmiwp¶fmapp.






FileMaker 8 Functions and Scripts Desk Reference
FileMaker 8 Functions and Scripts Desk Reference
ISBN: 0789735113
EAN: 2147483647
Year: 2004
Pages: 352
Simiral book on Amazon

Flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net