afterLoadFromRepository
Arguments
- eobject
An object with the following properties:
- hasErrorsboolean
A true or false value. If true, the data was loaded successfully without issue. If false, the requested data could not be loaded.
Description
Fires after the data in the component has been loaded from the Repository
Discussion
The afterLoadFromRepository event is triggered when data has be loaded from the application repository using the {dialog.object}.loadDataFromRepository() method. This event can be used to check if the data was successfully loaded as well as execute other logic to perform additional tasks after the data has been loaded from the repository and populated into the UX component's controls.
if (e.hasErrors) { // Notify user their settings could not be loaded var btn = {dialog.object}.getPointer("LOAD_BTN"); {dialog.object}.runAction("ShowLoadFailedMessage",btn); } else { // Refresh the List data {dialog.object}.runAction("RefreshQueryResults"); }
See Also