Security()

Examples


The Security() function is used to verify whether the current user has access to the specified resource.

Syntax

Security(product_ID, restype, item_ID)

Parameters

product_ID – An integer specifying the ID of the product that contains the item for which security is being examined. This must be an integer variable. If an alternate version of a form or report is being used, the product ID of the dictionary containing the alternate version being used will be returned to this parameter.

restype – An integer that specifies what type of item is being examined. The value corresponds to one of the following constants:

[spacer]

Constant

Description

FORMTYPE

A form

REPORTTYPE

A report

TABLETYPE

A table


item_ID – An integer specifying the resource ID of the item for which security is being examined.

Return value

An integer. The value 0 indicates the user has access, while the value corresponding to the constant REJECT_RECORD indicates they do not.


Documentation Feedback