Difference between revisions of "Project new"

From Catglobe Wiki
Jump to: navigation, search
Line 32: Line 32:
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">USER_RESOURCE_ID</span>  
+
<span class="normalise">PROJECT_RESOURCE_ID</span>  
  
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
Line 42: Line 42:
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">USER_NAME</span>  
+
<span class="normalise">PROJECT_NAME</span>  
  
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
Line 48: Line 48:
  
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">Username</span>  
+
<span class="normalise">Project name</span>  
  
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">USER_TEMPLATE_RESOURCE_ID</span>  
+
<span class="normalise">PROJECT_TEMPLATE_RESOURCE_ID</span>  
  
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
Line 58: Line 58:
  
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">User template's resource id</span>  
+
<span class="normalise">Project template's resource id</span>  
  
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">USER_PASSWORD</span>
+
<span class="normalise">PROJECT_TIME_REGISTRATION</span>  
 
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">string</span>
 
 
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">Password</span>
 
 
 
|- valign="top" align="left"
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">USER_TIME_REGISTRATION</span>  
 
  
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
Line 82: Line 72:
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">USER_MAN_HOURS</span>
+
<span class="normalise">PROJECT_COMPLETED</span>  
 
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">number</span>
 
 
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">Number of budget hours</span>
 
 
 
|- valign="top" align="left"
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">USER_CALCULATED_MAN_HOURS</span>  
 
  
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
Line 98: Line 78:
  
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">If number of budget hours is calculated on Team tab's settings</span>  
+
<span class="normalise">Complete a project</span>  
  
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">USER_PHONE_NUMBER</span>  
+
<span class="normalise">PROJECT_PARENT_RESOURCE_ID</span>  
  
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">array</span>
+
<span class="normalise">number</span>  
 
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">Phone number list</span>
 
 
 
|- valign="top" align="left"
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">USER_ACCESS_EXPIRATION</span>
 
 
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">aray</span>
 
 
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">Expiration date</span>
 
 
 
|- valign="top" align="left"
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">USER_PROTECTED_UNTIL</span>
 
 
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">array</span>  
 
  
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">Protection deadline</span>  
+
<span class="normalise">Project's path</span>  
  
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">USER_LANGUAGE</span>  
+
<span class="normalise">PROJECT_CODE</span>  
  
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
Line 138: Line 98:
  
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">Language's ISO code</span>  
+
<span class="normalise">Project code</span>  
  
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">USER_CULTURE</span>  
+
<span class="normalise">PROJECT_PROPOSE_CODE</span>  
  
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">string</span>
+
<span class="normalise">number</span>  
 
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">Culture's ISO code</span>
 
 
 
|- valign="top" align="left"
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">USER_EMAIL</span>
 
 
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">string</span>
 
 
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">Email address</span>
 
 
 
|- valign="top" align="left"
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">USER_FIRST_NAME</span>
 
 
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">string</span>  
 
  
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">First name</span>  
+
<span class="normalise">Propose Code [Read Only]</span>  
  
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">USER_MIDDLE_NAME</span>  
+
<span class="normalise">PROJECT_CLIENT_REF_NO</span>  
  
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
Line 178: Line 118:
  
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">Middle name</span>  
+
<span class="normalise">Client ref no</span>  
  
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">USER_LAST_NAME</span>
+
<span class="normalise">PROJECT_TIME_BUDGET</span>  
 
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">string</span>
 
 
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">Last name</span>
 
 
 
|- valign="top" align="left"
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">USER_CURRENCY</span>
 
 
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">string</span>
 
 
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">Currency</span>
 
 
 
|- valign="top" align="left"
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">USER_DISCOUNT</span>
 
 
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">string</span>
 
 
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">Discount</span>
 
 
 
|- valign="top" align="left"
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">USER_POINT_BALANCE</span>  
 
  
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
Line 218: Line 128:
  
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">Point balance (read-only)</span>  
+
<span class="normalise">Time Budget</span>  
  
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">USER_TIMEZONE</span>  
+
<span class="normalise">PROJECT_CALCULATED_MAN_HOURS</span>  
  
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">number</span>  
+
<span class="normalise">bool</span>  
  
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">Timezone</span>  
+
<span class="normalise">Calculated Man-Hours</span>  
  
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">USER_ADDRESS</span>  
+
<span class="normalise">PROJECT_PLANNED_START_DATE</span>  
  
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">string</span>  
+
<span class="normalise">array (date time)</span>  
  
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">Address</span>  
+
<span class="normalise">Planned Start Date</span>  
  
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">USER_CITY</span>  
+
<span class="normalise">PROJECT_ACTUAL_START_DATE</span>  
  
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">string</span>  
+
<span class="normalise">array (date time)</span>  
  
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">City</span>  
+
<span class="normalise">Actual Start Date</span>  
  
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">USER_ZIPCODE</span>  
+
<span class="normalise">PROJECT_PLANNED_END_DATE</span>  
  
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">string</span>  
+
<span class="normalise">array (date time)</span>  
  
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">Zip code</span>  
+
<span class="normalise">Planned End Date</span>  
  
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">USER_REGION</span>  
+
<span class="normalise">PROJECT_ACTUAL_END_DATE</span>  
  
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">string</span>
+
<span class="normalise">array (date time)</span>  
 
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">Region</span>
 
 
 
|- valign="top" align="left"
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">USER_COUNTRY</span>
 
 
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">string</span>
 
 
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">Country's ISO code</span>
 
 
 
|- valign="top" align="left"
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">USER_POSTBOX</span>
 
 
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">string</span>
 
 
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">Postbox</span>
 
 
 
|- valign="top" align="left"
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">USER_WEBSITE</span>
 
 
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">string</span>
 
 
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">Website</span>
 
 
 
|- valign="top" align="left"
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">USER_DELETED</span>
 
 
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">bool</span>
 
 
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">If the user is deleted</span>
 
 
 
|- valign="top" align="left"
 
| width="292" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">USER_DISABLED</span>
 
 
 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |
 
<span class="normalise">bool</span>  
 
  
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
 
| width="467" style="border: 1px solid rgb(1, 1, 1);" |  
<span class="normalise">If the user is disabled</span>  
+
<span class="normalise">Actual End Date</span>  
  
 
|}
 
|}

Revision as of 10:39, 22 December 2011



Project_new

Create a new project object

Syntax

Project_new(name, templateResourceId, parentResourceId)

Arguments

  • name: is a string expression. It is the name of the new project
  • templateResourceId: is a number expression. It is the id of project resource template
  • parentResourceId: is a number expression. It is the id of the parent resource

Return value

An array, it is a project object which contains the following items

Index

Data type

Value

PROJECT_RESOURCE_ID

number

Resource id

PROJECT_NAME

string

Project name

PROJECT_TEMPLATE_RESOURCE_ID

number

Project template's resource id

PROJECT_TIME_REGISTRATION

bool

If time registration is allowed

PROJECT_COMPLETED

bool

Complete a project

PROJECT_PARENT_RESOURCE_ID

number

Project's path

PROJECT_CODE

string

Project code

PROJECT_PROPOSE_CODE

number

Propose Code [Read Only]

PROJECT_CLIENT_REF_NO

string

Client ref no

PROJECT_TIME_BUDGET

number

Time Budget

PROJECT_CALCULATED_MAN_HOURS

bool

Calculated Man-Hours

PROJECT_PLANNED_START_DATE

array (date time)

Planned Start Date

PROJECT_ACTUAL_START_DATE

array (date time)

Actual Start Date

PROJECT_PLANNED_END_DATE

array (date time)

Planned End Date

PROJECT_ACTUAL_END_DATE

array (date time)

Actual End Date

Example

[PROJECT_PLANNED_START_DATE] = getDateTime();

Project_save(project);

Availability

Version 5.6