Get(LayoutAccess)
Category: Get
Syntax: Get ( LayoutAccess ) |
Parameters: None
Data type returned: Number
Description:
Returns a number that represents the current user's record access privileges level for the current layout. Privileges are assigned in the Custom Layout Privileges dialog box
The Get (LayoutAccess) function can be used to alert users of restricted privileges at the layout level. Note that Get (LayoutAccess) returns information about only the current layout. Record access privileges for any other layout are not represented.
Note also that Get (LayoutAccess) does not return information about whether or not the layout itself is accessible, but rather what access the user has to edit record data via the current layout.
The Get (RecordAccess) function evaluates record access privileges independent of the Get (LayoutAccess) function. To fully evaluate record access, evaluate the return values of both the Get (LayoutAccess) and Get (RecordAccess) functions.
Examples:
Function |
Results |
---|---|
Get(LayoutAccess) |
Returns 0 if the custom layout privileges of an account's privilege set allow "no access" to records via this layout. |
Returns 1 if the custom layout privileges of an account's privilege set allow "view only" access to records via this layout. |
|
Returns 2 if the custom layout privileges of an account's privilege set allow "modifiable" access to records via this layout. |