DocumentFinderLinkSnapshotWithColumns(Principal, DocumentFinderSnapshot, FieldDefinition, Int32, Int32, SearchLogEntry, Database, DbTransaction) Method
Retrieves documents' metadata for specified snapshot and page. For use with application server plug-ins only.
Namespace: FileHold.LibraryManagerAssembly: FileHold.LibraryManager (in FileHold.LibraryManager.dll) Version: 17.1.0.0
public ColumnsWithValues LinkSnapshotWithColumns(
Principal principal,
DocumentFinderSnapshot snapshot,
FieldDefinition[] fieldDefinitions,
int firstRowIndex,
int pageSize,
SearchLogEntry entry,
Database database,
DbTransaction transaction
)
- principal Principal
- snapshot DocumentFinderSnapshot
- snapshot
- fieldDefinitions FieldDefinition
- List of fields for which values should be retrieved
- firstRowIndex Int32
- pageSize Int32
- maximum number of documents to return
- entry SearchLogEntry
- database Database
- transaction DbTransaction
ColumnsWithValues List of fields for which values were retrieved and documents with metadata
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