Difference between revisions of "EmployeeAssignment addToResource"

From Catglobe Wiki
Jump to: navigation, search
(Created page with "'''EmployeeAssignment_addToResource'''    Add users to Resouces.  '''Syntax <br>'''  EmployeeAssignment_addToResource(userResourceID, timeStart,...")
 
(Arguments)
 
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
'''EmployeeAssignment_addToResource'''
+
{{HelpFiles}}
 +
= EmployeeAssignment_addToResource =
  
&nbsp;&nbsp;&nbsp;Add users to Resouces.&nbsp;
+
Assign the start date and time of users to a specific resource. This start date and time is the date and time that users begin work with that resource.  
  
'''Syntax&nbsp;<br>'''&nbsp; EmployeeAssignment_addToResource(userResourceID, timeStart, resourceID); <br><br>'''Arguments<br>'''&nbsp; userResourceID: is an array.
+
=== Syntax ===
  
&nbsp; timeStart:&nbsp;is an array.
+
EmployeeAssignment_addToResource(UserResourceID, timeStart, ResourceID);  
 +
<br>
  
&nbsp;&nbsp;resourceID: is a number.  
+
=== Arguments ===
 +
* UserResourceID: is an integer array&nbsp;which contain&nbsp;user resource id.
 +
* timeStart:&nbsp;is an date time array.
 +
* ResourceID: is a number. It is the resource id of resource which we want to assign to. It should be the resource id of CATI questionnaire, Project,Group.
  
&nbsp;<br>'''Return type'''<br>&nbsp;&nbsp; Empty.
+
=== Return type ===
 +
Empty.
 +
<br>
  
<br>'''Examples'''
+
=== Examples ===
  
array userResourceID={ 37267087, 37267186, 37268086};<br>array timeStart={2011,10,10,6,37,50,975,40,40};<br>number resourceID=37246024;  
+
array UserResourceID={ 37267087, 37267186, 37268086};&nbsp; // 03 users<br>array timeStart={2011,10,10,6,37,50,975,40,40};&nbsp;<br>number ResourceID=37246024;<br>
  
EmployeeAssignment_addToResource(userResourceID, timeStart, resourceID);<br>  
+
EmployeeAssignment_addToResource(UserResourceID, timeStart, ResourceID);<br>  
 +
 
 +
 
 +
===Availability===
 +
 
 +
Version 5.8.1
 +
__NOTOC__
  
 
[[Category:User_Functions]]
 
[[Category:User_Functions]]

Latest revision as of 11:20, 21 December 2011

EmployeeAssignment_addToResource

Assign the start date and time of users to a specific resource. This start date and time is the date and time that users begin work with that resource.

Syntax

EmployeeAssignment_addToResource(UserResourceID, timeStart, ResourceID);

Arguments

  • UserResourceID: is an integer array which contain user resource id.
  • timeStart: is an date time array.
  • ResourceID: is a number. It is the resource id of resource which we want to assign to. It should be the resource id of CATI questionnaire, Project,Group.

Return type

Empty.

Examples

array UserResourceID={ 37267087, 37267186, 37268086};  // 03 users
array timeStart={2011,10,10,6,37,50,975,40,40}; 
number ResourceID=37246024;

EmployeeAssignment_addToResource(UserResourceID, timeStart, ResourceID);


Availability

Version 5.8.1