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 Specifications

FileMaker 8 Product Line

Specifications and Storage Limits

Field Types and Import/Export Formats

: Calculation Functions

Working with Calculations Primer

Calculation Signatures

Calculation Functions

: Custom Functions

Custom Functions Primer

Useful Custom Functions

: Script Steps

Scripting Primer

Script Step Reference

: Quick Reference

FileMaker Error Codes

FileMaker Keyboard Shortcuts

FileMaker Network Ports

FileMaker Server Command Line Reference

FileMaker XML Reference

: Other Resources

Where to Go for More Information



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

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