KVSMEDIDMSSearchDefinition
Procedures
GetSearchDefinitionsForTable(Integer) : Dictionary
Summary: Returns all active search definitions for a given table.
procedure GetSearchDefinitionsForTable(TableIDPar: Integer): Dictionary
Parameters:
TableIDPar: ID of the table for which the search definitions are returned.
Returns: Dictionary of active search definitions. Key = search definition code, Value = description.
GetArchivedDocsBySearchDefinition(Code[20], RecordRef, Record KVSMEDDIIMDocument, Record KVSMEDDIQueryResultBlob, Record KVSMEDDIQueryResultIndex, Boolean) : Integer
Summary: Returns the DMS entries for a given search definition and record. Uses the same result format as GetArchivedDocsWithIndex.
procedure GetArchivedDocsBySearchDefinition(SearchDefinitionCodePar: Code[20]; RecordRefPar: RecordRef; var KVSMEDDIIMDocument: Record "KVSMEDDIIMDocument"; var KVSMEDDIQueryResultBlob: Record "KVSMEDDIQueryResultBlob"; var KVSMEDDIQueryResultIndex: Record "KVSMEDDIQueryResultIndex"; GetFilesPar: Boolean): Integer
Parameters:
SearchDefinitionCodePar: Code of the search definition to use for the search.RecordRefPar: Record the search definition is applied to.KVSMEDDIIMDocument: Temporary table of DI-IM Documents. Each DMS entry is one record in the temporary table.KVSMEDDIQueryResultBlob: Temporary table of DI-IMQueryBlob result. Each attached file is one record in the temporary table. One record of DI-IMDocument can have several (or none) entries in QueryBlob depending on the DMS structure.KVSMEDDIQueryResultIndex: Temporary table of DI-QueryResultIndex. Each index value is one record in the temporary table. One record of DI-IMDocument can have several entries in QueryResultIndex depending on the number of index fields.GetFilesPar: True --> all attachments are saved in KVSMEDDIQueryResultBlob. False --> only index values are saved. KVSMEDDIQueryResultBlob will be empty.
Returns: Number of DMS entries found.
LookupSearchDefinition(Text) : Boolean
Summary: Opens a lookup for search definitions showing code and description and returns the selected code.
procedure LookupSearchDefinition(var SearchDefinitionCodePar: Text): Boolean
Parameters:
SearchDefinitionCodePar: In/out parameter. Contains the preselected code and receives the code of the chosen search definition.
Returns: True if a search definition was selected, otherwise false.