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.SetFromStateById(lngProjectId, lngrStateId)
CaWCrossProjectMerge
lngProjectId - A long represents the object ID of the project to merge with.
lngrStateId - A long represents the object ID of a state in the project with lngProjectId that contains the desired packages.
None
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(lngProjectId, lngStateId)
More information:
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|