Difference between revisions of "Resource getJournal"

From Catglobe Wiki
Jump to: navigation, search
Line 36: Line 36:
 
print(journal[i].ObjectTypeName);  // ResourceJournalEntry
 
print(journal[i].ObjectTypeName);  // ResourceJournalEntry
 
print(journal[i].TypeInformation); // TypeInformation
 
print(journal[i].TypeInformation); // TypeInformation
print("\n");
 
 
}</source>  
 
}</source>  
  

Revision as of 11:45, 11 November 2011

Resource_getJournal

Get journal information of a specific resource.


Syntax

Resource_getJournal(ResourceID)


Arguments

ResourceID: is a number. It is the resource id of resource


Return type

An array of ResourceJournalEntry objects.


Examples

array journal=Resource_getJournal(37257114); 
for(number i=0; i&lt;arrayCount(journal); i++) 
{ 
	print(journal[i].CommentType); // Description
	print(journal[i].Content); // phong questionnaire 2
	print(journal[i].CreatedByUserResourceId); //25455
	print(journal[i].CreatedDate); //  2011-08-08 04:24:55
	print(journal[i].ModifiedByUserResourceId); // 36459
	print(journal[i].ModifiedDate); // 2011-08-08 04:25:54
	print(journal[i].ObjectTypeName);  // ResourceJournalEntry
	print(journal[i].TypeInformation); // TypeInformation
}