More actions
Nguyenduyan (talk | contribs) |
Nguyenduyan (talk | contribs) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
Resource Type may contain Team: Projects, Folders, Users, Groups, Reports, Monitor | Resource Type may contain Team: Projects, Folders, Users, Groups, Reports, Monitor | ||
We need Team_save to save the new Team. | We need [[Team_save]] to save the new Team. | ||
== Syntax == | == Syntax == | ||
Line 24: | Line 24: | ||
== Return type == | == Return type == | ||
array of | An <nowiki>''array''</nowiki>, it is a Team object which contains the following items | ||
{| class="tableintopic" style="border: 1px solid rgb(1, 1, 1); border-collapse: collapse;" width="875" cellspacing="0" cellpadding="2" border="1" | |||
|- valign="top" align="left" | |||
| style="border: 1px solid rgb(1, 1, 1);" width="292" bgcolor="#c0c0c0" | | |||
'''Index''' | |||
| style="border: 1px solid rgb(1, 1, 1);" width="116" bgcolor="#c0c0c0" | | |||
'''Data type''' | |||
| style="border: 1px solid rgb(1, 1, 1);" width="467" bgcolor="#c0c0c0" | | |||
'''Value''' | |||
|- | |||
|OBJECT_TYPE | |||
|number | |||
|Object type (Default value: 33) | |||
|- | |||
|TEAM_TYPE_ID | |||
|number | |||
|Team type Id | |||
|- | |||
|TEAM_TYPE_NAME | |||
|string | |||
|Team type name | |||
|- | |||
|TEAM_GROUP_RESOURCE_ID | |||
|number | |||
|Group resource Id | |||
|- | |||
|TEAM_RESOURCE_ID | |||
|number | |||
|Resource resource Id | |||
|- | |||
|TEAM_MEMBERS | |||
|array | |||
|array of [[TeamMember new|TeamMember object]] | |||
|} | |||
== Example == | == Example == | ||
Line 35: | Line 70: | ||
Team_save(team); | Team_save(team); | ||
</source> | </source> | ||
The resource before create a Team | |||
[[File:Team1.png]] | |||
The resource after create team | |||
[[File:Team2.png]] |
Latest revision as of 02:48, 23 June 2017
Team_new
Create a new Team on a resource (On GUI, Team is under Team tab of resource)
Resource Type may contain Team: Projects, Folders, Users, Groups, Reports, Monitor
We need Team_save to save the new Team.
Syntax
Team_new(resourceId, teamTypeId, groupResourceId);
Arguments
number resourceId: is ResourceId of resource that you want to create a Team into
number teamTypeId: is Id of Team Type that the Team belong to (on GUI, the Team Type at Administration/HR/Team types)
number groupResourceId: is ResourceId of group that belong to the Team
Return type
An ''array'', it is a Team object which contains the following items
Index |
Data type |
Value |
OBJECT_TYPE | number | Object type (Default value: 33) |
TEAM_TYPE_ID | number | Team type Id |
TEAM_TYPE_NAME | string | Team type name |
TEAM_GROUP_RESOURCE_ID | number | Group resource Id |
TEAM_RESOURCE_ID | number | Resource resource Id |
TEAM_MEMBERS | array | array of TeamMember object |
Example
number resourceId = 15562383;
number teamTypeId = 1;
number groupResourceId = 15567436;
array team = Team_new(resourceId, teamTypeId, groupResourceId);//{33,1,My Team,15567436,15562383,{}}
Team_save(team);