Global

Methods

apply()

Source:
To Do:
  • Document the apply method.

changed()

Source:
To Do:
  • Document the changed method.

clear()

Source:
To Do:
  • Document the clear method.

clear()

Source:
To Do:
  • Document the clear method.

close()

Backs out of the workspace. This can be done using the back button, or during the end of the save-and-close process.
Source:

create()

Source:
To Do:
  • Document the create method.

destroy()

Source:
To Do:
  • Document the destroy method.

destroyWorkspace()

Source:
To Do:
  • Document the destroyWorkspace method.

email()

Email the model's data, either silently or by opening a tab
Source:

error()

Source:
To Do:
  • Document the error method.

errorNotify()

Legacy case for notify() function
Source:

fetch()

Source:
To Do:
  • Document the fetch method.

handleHotKey()

Implementation is up to subkinds
Source:

headerChanged()

Source:
To Do:
  • Document the headerChanged method.

headerValuesChanged()

Source:
To Do:
  • Document the headerValuesChanged method.

inputChanged()

Source:
To Do:
  • Document the inputChanged method.

isDirty()

Source:
To Do:
  • Document the isDirty method.

itemTap()

Source:
To Do:
  • Document the itemTap method.

lockTapped()

If the user clicks on the lock icon, we tell them who got the lock and when
Source:
This function forces the menu to render and call its setup function for the List.
Source:

modelSaved()

Once a model has been saved we take our next action depending on which of the save-and-X actions were actually requested. This is part of the callback of the save operation.
Source:

newRecord()

Source:
To Do:
  • Document the newRecord method.

newRecord()

Source:
To Do:
  • Document the newRecord method.

notify()

Although the main processing of the notify request happens in XV.ModuleContainer, we do want to make sure that the spinner goes away if it's present.
Source:

openReport()

Open the report pdf in a new tab
Source:

popupHidden()

Source:
To Do:
  • Document the popupHidden method.

print()

Print the model's data, either silently or by opening a tab
Source:

recordIdChanged()

Handle clearing and reseting of model if the record id changes.
Source:

requery()

Refresh the model behind this workspace. Note that we have to release the lock first. If this is being called on a new model, it means we want to throw away the data in the model and start with a new record. We don't worry about the lock in this case.
Source:

requery()

Refreshes the workspace.
Source:

save()

Source:
To Do:
  • Document the save method.

save()

All the other save functions flow through here.
Source:

saveAndClose()

Save the model and close out the workspace.
Source:

saveAndNew()

Handles the save-and-new button click. Note that this button displays "new" if the model is clean, and we want it exhibit that conditional behavior.
Source:

saveTextChanged()

Set save text when it is changed
Source:

setupItem()

This is called for each row in the menu List. The menu text is derived from the corresponding panel index. If the panel is not visible, then the menu item is also not visible.
Source:

setValue()

Source:
To Do:
  • Document the setValue method.

setWorkspace()

Loads a workspace into the workspace container. Accepts the following options: workspace: class name (required) id: record id to load. If none, a new record will be created. allowNew: boolean indicating whether Save and New button is shown. attributes: default attribute values for a new record. success: function to call from the workspace when the workspace has either succefully fetched or created a model. callback: function to call on either a successful save, or the user leaves the workspace without saving a new record. Passes the new or updated model as an argument.
Source:

spinnerHide()

Hides the spinner popup
Source:

spinnerShow()

Show the modal spinner popup when the model is busy.
Source:

statusChanged()

Source:
To Do:
  • Document the statusChanged method.

statusChanged()

This function is called by the statusChange handler and controls button and spinner functions based on the changed status of the backing model of the workspace.
Source:

titleChanged()

This function sets the title widget in the workspace Toolbar to the title specified in the Workspace specification. If one is not specified, then "_none" is used.
Source:

titleChanged()

Source:
To Do:
  • Document titleChanged method.

valueChanged()

Source:
To Do:
  • Document the valueChanged method.

valueChanged()

Source:
To Do:
  • Document the valueChanged method.