Sets the Project and State that contain the source packages to merge with. These must differ from the Project and State set in the Context.
object.SetFromStateByName(strProjectName, strStateName)
CaWCrossProjectMerge
strProjectName - A string represents the name of the project to merge with.
strStateName - A string represents the name of a state in strProjectName that contains the desired packages.
A boolean - True if set succeeded, False if failed.
A list of available projects may be retrieved from a CaWHarvest object using GetProjectList(). From that list, select a project by name and extract its ObjId. Then, using the CaWHarvest object's GetStateList( ObjId ) function, retrieve a list of available states in that project. The name or objid can then be used in SetFromState.
Example
Dim objXProjectMerge Set objXProjectMerge = objContext.GetCrossProjectMerge() blnRet = ObjXProjectMerge.SetFromState(strProjectName, strStateName)
More information:
| Copyright © 2013 CA. All rights reserved. |
|