Click or drag to resize

BCDocumentNewDocRef Method

Creates a reference between the document (source) and a specified one (destination).

Namespace:  BlueCieloECM.InnoCielo.Meridian.Server
Assembly:  BlueCieloECM.InnoCielo.Meridian (in BlueCieloECM.InnoCielo.Meridian.dll) Version: 4.0.0.0 (4.0.111.0)
Syntax
public BCDocRef NewDocRef(
	string destDocumentID,
	BCDocRefType docRefType
)

Parameters

destDocumentID
Type: SystemString
The ID property value of a referenced document.
docRefType
Type: BlueCieloECM.InnoCielo.Meridian.ServerBCDocRefType
The reference type.

Return Value

Type: BCDocRef
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.

See Also