Click or drag to resize

ReferenceGeneratorGenerateItemReference Method (PFContentType, PFField, String, Boolean, Int32, Decimal, Int64)

Generates the next reference, based on year, content-type and index.

Namespace:  Packflow.Core
Assembly:  MicaSystems.Packflow.Core (in MicaSystems.Packflow.Core.dll) Version: 1.0.0.0 (3.2.0.306)
Syntax
C#
public static string GenerateItemReference(
	PFContentType contentType,
	PFField refField,
	string prefix,
	bool includeDeletedItems,
	int indexLength = 4,
	[OptionalAttribute] decimal initialVersionNo,
	long applicationContextId = -1
)

Parameters

contentType
Type: Packflow.CorePFContentType
refField
Type: Packflow.CorePFField
prefix
Type: SystemString
includeDeletedItems
Type: SystemBoolean
indexLength (Optional)
Type: SystemInt32
initialVersionNo (Optional)
Type: SystemDecimal
applicationContextId (Optional)
Type: SystemInt64

Return Value

Type: String
The generated reference
See Also