Vous êtes ici: Help Topics > Customization > Calculation > DOCENTSCP Function

DOCENTSCP Function

This function determines whether the current document is assigned to the currently selected entity.

Syntax

DOCENTSCP("Entity",ParentOnly)

Where Entity is the entity identifier. ParentOnly is a numerical argument that allows you to specify whether to look in the current entity only (1) or the current entity and any child entities below it (0).

Example

DOCENTSCP(RAWENT("ENT1"),0)

This function will return true if the current document's entity matches ENT1 or any of ENT1's child entities below.

Related Topics