Skip to content

KVSMEDISearchService#

Procedures#

Init(Record KVSMEDSearchServiceParameter) :#

Summary: Have to be called. Initialize the Search Service with necessary with Setup fields.

procedure Init(var parameter: Record "KVSMEDSearchServiceParameter" temporary): 

Parameters:

  • parameter:

Summary: Parameterization and executing of the search. Returns the results synchronous.

procedure Search(var searchParameter: Record "KVSMEDSearchParameter" temporary; var resultBuffer: Record "KVSMEDSearchResultBuffer" temporary; var detailBuffer: Record "KVSMEDSearchResultDetailBuffer" temporary): Integer

Parameters:

  • searchParameter: Parameterization of the search (e.g. Expression, Searchable tables)
  • resultBuffer: Contains the result of the search, this can be an error information in cause of a wrong connection or it will be the result matches.
  • detailBuffer: Optional for detailed Information to the search result entries(e.g. Match found in field xy)

Returns: No of Rows founds

GetLastSearchResult(Record KVSMEDSearchResultBuffer, Record KVSMEDSearchResultDetailBuffer) :#

Summary: For Asynchronous retrieve of result buffer.

procedure GetLastSearchResult(var resultBuffer: Record "KVSMEDSearchResultBuffer" temporary; var detailBuffer: Record "KVSMEDSearchResultDetailBuffer" temporary): 

Parameters:

  • resultBuffer:
  • detailBuffer: