Class AutoRecord

by default, the field id is rhe first member or the record

Hierarchy

Constructors

Properties

m_data: any
m_fid: string

Methods

  • field conversion

    Parameters

    • field: FieldInfo

      field descriptor

    • input: any

      value to convert

    Returns any

    the field value in it's original form

  • get field value (as string)

    Example

    let value = record.get('field1');
    

    Parameters

    • name: string

      field name

    Returns string

  • get the record unique identifier by default the return value is the first field

    Returns any

    unique identifier

  • get raw value of a field

    Parameters

    • name: string

      field name or field index

    Returns string

  • set field value

    Example

    record.set( 'field1', 7 );
    

    Parameters

    • name: string

      field name

    • value: any

      value to set

    Returns void

Generated using TypeDoc