Class: DocumentsBox

XV. DocumentsBox

Provides a container in which its components are a vertically stacked group of horizontal rows.
Made up of a header, scroller, and a row of navigation buttons.
Use to implement a popup window for the user to define document relationships, for example: the purpose (related to, parent of, child of, duplicate of) and the type (account, contact, file, incident, item) of object to which the document is related.

new DocumentsBox()

Source:

Extends

Methods

_buildList()

private
Source:

attachDocument()

Source:
To Do:
  • Document the attachDocument method.

attachItem()

Source:
To Do:
  • Document the attachItem method.

attrChanged()

Inherited From:
Source:
To Do:
  • Document the attrChanged method.

create()

Creates a pop-up window for user to define the document relationships. For example, a file related to an account or a photograph related to an inventory item.
Source:

detachItem()

Source:
To Do:
  • Document the detachItem method.

disabledChanged()

Reconsider whether buttons should be disabled. this.valueChanged() conveniently does this for us, so we use it even though the value hasn't changed.
Inherited From:
Source:

newDocument()

Source:
To Do:
  • Document the newDocument method.

newItem()

Source:
To Do:
  • Document the newItem method.

openItem()

Inherited From:
Source:
To Do:
  • Document the openItem method.

popupHidden()

Source:
To Do:
  • Document the popupHidden method.

popupOk()

Source:
To Do:
  • Document the popupOK method.

purposeSelected()

Source:
To Do:
  • Document the purposeSelected method.

selectionChanged()

Source:
To Do:
  • Document the selectionChanged method.

typeSelected()

Source:
To Do:
  • Document the typeSelected method.

updateButtons()

Whether or not the new and attach buttons are enabled is based on complex criteria based on the status of the workspace model, the permissions of the user, and attributes of the list model. Therefore this code can be executed based on changes coming from multiple possible areas, and this function consolidates this functionality.
Inherited From:
Source:

valueChanged()

Source:
To Do:
  • Document the valueChanged method.

workspaceModelStatusChanged()

When the workspace containing this box has a change to the status of the model, it waterfalls down an event to be handled here. We will want to enable the new- and attach- buttons if the model is no longer in READY_NEW state.
Inherited From:
Source: