PS namespace (ps.js)
Learn about the objects in the JavaScript object model and the resources in the REST interface for Project Server 2013 that you can use to develop cross-browser web apps, task pane apps for Project Professional 2013, and apps for non-Windows devices that access Project Server 2013 and Project Online.
Applies to: Project Professional 2013 | Project Server 2013
The objects in the PS namespace represent the JavaScript object model for Project Server 2013. The PS namespace is defined in the PS.js JavaScript library in the %ProgramFiles%\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\PS.js file. If you're using the JavaScript object model, use the ProjectContext object as the entry point for Project Server functionality.
Note
To browse the JavaScript object model and to help with debugging, you can use the PS.debug.js file in the same directory. To help with development on a remote computer, the Project 2013 SDK download also includes the PS.js and PS.debug.js files.
The REST interface corresponds to the JavaScript object model, so REST resources are described with the corresponding members of the JavaScript object model. If you're using the REST interface, use the ProjectServer resource as the entry point for Project Server functionality. For information about ProjectServer properties and methods, see ProjectServer resources in the REST interface.
Note
APIs that are for internal use only have been removed from this reference. In the PS namespace, the following items are removed:
-
The ProjectServer object. In the JavaScript object model, you use the ProjectContext object to access Project Server 2013 and SharePoint 2013 functionality. (For information about ProjectServer REST endpoints, see ProjectServer resources in the REST interface.)
-
Constructors that are not intended to be used in your code. This includes constructors for objects that you create by using the corresponding ObjectCreationInformation object with the collection's add method.
-
ObjectPropertyNames objects and ObjectObjectPropertyNames objects.
-
Methods such as initPropertiesFromJson and writeToXml, and properties such as typeId and childItemType are removed from the Table of Contents.
Members
The PS namespace contains the following objects and enumerations.
Objects
Object |
Description |
---|---|
Contains the common properties for draft assignments and published assignments. |
|
Contains the properties that can be set when creating an assignment. |
|
Represents a base calendar exception. |
|
Represents a Project Server calendar. |
|
Represents a collection of calendars objects. |
|
Represents information that is used to create a new calendar. |
|
Represents a difference (an exception) from the base calendar. |
|
Represents a collection of calendar exceptions. |
|
Provides information for the creation of a calendar exception. |
|
Contains the properties and methods that are used to create an enterprise custom field. |
|
Represents a collection of custom fields. |
|
Provides information that is used in the creation of a custom field. |
|
Enables the creation of a draft assignment for a project. |
|
Represents a collection of draft assignments. |
|
Represents the draft version of a project, which is a published project that is checked out. |
|
Represents an enterprise resource in a checked-out project. |
|
Represents a collection of draft project resources. |
|
Represents a task in a checked-out project. |
|
Represents a collection of draft tasks. |
|
Represents a task link in a checked-out project. |
|
Represents a collection of draft task links. |
|
Represents an enterprise project type (EPT). |
|
Represents a collection of enterprise project types (EPTs). |
|
Provides information for the creation of an enterprise project type (EPT). |
|
Represents a resource that is managed by Project Server 2013 in a project. |
|
Represents a collection of enterprise resources. |
|
Represents a resource that is managed by Project Server 2013 in a project. |
|
Represents a type of Project Server 2013 entity. |
|
Represents the types of Project Server 2013 entities that are exposed through client APIs. |
|
Represents and identifies activity that occurs in Project Server 2013 when there are changes in business object data. |
|
Represents a collection of events. |
|
Represents the identification and location of a Project Server 2013 event handler. |
|
Represents a collection of event handlers. |
|
Provides information for the creation of an event handler. |
|
Represents a data value of type Cost for a lookup table. |
|
Represents a data value of type Date for a lookup table. |
|
Represents a data value of type Duration for a lookup table. |
|
Represents a lookup table entry. |
|
Represents a collection of lookup entries for a lookup table. |
|
Provides information for the creation of a lookup table entry. |
|
Represents the value of a lookup table entry. |
|
Represents a mask definition for the levels of a hierarchical lookup table. |
|
Represents a data value of type Number for a lookup table. |
|
Represents a lookup table. |
|
Represents a collection of lookup tables. |
|
Provides methods and property settings for the creation of a lookup table. |
|
Represents lookup table definitions. |
|
Represents a data value of type Text for a lookup table. |
|
Represents a collection of stages that are grouped to identify a common set of activities in the project life cycle. |
|
Represents a collection of workflow phases. |
|
Contains the properties that can be set when creating a workflow phase. |
|
Provides information about an assignment in a project plan. |
|
Represents a collection of plan assignments. |
|
Provides information for the creation of a plan assignment. |
|
Represents a time interval for a project plan assignment. |
|
Represents a collection of time intervals for project plan assignments. |
|
Provides information that is used for the creation of time intervals for plan assignments. |
|
Contains the common properties for draft projects and published projects. |
|
Represents a collection of published projects. |
|
Maintains the client-side context for development with a Project Web App instance, and contains the enterprise-wide collections of Project Server objects that exist in Project Web App. |
|
Provides the properties that can be set when creating a project. |
|
Represents a project detail page (PDP), which is a Web Part page for creating, viewing, or managing the properties of projects in Project Web App. |
|
Represents a collection of project detail pages (PDPs). |
|
Contains the properties that can be set when creating a project detail page (PDP) for an enterprise project type. |
|
Represents information about a project resource. |
|
Provides information for the creation of a project resource entity. |
|
Represents the assignment that is in a published project. |
|
Represents a collection of published assignments. |
|
Represents a project that is published on Project Server 2013. |
|
Represents an enterprise resource that is published on Project Server 2013. |
|
Represents a collection of resources in a published project. |
|
Represents a task in a published project. |
|
Represents a collection of tasks in a published project. |
|
Represents a dependency relationship between the start and finish dates of two tasks. |
|
Represents a collection of task links in a published project. |
|
Represents a project that is queued for publishing. |
|
Represents a collection of queued projects. |
|
Represents a resource calendar exception. |
|
Represents a high-level look at resources that might be needed for a project. |
|
Provides information about the status of the Project Server 2013 service. |
|
Represents a stage in a project workflow. |
|
Represents a collection of workflow stages. |
|
Provides information for the creation of a project workflow stage. |
|
Represents a custom field for a project stage. |
|
Represents a collection of custom fields in a project workflow stage. |
|
Provides information for the creation of a custom field for a project stage. |
|
Represents a project detail page (PDP) for a workflow stage. |
|
Represents a collection of project detail pages (PDPs) that are visible in a workflow stage. |
|
Provides information for the creation of a project detail page (PDP) for a workflow stage. |
|
Represents an assignment in a status update. |
|
Represents a collection of status assignments in a status update. |
|
Provides information for the creation of a status assignment. |
|
Represents the progress of a task. |
|
Provides information for the creation of a status task object. |
|
Represents a task. |
|
Provides information for the creation of a task. |
|
Represents the dependency relationship between the start and finish dates of two tasks. |
|
Provides information for the creation of a task link. |
|
Represents assignment progress information that is distributed over time. |
|
Represents a timesheet. |
|
Represents a line in a timesheet. |
|
Represents a collection of timesheet lines. |
|
Provides information for the creation of a timesheet line. |
|
Represents a defined period of time on a timesheet. |
|
Represents a collection of timesheet periods. |
|
Represents the different types of work on a timesheet. |
|
Represents a collection of actual work entries for a timesheet. |
|
Provides information for the creation of a timesheet work object. |
|
Represents workflow activities and methods. |
|
Represents an object that can be used to design a workflow. |
|
Represents a field that is created in a workflow designer. |
|
Represents a filtered collection of enterprise project custom fields that can be used in a workflow designer. |
Enumerations
Enumeration |
Description |
---|---|
Specifies the cost accrual mode, which defines how and when resource costs are charged to the cost of a task. |
|
Specifies how resources are booked for assignments. |
|
Represents the days of the week for recurring calendar exceptions. |
|
Specifies the recurrence types for a calendar exception. |
|
Specifies one week of a month that is used to set up a schedule. |
|
Specifies whether an item is included in an optimizer function or a planner function for project portfolio analysis. |
|
Specifies the constraint type for a task. |
|
Specifies the placement of the currency symbol. |
|
Specifies the summary roll-up type for a custom field. |
|
Specifies the type for an enterprise custom field. |
|
Specifies the type of dependency to establish between two tasks. |
|
Represents the different types of enterprise resources. |
|
Specifies how and when fixed costs are to be charged to the cost of a task. |
|
Specifies the status of a queue job. |
|
Specifies maximum values and minimum values for lookup table entities. |
|
Specifies the mask sequence, which is the type of data for a lookup table. |
|
Specifies the sort order for a lookup table. |
|
Specifies the time unit of the resource overtime rate; that is, the rate per time unit, such as dollars per hour. |
|
Specifies the type of project detail page (PDP). |
|
Specifies the type of project. |
|
Specifies the queue message type, for sending a job to the Project Server Queue System. |
|
Specifies the project stage requirements in a Project Server workflow, to help determine whether the workflow is ready to leave the stage. |
|
Specifies the types of resources. |
|
Specifies the time unit of the resource rate; that is, the rate per time unit, such as dollars per hour. |
|
Specifies how strategic impact values behave in a Project Server workflow stage. |
|
Specifies whether the task type in a project is fixed units, fixed work, or fixed duration. |
|
Specifies the scale of the time-phased data. |
|
Specifies timesheet entry modes. |
|
Specifies classifications that define the different uses of a timesheet line. |
|
Specifies status settings that can be applied to a timesheet line. |
|
Represents status settings that can be applied to a timesheet. |
|
Specifies the set of validation types for timesheet lines. |
|
Specifies the modes for tracking task progress. |
|
Specifies the status of the project stage in a Project Server workflow. |
|
Specifies the type of resource use for the current resource plan. |
|
Specifies a value that represents a work format. |