onspring-api-sdk
    Preparing search index...

    Class RecordValue<T>

    RecordValue - A value for a field in a record.

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index
    • Type Parameters

      • T

      Parameters

      • type: RecordValueType

        The type of the record value.

      • fieldId: number

        The id of the field.

      • value: T

        The value of the field.

      Returns RecordValue<T>

      • A new instance of RecordValue.
    fieldId: number
    value: T
    • Returns Attachment[]

      • The value as an array of attachments.

      asAttachmentArray - Gets the value as an array of attachments.

      • If the value is not an array of attachments.
      • If the storage location is not a valid FileStorageSite.
    • Returns Date

      • The value as a date.

      asDate - Gets the value as a date.

      • If the value is not a date.
    • Returns Delegate[]

      • The value as an array of delegates.

      asDelegateArray - Gets the value as an array of delegates.

      • If the value is not an array of delegates.
    • Returns number

      • The value as a number.

      asNumber - Gets the value as a number.

      • If the value is not a number.
    • Returns number[]

      • The value as an array of numbers.

      asNumberArray - Gets the value as an array of numbers.

      • If the value is not an array of numbers.
    • Returns ScoringGroup[]

      • The value as an array of scoring groups.

      asScoringGroupArray - Gets the value as an array of scoring groups.

      • If the value is not an array of scoring groups.
    • Returns string

      • The value as a string.

      asString - Gets the value as a string.

      • If the value is not a string.
    • Returns string[]

      • The value as an array of strings.

      asStringArray - Gets the value as an array of strings.

      • If the value is not an array of strings.
    • Returns TimeSpanData

      • The value as a TimeSpanData object.

      asTimeSpanData - Gets the value as a TimeSpanData object.

      • If the value is not a TimeSpanData object.