Click or drag to resize

DocumentFinderLinkSnapshotWithColumns Method (Principal, DocumentFinderSnapshot, FieldDefinition, Int32, Int32, SearchLogEntry, 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(
	Principal principal,
	DocumentFinderSnapshot snapshot,
	FieldDefinition[] fieldDefinitions,
	int firstRowIndex,
	int pageSize,
	SearchLogEntry entry,
	Database database,
	DbTransaction transaction
)

Parameters

principal
Type: FileHold.CommonPrincipal
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
entry
Type: FileHold.LibraryManagerSearchLogEntry
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