GetAllFieldValues

説明

Entity オブジェクトのすべてのフィールドに対応する FieldInfo オブジェクトの配列を戻します。FieldInfo オブジェクトは、順不同で整列されています。

構文

VBScript

entity.GetAllFieldValues 

Perl

$entity->GetAllFieldValues(); 
識別子
説明
entity
Entity オブジェクトは、ユーザー データ レコードを表します。構文のこの部分を省略すると、フック内では、現在のデータ レコードに対応する Entity オブジェクトが想定されます (VBScript のみ)。
戻り値
Visual Basic の場合、Entity オブジェクトの各フィールドについて 1 つの、FieldInfo オブジェクトの配列を含む Variant。Perl の場合は、FieldInfos オブジェクトのコレクションが戻されます。

VBScript

' Iterate through the fields and examine the field names and values
fieldObjs = GetAllFieldValues
For Each field In fieldObjs
   fieldValue = field.GetValue
   fieldName = field.GetName
   ' ... 
Next

Perl

# Get the list of field values

$fieldvalues = $entity->GetAllFieldValues();



$numfields = $fieldvalues->Count();



for ($x = 0; $x < $numfields ; $x++)

   {

   $field = $fieldvalues->Item($x);                                       

   $fieldvalue = $field->GetValue();

   $fieldname = $field->GetName();

   # ... other field commands

   } 

フィードバック