Difference between revisions of "Resource addJournal"

From Catglobe Wiki
Jump to: navigation, search
(Created page with "= Resource_addJournal = Add a journal information to a specific resource. <br> === Syntax === Resource_addJournal(ResourceID) <br> === Arguments === ResourceID: is ...")
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{HelpFiles}}
 
= Resource_addJournal  =
 
= Resource_addJournal  =
  
Line 7: Line 8:
 
=== Syntax  ===
 
=== Syntax  ===
  
Resource_addJournal(ResourceID)  
+
Resource_addJournal(Object)  
  
 
<br>  
 
<br>  
Line 13: Line 14:
 
=== Arguments  ===
 
=== Arguments  ===
  
ResourceID: is a number. It is the resource id of resource
+
Object: is a [[ResourceJournalEntry class|ResourceJournalEntry objects]].  
  
 
<br>  
 
<br>  
Line 26: Line 27:
  
 
<source lang="javascript">
 
<source lang="javascript">
string commentType="UndoComplete";  // Type of journal
+
string commentType="UndoComplete";  // Type of journal entry
  
string content="test Undo complete"; // Content of journal
+
string Content="test Undo complete"; // Content of journal entry
  
number QRID=37246024;  // phong questionnaire 1
+
number ResourceID=37246024;  // Resource ID
  
ResourceJournalEntry Rjt = new ResourceJournalEntry(QRID, commentType, content);
+
ResourceJournalEntry Rjt = new ResourceJournalEntry(ResourceID, commentType, Content);
  
 
Resource_addJournal(Rjt);</source>  
 
Resource_addJournal(Rjt);</source>  

Latest revision as of 03:51, 14 December 2011

Resource_addJournal

Add a journal information to a specific resource.


Syntax

Resource_addJournal(Object)


Arguments

Object: is a ResourceJournalEntry objects.


Return type

Empty.


Examples

string commentType="UndoComplete";   // Type of journal entry

string Content="test Undo complete"; // Content of journal entry

number ResourceID=37246024;  // Resource ID

ResourceJournalEntry Rjt = new ResourceJournalEntry(ResourceID, commentType, Content);

Resource_addJournal(Rjt);