Click or drag to resize

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

Retrieves documents' metadata for specified snapshot and page

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

Parameters

snapshot
Type: FileHold.LibraryManagerDocumentFinderSnapshot
fieldDefinitions
Type: FileHold.LibraryManagerFieldDefinition
List of fields for which values should be retrieved
firstRowIndex
Type: SystemInt32
pageSize
Type: SystemInt32
maximum number of documents to return
database
Type: Database
transaction
Type: System.Data.CommonDbTransaction

Return Value

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