ALM Site Administration API Type Library 12.50 and later
SetProjectProperty Method
The domain name.
The project name.

The property number you wish to change. You can use the following constants or their values:

The property value.

Description
Sets the specified property to a selected value and retrieves project properties.
Syntax
Visual Basic
Public Function SetProjectProperty( _
   ByVal DomainName As String, _
   ByVal ProjectName As String, _
   ByVal PropertyNumber As Long, _
   ByVal PropertyValue As String _
) As String
Parameters
DomainName
The domain name.
ProjectName
The project name.
PropertyNumber

The property number you wish to change. You can use the following constants or their values:

  • SA_PROJECT_DB_CONNECT_STRING (value: 1)
  • SA_PROJECT_DB_USER_PASSWORD (value: 2)
  • SA_PROJECT_ACTIVE (value: 3)
  • SA_PROJECT_NAME (value: 4)
  • SA_PROJECT_SEND_ALL_QUALIFIED (value: 5)
  • SA_PROJECT_USER_QUOTA (value: 6)
  • SA_PROJECT_DESCRIPTION (value: 7)
PropertyValue

The property value.

Return Type

On success, returns an XML string containing the project properties.

Remarks

The project must be deactivated in order to change the following properties: SA_PROJECT_DB_CONNECT_STRING, SA_PROJECT_NAME.

Property SA_PROJECT_DB_USER_PASSWORD applies to Oracle databases only.

Return Value Details

The properties of the XML return string:

Example
Private Sub SetProjectProperty()

'The following Visual Basic example sets the property
' for a project name.
'The project is deactivated, renamed, and
' then reactivated.
    Dim sDomainName As String
    Dim sProjectName As String
    Dim sReply As String

    On Error GoTo err
    sDomainName = "MyDomain"
    sProjectName = "MyProject"
   
    sReply = m_SAClient.DeactivateProject _
        (sDomainName, sProjectName)
    sReply = m_SAClient.SetProjectProperty _
        (sDomainName, sProjectName, _
        SA_PROJECT_NAME, "YourProject")
    MsgBox sReply
    sReply = m_SAClient.ActivateProject _
        (sDomainName, "YourProject")
Exit Sub
err:
    MsgBox "Program failed:" + err.Description
End Sub
See Also

SAapi Object  | SAapi Members