BCDocumentNewDocRef Method |
Creates a reference between the document (source) and a specified one (destination).
Namespace: BlueCieloECM.InnoCielo.Meridian.ServerAssembly: BlueCieloECM.InnoCielo.Meridian (in BlueCieloECM.InnoCielo.Meridian.dll) Version: 4.0.0.0 (4.0.19.0)
Syntax public BCDocRef NewDocRef(
string destDocumentID,
BCDocRefType docRefType
)
Public Function NewDocRef (
destDocumentID As String,
docRefType As BCDocRefType
) As BCDocRef
public:
BCDocRef^ NewDocRef(
String^ destDocumentID,
BCDocRefType^ docRefType
)
member NewDocRef :
destDocumentID : string *
docRefType : BCDocRefType -> BCDocRef
Parameters
- destDocumentID
- Type: SystemString
The ID property value of a referenced document. - docRefType
- Type: BlueCieloECM.InnoCielo.Meridian.ServerBCDocRefType
The reference type.
Return Value
Type:
BCDocRefA created reference.
Remarks
Function does not allow creation of references from or to hybrid parts.
Also, function checks that source and destination document types are a match
restrictions defined with the properties SourceDocumentType and
DestinationDocumentType.
If the TypeOfRefType is DRT_BOM,
then function also checks that:
- Source and destination are in the same context, have the same workflow state and to-do person.
- Source and destination had no BOM links (both incoming and outgoing).
- Source and destination are documents (not root objects, not external references).
If the source document is not in the current context reference then the creation is prohibited.
See Also