Member Junction
    Preparing search index...

    Everything a strategy needs to answer one lookup. Rebuilt per keystroke.

    interface FKLookupContext {
        FieldInfo: EntityFieldInfo;
        Fields: string[];
        MaxRows: number;
        NameField: string;
        Options: Record<string, unknown>;
        PkField: string;
        Provider: IMetadataProvider;
        Query: string;
        Record: BaseEntity;
        RelatedEntity: EntityInfo;
        Scope: FKLookupScope;
        SearchField: string;
    }
    Index

    Properties

    FieldInfo: EntityFieldInfo

    The foreign-key field itself, carrying RelatedEntityFilter / RelatedEntityOrderBy.

    Fields: string[]

    Fields the dropdown will read from each row: primary key, name, extra columns, icon.

    MaxRows: number
    NameField: string

    The related entity's name field name.

    Options: Record<string, unknown>

    From the field's [FKLookupOptions] input, plus ExtraFilter and OrderBy contributed by [FKExtraFilter] / [FKOrderBy]. Opaque to the field; each strategy documents its own keys.

    PkField: string

    The related entity's primary key field name.

    Query: string

    What the user has typed. Empty when the dropdown was opened by focus.

    Record: BaseEntity

    The record being edited — the host of the foreign key, not the record being looked up.

    RelatedEntity: EntityInfo
    SearchField: string

    The field the user is searching — the name field unless they chose another column on the dropdown's scope pill. A typed query is matched against this column.