TreeINFO-For-M365 documentation
    Preparing search index...

    Interface ExternalLookup

    Configuration of ExternalLookup.

    interface ExternalLookup {
        CopyElements?: { Expression: string; TargetElement: string }[];
        DataSourceConfiguration?: SPDataSourceConfiguration | WSDataSourceConfiguration;
        DataSourceObject?: any[];
        DataSourceType: "SP" | "WS" | "STATIC";
        DataTableElements?: DataTableElement[];
        DisplayValue?: { Expression: string };
        EmitEmptyItem?: boolean;
        IndexValue: { Expression: string };
        RenderMode: "DropDown" | "AutoComplete" | "DataTable";
        Resources?: Resource[];
        SearchElements?: string[];
        TextValue: { Expression: string };
    }

    Hierarchy (View Summary)

    Index

    Properties

    CopyElements?: { Expression: string; TargetElement: string }[]

    Copies selected values into other elements.

    Example: WSDataTableExample

    Type declaration

    • Expression: string

      Expression of the value that will be copied.

    • TargetElement: string

      The target that the selected data will be copied to. This could be an internal name of another form field or a column name in case the external lookup is rendered within an AdvancedTable.

    This property is a union of DataSourceConfiguration from SPDataSource and WSDataSource.

    DataSourceObject?: any[]

    This property should be defined only when using StaticDataSource.

    DataSourceType: "SP" | "WS" | "STATIC"

    Defines what DataSource is used.

    DataTableElements?: DataTableElement[]

    This property has to be defined only when using DataTableRenderMode.

    DisplayValue?: { Expression: string }

    This property may be defined only when using DropDownRenderMode or AutoCompleteRenderMode.

    EmitEmptyItem?: boolean

    This property may be defined only when using DropDownRenderMode or AutoCompleteRenderMode.

    IndexValue: { Expression: string }

    Unique value the identifies the selected data.

    RenderMode: "DropDown" | "AutoComplete" | "DataTable"

    Defines what RenderMode is used.

    Resources?: Resource[]
    SearchElements?: string[]

    Defines internal names of the fields to which the search query applies to. This property should be defined only when using SPDataSource with AutoCompleteRenderMode or DataTableRenderMode.

    TextValue: { Expression: string }

    Display value that is shown to the user.