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: 1.4.0.0 (1.4.40.0)
Syntax
C# |
---|
public BCDocRef NewDocRef( string destDocumentID, BCDocRefType docRefType ) |
Visual Basic |
---|
Public Function NewDocRef ( _ destDocumentID As String, _ docRefType As BCDocRefType _ ) As BCDocRef |
Visual C++ |
---|
public: BCDocRef^ NewDocRef( String^ destDocumentID, BCDocRefType^ docRefType ) |
Parameters
- destDocumentID
- Type: System..::..String
The ID property value of a referenced document.
- docRefType
- Type: BlueCieloECM.InnoCielo.Meridian.Server..::..BCDocRefType
The reference type.
Return Value
A 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.