The Exists() function of the sySecurityTaskOperations form verifies whether the specified security task operation exists in Microsoft Dynamics GP.
Exists(task_ID, dict_ID, security_ID, security_restype)
• task_ID – A string specifying the ID of the task which could contain the specified operation.
• dict_ID – An integer specifying the ID of the dictionary that contains the resource for the security operation.
• security_ID – A long integer identifying the resource for the security operation. The following table describes the value to use for each security resource type:
Security resource type |
Security ID |
---|---|
Tables |
Table Resource ID |
Forms |
Form Resource ID |
Reports |
Report Resource ID |
Lists |
Dictionary-specific ID for the list |
• security_restype – An integer specifying the type of resource for the security operation. Use one of the following constants:
Contant |
Value |
---|---|
TABLETYPE |
1 |
FORMTYPE |
2 |
REPORTTYPE |
23 |
SECURITYTYPE_LISTS |
900 |
A boolean. The value true indicates the security task operation exists, while the value false indicates it does not.
To build the security ID for a list, use the BuildDictSpecificID() function. The following constants are defined for the portions of the list for which security can be controlled:
Constant |
Description |
---|---|
LISTSECURITYTYPE_LIST |
The base list |
LISTSECURITYTYPE_PREVPANE |
The information pane for the list |
LISTSECURITYTYPE_CUSTOMIZE |
The customization capability for the list |
Use one of these constants as the product ID (first parameter) for the BuildDictSpecificID() function. Use the unique integer identifier you assigned to the list as the action (second parameter).