Skip to content

SelectionSearchActor ​

The SelectionSearchActor is used to start a search triggered by and based on selected objects. This is mostly used for tree structures to find child objects of the selected record.
A commonly used subclass is actor PidSelectionSearchActor which does not require (and does not support) the searchFilterTemplates parameter.

Properties ​

  • Parent:

    • Actor
  • Type: SelectionSearchActor

Parameter ​

Parameters in the Layout ​

NameTypeDescription
instantSearchboolean
default: false
Defines whether the actor searches immediately at the beginning
searchActorSearchActorUsed for searching
selectionActorSelectionActorListens for events of the SelectionActor to start a new search.
searchFilterTemplatesarray of searchFilterTemplateThe templates define how the selected elements are converted to search filters.
ts
type searchFilterTemplate = {
    operator: string,
    field: string,
    comparator: string,
    valueField: string,
    wildcard?: {
        start: boolean, 
        end: boolean,
    },
}

The properties operator, field, and comparator are directly used for the executed search. The valueField defines the field of the selected objects which is set as filter value.

Request missing documentation