HistoryFields

설명

Entity 오브젝트의 히스토리 필드를 포함하는 HistoryFields 콜렉션 오브젝트를 리턴합니다.

이 특성은 읽기 전용입니다. 이 필드는 프로그램 방식으로 수정할 수 없습니다. History 오브젝트의 개요를 보려면 History 오브젝트를 참조하십시오.

구문

VBScript

entity.HistoryFields 

Perl

$entity->GetHistoryFields(); 
ID
설명
entity
사용자 데이터 레코드를 나타내는 Entity 오브젝트. 후크 내에서 구문에 이 부분을 생략할 경우, Entity 오브젝트가 현재 데이터 레코드에 해당한다고 가정합니다.
Return value
현재 해당 Entity 오브젝트에 연관된 모든 개별 HistoryField 오브젝트를 포함하는 HistoryFields 오브젝트.

예제

VBScript

set fields = entity.HistoryFields 
For Each fieldObj in fields 
   ' Look at the contents of the HistoryField object 

   ' ... 
Next

Perl

# Get the list of history fields

$historyfields = $entity->GetHistoryFields();



# Find out how many history fields there

# are so the for loop can iterate them

$numfields = $historyfields->Count();



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

 {

 # Get each history field

 $onefield = $historyfields->Item($x);



 # ...do some work with $onefield

 } 

피드백