UI Events: General Information

You may need to handle UI events if you need to implement runtime changes to the UI of an MYOB Acumatica form that are not implemented in the built-in UI functionality.

Learning Objectives

In this chapter, you will learn how to do the following:

  • Handle UI events
  • Work with data that is unrelated to any view by using event handling
  • Work with large binary data by using event handling

Applicable Scenarios

You handle UI events if you need to implement scenarios such as the following:

  • Change the CSS for a cell or row of a table on an MYOB Acumatica form
  • Pass to an MYOB Acumatica form data that is unrelated to any data view
  • Pass large binary data to an MYOB Acumatica form
  • Calculate a value that is only displayed on an MYOB Acumatica form and is not saved to the database

Event Handling

You use the handleEvent decorator to mark a handler of a runtime event for the specified view, for the specified field, or with no relation to a view or field.

The event types that are defined in the CustomEventType enum are supported.