I am trying to perform a copy File operation on a Document object in SMARTEAM. I am using the following piece of code to perform the operation
objectTreeTask =
Nothing
defaultTask=
Nothing
SessionUtility = STSession.Services("SmUtil.SmSessionUtil")False).ItemByName("CopyFile")If (SessionUtility.OperationAllowedOnObject(DocObject, Operation1, False) = True) Then
SessionUtility.ExecuteOperationOnObjectTree(DocObject, Operation1,
The above code runs successfully.
Issue comes when a child of the document object (under copy) has more than one revisions. I get a Life-cycle and File Operations report dialog box (attached). Can anyone tell me how to suppress this message box using the above API?
Thanks in Advance,
Amod
True, X1, X2)End If
Operation1 = STSession.MetaInfo.OperationsForClass(DocObject.ClassId,
|