Difference between revisions of "Group new"

From Catglobe Wiki
Jump to: navigation, search
Line 101: Line 101:
  
 
|}
 
|}
 +
 +
'''Example'''
 +
 +
''string name ="group test";''
 +
 +
''number groupTemplateResourceId = 2066;''
 +
 +
''number parentResourceId = 37420;''
 +
 +
''array groupinfo = Group_new(name, groupTemplateResourceId, parentResourceId) ;''
 +
 +
''print(groupinfo);''
 +
 +
//{6,0,group test,2066,37420,True,0,False,Empty,Empty,Empty,Empty,Empty,Empty,Empty,{}}
  
 
<br> '''Availability'''  
 
<br> '''Availability'''  

Revision as of 06:48, 27 December 2011



Group_new

Create a group object

Syntax

Group_new(name, groupTemplateResourceId, parentResourceId)

Arguments

  • name: is a string expression. It is the name of the group, which must follow the standard format of resource name
  • groupTemplateResourceId: is a number expression. It is the resource id of the group's resource template
  • parentResourceId: is a number expression. It is the resource id of the group's parent

Return value

An array, it is the group object which contains the following information

Index

Data type

Value

GROUP_RESOURCE_ID

number

Resource id of the group

GROUP_NAME

string

Name of the group

GROUP_TEMPLATE_RESOURCE_ID

number

Group template's resource id

GROUP_PARENT_RESOURCE_ID

number

Parent's resource id

GROUP_TIME_REGISTRATION

bool

If time registration is allowed on the group

GROUP_MAN_HOURS

number

The budget time for the group

GROUP_CALCULATED_MAN_HOURS

bool

If the budget time is calculated based on time set in Team tab

Example

string name ="group test";

number groupTemplateResourceId = 2066;

number parentResourceId = 37420;

array groupinfo = Group_new(name, groupTemplateResourceId, parentResourceId) ;

print(groupinfo);

//{6,0,group test,2066,37420,True,0,False,Empty,Empty,Empty,Empty,Empty,Empty,Empty,{}}


Availability

Version 5.6