Toggle menu
876
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Resource getJournal: Difference between revisions

From Catglobe Wiki
Nguyentanphong (talk | contribs)
No edit summary
Nguyentanphong (talk | contribs)
Line 15: Line 15:
An array of ResourceJournalEntry.  
An array of ResourceJournalEntry.  


See [http://wiki.catglobe.com/index.php/ResourceJournalEntry_class [ResourceJournalEntry]] for more inf.  
See [http://wiki.catglobe.com/index.php/ResourceJournalEntry_class [ResourceJournalEntry]] for more information.  


<br>  
<br>


=== Examples  ===
=== Examples  ===

Revision as of 09:28, 11 November 2011

Resource_getJournal

Get journal information from a resource.

Syntax

Resource_getJournal(ResourceID)

Arguments

ResourceID: is a number. It is the resource id of questionnaire, report, task....etc.

Return type

An array of ResourceJournalEntry.

See [ResourceJournalEntry] for more information.


Examples

array journal=Resource_getJournal(37257114);

for(number i=0; i<arrayCount(journal); i++)

{

         print(journal[i].CommentType);

         print(journal[i].Content);

         print(journal[i].CreatedByUserResourceId);

         print(journal[i].CreatedDate);

         print(journal[i].ModifiedByUserResourceId);

         print(journal[i].ModifiedDate);

         print(journal[i].ObjectTypeName);

         print(journal[i].TypeInformation);

         print("\n");

}

Result is:

                Description                 // Comment type

                phong questionnaire 2 // Content

                25455                        // Create By User Resource Id

                2011-08-08 04:24:55   // create date

                25455                       // Create By User Resource Id

                2011-08-08 04:25:54   // ModifiedDate

               ResourceJournalEntry // Object Type Name

               TypeInformation          // TypeInformation