ALM Site Administratation Client Type Library
CreateProjectCopy2 Method
DomainName

The domain of the new project.

NewProjectName

The new project name.

IsTemplate
If true, the project is a template.
ProjectType
The project type can be Standard, Template, or a project type created by an extension.
NewDbType

The type of database. Use the following constants or their values:

  • SA_MSSQL_DB_TYPE (value: 2)
  • SA_ORACLE_DB_TYPE (value: 3).
SourceDomainName

The domain of the existing project.

SourceProjectName

The name of the existing project.

DbServerName

The database server name.

AdminUser

The database administrator user name.

AdminPassword

The database administrator password.

TableSpace

Storage on disk of Oracle database tables. If not Oracle, pass empty string ("").

TempTableSpace

Temporary storage location on disk for Oracle. If not Oracle, pass empty string ("").

CopyOptions

Specifies flags that control project creation. Flags can be ORed together to specify multiply options.

Use the values from the SA_COPY_PROJECT_OPTIONS Enumeration.

CreationOptions

Specifies flags that control project creation. Flags can be ORed together to specify multiply options. Use the values from the SA_PROJECT_CREATION_OPTIONS Enumeration.

Description

Creates a new project of the specified type with option to create a template project by copying the specifed data and properties from an existing project.

Syntax

Visual Basic
Public Function CreateProjectCopy2( _
   ByVal DomainName As String, _
   ByVal NewProjectName As String, _
   ByVal IsTemplate As Boolean, _
   ByVal ProjectType As String, _
   ByVal NewDbType As Integer, _
   ByVal SourceDomainName As String, _
   ByVal SourceProjectName As String, _
   ByVal DbServerName As String, _
   ByVal AdminUser As String, _
   ByVal AdminPassword As String, _
   ByVal TableSpace As String, _
   ByVal TempTableSpace As String, _
   ByVal CopyOptions As Long, _
   ByVal CreationOptions As Long _
) As String

Parameters

DomainName

The domain of the new project.

NewProjectName

The new project name.

IsTemplate
If true, the project is a template.
ProjectType
The project type can be Standard, Template, or a project type created by an extension.
NewDbType

The type of database. Use the following constants or their values:

  • SA_MSSQL_DB_TYPE (value: 2)
  • SA_ORACLE_DB_TYPE (value: 3).
SourceDomainName

The domain of the existing project.

SourceProjectName

The name of the existing project.

DbServerName

The database server name.

AdminUser

The database administrator user name.

AdminPassword

The database administrator password.

TableSpace

Storage on disk of Oracle database tables. If not Oracle, pass empty string ("").

TempTableSpace

Temporary storage location on disk for Oracle. If not Oracle, pass empty string ("").

CopyOptions

Specifies flags that control project creation. Flags can be ORed together to specify multiply options.

Use the values from the SA_COPY_PROJECT_OPTIONS Enumeration.

CreationOptions

Specifies flags that control project creation. Flags can be ORed together to specify multiply options. Use the values from the SA_PROJECT_CREATION_OPTIONS Enumeration.

Return Type

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

Remarks

The source project must be deactivated before this function is called.

See Also

Send documentation feedback to HP.