GetName

Description

Returns the name of the EntityDef object's corresponding record type.

Like the other parts of an EntityDef object, the name of an EntityDef object is determined by the corresponding record type, whose name is set by the administrator using Rational® ClearQuest® Designer. The name cannot be set directly from the API.

Syntax

VBScript

entitydef.GetName 

Perl

$entitydef->GetName(); 
Identifier
Description
entitydef
An EntityDef object corresponding to a record type in a schema.
Return value
A String whose value is the name of the EntityDef object's corresponding record type.

Examples

VBScript

set sessionObj  = GetSession
set entityDefObj = sessionObj.GetEntityDef(GetEntityDefName())
sessionObj.OutputDebugString "Name of record type: " & _
         entityDefObj.GetName() 

Perl

$sessionobj = $entity->GetSession();

$entitydefobj = $sessionobj->GetEntityDef($entity->GetEntityDefName());



$sessionobj->OutputDebugString("Name of record type:
       ".$entitydefobj->GetName());