LookupField

Overview

Lookup fields provide a (usually more readable) value for specific fields, by looking up data from a secondary table. Once defined, lookup fields act like regular read-only fields. Created by DataTable.addLookupField.

ordersTable.addLookupField("CustomerName", "CustomerId", customersTable, "Id", "Name");

Location

DataAbstract.js * Ancestry: Field | LookupField

 

constructor Field

Creates a lookup field instance.

function constructor Field(aName, aType)

Parameters:

  • aName: string
  • aType: string

logChanges

boolean

logChanges

lookupKeyField

string

lookupKeyField

lookupResultField

string

lookupResultField

lookupTable

DataTable

lookupTable

name

string

name

sourceField

string

sourceField

type

string

type

 

logChanges

boolean

logChanges

lookupKeyField

string

lookupKeyField

lookupResultField

string

lookupResultField

lookupTable

DataTable

lookupTable

name

string

name

sourceField

string

sourceField

type

string

type

 

constructor Field

Creates a lookup field instance.

function constructor Field(aName, aType)

Parameters:

  • aName: string
  • aType: string