Event handlers
In Infor Public Sector, you work with business objects
that represent tables in the database instead of working with the database itself. Event
handlers direct a business object to execute a function or method when a specified event
takes place.
For example, the AfterAdd
event handler is
used to call a function or method after a new record is added.
All business objects have the common event handlers in this table:
Event handler | Description |
---|---|
AfterAdd | Calls a function or method after a record has been added. |
AfterAddCommitted | Calls a function or method after a record has been added and committed. |
AfterLoad | Calls a function or method after a record has been loaded. |
AfterUpdate | Calls a function or method after a record has been updated. |
AfterUpdateCommitted | Calls a function or method after a record has been updated and committed. |
BeforeAdd | Calls a function or method before a record is added. |
BeforeDelete | Calls a function or method before a record is deleted. |
BeforeUpdate | Calls a function or method before a record is updated. |
In addition to the common event handlers, some business objects have other specialized event handlers defined for them. You can also create your own custom event handlers for agency business objects.