Application.GetProjectServerSettingsEx Method

Project Developer Reference

Returns global Microsoft Office Project Server 2007 settings in a single XML string. You can obtain settings specific to the Active project, or you can obtain settings specific to the current Project Manager by calling a server-side object. .

Syntax

expression.GetProjectServerSettingsEx

expression   A variable that represents an Application object.

Return Value
String

Remarks

Following is the format of the the XML string returned by GetProjectServerSettingsEx method.

Visual Basic for Applications
  <ProjectServerSettingsReturn>
            <ProjectIDInProjectServer>self explanatory</ProjectIDInProjectServer>
            <AdminDefaultTrackingMethod>see explanation below</AdminDefaultTrackingMethod>
            <AdminTrackingLocked>(1 or 0)</AdminTrackingLocked>
            <ProjectManagerHasTransactions>(number of transactions)</ProjectManagerHasTransactions>
            <ProjectManagerHasTransactionsForCurrentProject>(number of pending transactions)</ProjectManagerHasTransactionsForCurrentProject>
            <GroupsForCurrentProjectManager>
     <ProjectServerGroup>Name of first group that user belongs to</ProjectServerGroup>
... 
     <ProjectServerGroup>Name of nth group that user belongs to</ProjectServerGroup>
      </GroupsForCurrentProjectManager>
</ProjectServerSettingsReturn>

Where:

ProjectIDInProjectServer - The class identifier of the active project.

AdminDefaultTrackingMethod - Default tracking method for Task status. You can see this on Microsoft Office Project Web Access by going to Server Settings->(Time and task management section) Task Settings and Display->Tracking Method property. It can be one of the following:

  • 1 = Hours of work done per day. Resources report their hours worked on each task per day.)
  • 2 = Percent of work complete. Resources report the percent of work they have completed, from 0 through 100 percent)
  • 3 = Actual work done and work remaining. Resources report the actual work done and the work remaining to be done on each task.)

AdminTrackingLocked - Whether or not Managers are forced to use the tracking method specified on the server for all projects. You can see this on Office Project Web Access by going to Server Settings->(Time and task management section)Task Settings and Display->Tracking Method property. It can be one of the following:

  • 0 = Managers are not forced.
  • 1 = Managers are forced.

ProjectManagerHasTransactions - This returns the number of status updates that the Project Manager has for the active project. In Microsoft Office Project 2003, users could pass in a project ID as part of the XML parameter, but in Microsoft Office Project 2007 it is ignored.

ProjectManagerHasTransactionsForCurrentProject - Returns the number of status updates that the Project Manager has for the active project.

GroupsForCurrentProjectManager - The security groups that the Project Manager is a member of.

See Also