LookupStateName

Description

Returns the name of the Entity object's current state.

If the Entity object is not editable, this method simply returns the current state of the record. If the Entity object is editable and the current action involves a change of state, this method returns the new state of the record.

Remarque : Calling this method from an action access-control hook returns the original state of the record regardless of whether or not the current action is a change-state action.

Syntaxe

VBScript

entity.LookupStateName 

Perl

$entity->LookupStateName(); 
Identificateur
Description
entity
Objet Entity représentant un enregistrement de données utilisateur. Si vous omettez cette partie de la syntaxe au sein d'un point d'ancrage, l'objet Entity correspondant à l'enregistrement de données en cours est faux (VBScript uniquement).
Return value
A String containing the name of the Entity object's current state. If this Entity object is stateless, this method returns an empty String ('').

Exemples

VBScript

' Find the entity's current state name

currentState = LookupStateName 

Perl

# Find the entity's current state name

$currentstate = $entity->LookupStateName(); 

Commentaires