Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Dialog

Top-level class, representing a Catavolt 'Dialog' definition. All Dialogs have a composite View definition along with a single record or a list of records. See {@Record}

Hierarchy

Index

Properties

Private _binaryCache

_binaryCache: object

Type declaration

  • [index: string]: Array<Binary>

Private _catavolt

_catavolt: CatavoltApi

Private _lastRefreshTime

_lastRefreshTime: Date = new Date(0)

Protected _parentDialog

_parentDialog: any

availableViews

availableViews: Array<ViewDescriptor>

businessClassName

businessClassName: string

children

children: Array<Dialog> = []

description

description: string

dialogClassName

dialogClassName: string

dialogMode

dialogMode: DialogMode

header

header: View

id

id: string

recordDef

recordDef: RecordDef

referringObject

referringObject: ReferringObject

selectedViewId

selectedViewId: string

sessionId

sessionId: string

tenantId

tenantId: string

type

view

view: View

viewMode

viewMode: ViewMode

Static BINARY_CHUNK_SIZE

BINARY_CHUNK_SIZE: number = 256 * 1024

Static Private CHAR_CHUNK_SIZE

CHAR_CHUNK_SIZE: number = 128 * 1000

Accessors

catavolt

error

hasError

  • get hasError(): boolean
  • Returns whether or not this dialog loaded properly

    Returns boolean

Private isAnyChildDestroyed

  • get isAnyChildDestroyed(): boolean

isDestroyed

  • get isDestroyed(): boolean
  • Returns whether or not this Form is destroyed

    Returns boolean

isRefreshNeeded

  • get isRefreshNeeded(): boolean
  • Returns whether or not the data in this dialog is out of date

    Returns boolean

lastRefreshTime

  • get lastRefreshTime(): Date
  • set lastRefreshTime(time: Date): void
  • Get the last time this dialog's data was refreshed

    Returns Date

  • Get the last time this dialog's data was refreshed

    Parameters

    • time: Date

    Returns void

menu

paneTitle

  • get paneTitle(): string
  • Get the title of this dialog

    Returns string

parentDialog

viewDescs

Methods

binaryAt

  • binaryAt(propName: string, record: Record): Promise<Binary>
  • Load a Binary property from a record

    Parameters

    • propName: string
    • record: Record

    Returns Promise<Binary>

destroy

  • destroy(): void

findMenuAt

  • findMenuAt(actionId: string): Menu
  • Find a menu def on this dialog with the given actionId

    Parameters

    • actionId: string

    Returns Menu

formatForRead

  • formatForRead(prop: Property, propName: string): string
  • Get a string representation of this property suitable for 'reading'

    Parameters

    Returns string

formatForWrite

  • formatForWrite(prop: Property, propName: string): string
  • Get a string representation of this property suitable for 'writing'

    Parameters

    Returns string

initialize

Protected invokeMenuAction

  • Perform this action associated with the given Menu on this dialog. The targets array is expected to be an array of object ids.

    Parameters

    Returns Promise<object | Redirection>

    | Redirection>}

openView

parseValue

  • parseValue(formattedValue: any, propName: string): any
  • Parses a value to prepare for 'writing' back to the server

    Parameters

    • formattedValue: any
    • propName: string

    Returns any

propDefAtName

readBinaries

Protected readBinary

  • readBinary(propName: string, record: Record): Promise<Binary>

Protected updateSettingsWithNewDialogProperties

  • updateSettingsWithNewDialogProperties(referringObject: ReferringObject): void

writeAttachment

  • writeAttachment(attachment: Attachment): Promise<void>

writeAttachments

  • writeAttachments(record: Record): Promise<Array<void>>

writeBinaries

  • writeBinaries(record: Record): Promise<Array<void>>
  • Write all Binary values in this Record back to the server

    Parameters

    Returns Promise<Array<void>>

Generated using TypeDoc