Documentation
    Preparing search index...

    Field Class

    Implements

    Index

    Constructors

    Properties

    attributes: GenObj
    calculated: boolean
    class: string
    default?: string
    description?: string
    disabled: boolean
    exclude_from_mobile?: boolean
    expression?: string
    fieldview?: string
    fieldviewObj?: FieldView
    help?: { context?: Row; dynContext?: string[]; topic: string }
    hidden: boolean
    id?: number
    in_auto_save?: boolean
    input_type: InputType
    is_fkey: boolean
    is_unique: boolean
    label: string
    name: string
    options?: any
    parent_field?: string

    OptionalpostText

    postText?: string
    preset_options?: string[]
    primary_key: boolean
    refname: string = ""
    reftable?: export=
    reftable_name?: string
    reftype?: string | Type
    required: boolean
    showIf?: { [field_name: string]: string | boolean | string[] }
    sourceURL?: string
    stored: boolean
    sublabel?: string
    tab?: string
    table?: null | export=
    table_id?: number
    type?: string | Type
    typename?: string
    validator: (value: any, whole_rec?: Row) => undefined | string | boolean

    Accessors

    Methods

    • Distinct Values

      Parameters

      • Optionalreq: any
      • Optionalwhere: Where
      • Optionalonly_present: boolean

      Returns Promise<{ jsvalue?: boolean; label: string; value: string }[]>

    • Fills 'this.options' with values available via foreign key Could be used for in a Protected

    On This Page

    Constructors
    constructor
    Properties
    attributescalculatedclassdefaultdescriptiondisabledexclude_from_mobileexpressionfieldviewfieldviewObjhelphiddenidin_auto_saveinput_typeis_fkeyis_uniquelabelnameoptionsparent_fieldpostTextpreset_optionsprimary_keyrefnamereftablereftable_namereftyperequiredshowIfsourceURLstoredsublabeltabtabletable_idtypetypenamevalidator
    Accessors
    form_namelistKeymultipartFormDataon_delete_sqlpresetspretty_typesql_bare_typesql_typetoBuildertoJsontype_name
    Methods
    add_unique_constraintalter_sql_typedeletedistinct_valuesenable_fkey_constraintfill_fkey_optionsfill_tablegenerateremove_unique_constraintset_calc_joinfieldsshowIfEnabledtoggle_not_nullupdatevalidatecreatefindfindCachedfindOnegetTypeAttributeslabelToNamenameToLabelselect_options_query