CreateSecurityTask()

Examples


The CreateSecurityTask() function of the sySecurityTask form creates a new security task.

Syntax

CreateSecurityTask(task_ID, task_name, description, category)

Parameters

task_ID – A string specifying the ID of the security task that is being created.

task_name – A string specifying the name displayed for the security task.

description – A string specifying the description for the security task.

category – An integer specifying the category for the security task. Use one of the following constants, defined in the sySecurityRoleEntry form:

[spacer]

Constant

Description

CATEGORY_COMPANY

Company

CATEGORY_FINANCIAL

Financial

CATEGORY_INVENTORY

Inventory

CATEGORY_OTHER

Other

CATEGORY_PAYROLL

Payroll

CATEGORY_PROJECT

Project

CATEGORY_PURCHASING

Purchasing

CATEGORY_SALES

Sales

CATEGORY_SYSTEM

System


Return value

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

[spacer]

Constant

Description

OKAY

The security task was added successfully

DUPLICATE

The security task already exists



Documentation Feedback