GetDefinitionAccess function
Syntax
GetDefinitionAccess(Definition_Type, Key_Collection)
Description
Use the GetDefinitionAccess function to return the access setting of a particular definition for a user.
Note:
Definition type and definition security setting do not apply to runtime operations. You should consider using the GetDefinitionAccess function to determine the access settings of a definition only for PIA components that are considered design-time components.
Parameters
| Parameter | Description |
|---|---|
|
Definition_Type |
Specifies the definition group for creating and modifying definitions as a string value. |
|
Key_Collection |
Determines the keys of the table that contains the Definition Type as a string value. |
Valid definition types:
| Definition Type | Description |
|---|---|
|
ACTIVITYNAME |
Activities |
|
ANALYTIC_MODEL_ID |
Analytic Models |
|
PROBTYPE |
Analytic Types |
|
AEAPPLICATIONID |
Application Engine Programs |
|
APPLICATION_PACKAGE |
Application Packages |
|
APPRRULESET |
Approval Rule Sets |
|
INTERFACE_OBJECT |
Business Interlinks |
|
BUSINESSPROCESS |
Business Processes |
|
COMPONENTINTERFACE |
Component Interfaces |
|
COMPONENT |
Components |
|
FIELD_FORMAT |
Field Formats |
|
DBFIELD |
Fields |
|
FILELAYOUT |
File Layouts |
|
TYPECODE |
File Type Codes |
|
HTML |
HTML |
|
IMAGE |
Images |
|
MENU |
Menus |
|
CHANNEL |
Message Channels |
|
MESSAGE |
Messages |
|
MOBILEPAGE |
Mobile Pages |
|
OPTMODEL |
Optimization Models |
|
PAGE |
Pages |
|
PROJECT |
Projects |
|
QRYNAME |
Queries |
|
RECORD |
Records |
|
SQL |
SQL |
|
STYLESHEET |
Style Sheets |
|
STYLE |
Styles |
|
TRANSLATE |
Translate Tables |
|
TREE_STRCT_ID |
Tree Structures |
|
TREE_NAME |
Trees |
Returns
Integer.
| Numeric Value | Description |
|---|---|
|
0 |
Full access. |
|
1 |
Display only access. |
|
2 |
No access. |
Example
&Access = GetDefinitionAccess("RECORD", "PSOPRDEFN");
If &Access = 0 Then
WinMessage("You have Full Access", 0);
Else
If &Access = 1 Then
WinMessage("You have Display-Only Access", 0);
Else
WinMessage("You have No Access", 0);
End-If;
End-If;