PS.ProjectContext constructor (ps.js)

Initializes a new instance of the client context for the specified Project Web App site.

Applies to: Project Professional 2013 | Project Server 2013

var object = new PS.ProjectContext(url)

Parameters

  • url
    Type: String
    The server-relative URL or absolute URL to the Project Web App instance (for example: /siteName/pwa/ or http://serverName/pwa/).

Return value

Type: PS.ProjectContext
The client context for the specified Project Web App site.

Remarks

To get the context for the current site, you can use the current property instead of the constructor.