DocumentFinderLinkSnapshotWithColumns(DocumentFinderSnapshot, FieldDefinition, Int32, Int32, Database, DbTransaction) Method

Retrieves documents' metadata for specified snapshot and page. For use with application server plug-ins only.

Definition

Namespace: FileHold.LibraryManager
Assembly: FileHold.LibraryManager (in FileHold.LibraryManager.dll) Version: 17.1.0.0
C#
public ColumnsWithValues LinkSnapshotWithColumns(
	DocumentFinderSnapshot snapshot,
	FieldDefinition[] fieldDefinitions,
	int firstRowIndex,
	int pageSize,
	Database database,
	DbTransaction transaction
)

Parameters

snapshot  DocumentFinderSnapshot
snapshot
fieldDefinitions  FieldDefinition
List of fields for which values should be retrieved
firstRowIndex  Int32
first index to return
pageSize  Int32
maximum number of documents to return
database  Database
transaction  DbTransaction

Return Value

ColumnsWithValues
List of fields for which values were retrieved and documents with metadata

Remarks

STEPS: 1. Generate dynamic sql query upon specified fields 2. Link results (within this query) with metadataVersionIds from snapshot table (but only with documents from specified page) 3. Get values for dropdown fields 4. Get isRequired attributes for each field in each schema 5. Get isVisible attributes and set approproiate values to null

See Also