Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Private _catavolt

_catavolt: CatavoltApi

Private _lastRefreshTime

_lastRefreshTime: Date = new Date(0)

availableViews

availableViews: ViewDescriptor[]

businessClassName

businessClassName: string

children

children: 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

  • Return the error associated with this dialog, if any

    Returns DialogException

hasError

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

    Returns boolean

Private isAnyChildDestroyed

  • get isAnyChildDestroyed(): boolean
  • Returns 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

  • Get the all Menu's associated with this dialog

    Returns Menu

paneTitle

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

    Returns string

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
  • Returns 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

  • Parameters

    Returns void

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>}

Protected invokeMenuActionWithId

openView

  • Parameters

    Returns Promise<Dialog>

openViewWithId

  • openViewWithId(viewId: string): Promise<Dialog>
  • Parameters

    • viewId: string

    Returns Promise<Dialog>

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

  • Get the property definition for a property name

    Parameters

    • propName: string

    Returns PropertyDef

readBinaries

  • Read all the Binary values in this Record

    Parameters

    Returns Promise<Binary[]>

Protected readBinary

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

    • propName: string
    • record: Record

    Returns Promise<Binary>

Protected updateSettingsWithNewDialogProperties

  • updateSettingsWithNewDialogProperties(referringObject: ReferringObject): void
  • Parameters

    Returns void

writeAttachment

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

    Returns Promise<void>

writeAttachments

  • writeAttachments(record: Record): Promise<void[]>
  • Parameters

    Returns Promise<void[]>

writeBinaries

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

    Parameters

    Returns Promise<void[]>

Generated using TypeDoc