IsActionDefName

Description

Identifies whether the EntityDef object contains an action with the specified name.

Syntax

VBScript


entitydef.IsActionDefName name 

Perl


$entitydef->IsActionDefName(name); 
Identifier
Description
entitydef
An EntityDef object corresponding to a record type in a schema.
name
A String containing the name of the action to verify.
Return value
True if name is the name of an actual action in the EntityDef object; otherwise False.

Examples

VBScript


set sessionObj  = GetSession
set entityDefObj = sessionObj.GetEntityDef(GetEntityDefName())

If entityDefObj.IsActionDefName("open") Then
   sessionObj.OutputDebugString "The record type supports the open action"
End If 

Perl


$sessionObj = $entity->GetSession();

$entityDefObj = $sessionObj->GetEntityDef($entity->GetEntityDefName());



if ($entityDefObj->IsActionDefName("open"))

 {

 $sessionObj->OutputDebugString("The record type supports the open action");

 }