AddSecurityTaskOperation()

Examples


The AddSecurityTaskOperation() function of the sySecurityTaskOperations form adds an operation to the specified security task.

Syntax

AddSecurityTaskOperation(task_ID, dict_ID, security_restype, security_ID)

Parameters

task_ID – A string specifying the ID of the task to which an operation is being added.

dict_ID – An integer specifying the ID of the dictionary that contains the resource for which a security operation is being added.

security_restype – An integer specifying the type of resource for which a security operation is being added. Use one of the following constants:

[spacer]

Contant

Value

TABLETYPE

1

FORMTYPE

2

REPORTTYPE

23

SECURITYTYPE_LISTS

900

SECURITYTYPE_SMARTLISTOBJECT

1000


security_ID – A long integer identifying the resource for which a security operation is being added. The following table describes the value to use for each security resource type:

[spacer]

Security resource type

Security ID

Tables

Table Resource ID

Forms

Form Resource ID

Reports

Report Resource ID

Lists

Dictionary-specific ID for the list

SmartLists

Dictionary-specific ID for the SmartList object


Return value

An integer indicating whether the operation was added to the security task. The value corresponds to one of the following constants:

[spacer]

Constant

Description

OKAY

The operation was added successfully

DUPLICATE

The operation already exists


Comments

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:

[spacer]

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).

To build the security ID for a SmartList object, use the BuildDictSpecificID() function. Use your dictionary ID (first parameter) and the ID value you assigned to the SmartList object you created as the action (second parameter).


Documentation Feedback